CN108847989A - Log processing method, business service system and electronic equipment based on micro services framework - Google Patents
Log processing method, business service system and electronic equipment based on micro services framework Download PDFInfo
- Publication number
- CN108847989A CN108847989A CN201810703464.7A CN201810703464A CN108847989A CN 108847989 A CN108847989 A CN 108847989A CN 201810703464 A CN201810703464 A CN 201810703464A CN 108847989 A CN108847989 A CN 108847989A
- Authority
- CN
- China
- Prior art keywords
- log
- micro services
- business processing
- gateway
- business
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/069—Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/02—Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
- H04L63/0227—Filtering policies
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
Abstract
The present invention provides a kind of log processing method based on micro services framework, business service system and electronic equipments, are related to log management technical field, and the log processing method based on micro services framework includes:Receive the business processing request that user sends;Business processing request is routed into corresponding micro services module;Receive business processing feedback information of the corresponding micro services module based on business processing request feedback;According to the feedback information, pipe is carried out to daily record data according to default log rule, solves the lower technical problem of the efficiency of management of log existing in the prior art.
Description
Technical field
The present invention relates to log management technical fields, more particularly, to a kind of log processing side based on micro services framework
Method, business service system and electronic equipment.
Background technique
With the high speed development of network service complexity and globalization, the deployment way and monitor mode of existing software systems
All encounter challenge.With the continuous development for the micro services research that container (Docker) is representative, instead of traditional resource virtualizing
As a kind of new trend.
Currently, the resource utilization based on micro services container is very high, the purpose used as needed can be really realized.Container is made
For the logical abstraction of physical resource, have the characteristics that resource occupation is few, resource provision is fast, is suitble to the internet of workload mutation
Application model, especially towards the new services pattern of micro services framework.Micro services framework embodies the design of Internet application
Thought, core concept are the division of fine granularity module, the interaction of serviceization interface encapsulation, lightweight communication, and micro services itself have
Good scalability is increasingly becoming the mainstream architecture mode of construction Internet application.Wherein, each business micro services have certainly
Oneself record logic, couples with service logic.
But for existing business micro services, need by acquire service pull log in each micro services could be into
The unified log storage and management of row, causes the efficiency of management of log lower.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of log processing method based on micro services framework, business to take
Business system and electronic equipment, the lower technical problem of the efficiency of management to solve log existing in the prior art.
In a first aspect, being applied to day the embodiment of the invention provides a kind of log processing method based on micro services framework
The first log gateway in will gateway unit, this method include:
Receive the business processing request that user sends;
Business processing request is routed into corresponding micro services module;
Receive business processing feedback information of the corresponding micro services module based on business processing request feedback;
According to the feedback information, daily record data is managed according to default log rule.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein institute
It states and business processing request is routed into corresponding micro services module, specifically include:
Business processing request is filtered according to safe coefficient, is filtered as a result, wherein, the safe coefficient
It characterizes in the business processing request with the presence or absence of network security attacks data;
Business processing request is verified according to authorization conditions, obtains check results, wherein the authorization conditions
Whether the User ID that characterization sends the business processing request is authorized to;
Determined whether to generate security certificate request according to the filter result and the check results;
In the case where confirmation generates security certificate request, then the security certificate is requested as at the business
Reason request, and security certificate request is routed into micro services module.
With reference to first aspect, the embodiment of the invention provides second of possible embodiments of first aspect, wherein institute
The method of stating further includes:
If determining that not generating the security certificate requests based on the filter result and the check results, not by institute
It states business processing request and routes to micro services module, and record target journaling, wherein the target journaling characterization is to the business
The verification and/or filtering of request do not pass through.
With reference to first aspect, the embodiment of the invention provides the third possible embodiments of first aspect, wherein institute
The method of stating further includes:
Obtain the configuration information that configuration center is sent;
It is modified based on the configuration information to the default log rule.
With reference to first aspect, the embodiment of the invention provides the 4th kind of possible embodiments of first aspect, wherein institute
It states and business processing request is routed into corresponding micro services module, specifically include:
Obtain the incidence relation between the first log gateway in micro services module and the log gateway unit;
Micro services module corresponding with the first log gateway is determined based on the incidence relation;
Business processing request is routed into the corresponding micro services module.
Second aspect, the embodiment of the present invention also provide a kind of business service system based on micro services framework, including:Business
Processing unit and log gateway unit;The Service Processing Unit includes several micro services modules;The log gateway list
Member includes at least one log gateway, includes being associated between several described micro services modules and at least one described log gateway
Relationship;
Each log gateway in the log gateway unit is used for according to default log rule to associated there micro-
The daily record data of service module is managed, wherein the default log rule includes at least one of:The management lattice of log
Formula, to operation performed by log.
In conjunction with second aspect, the embodiment of the invention provides the first possible embodiments of second aspect, wherein institute
The supervisory format for stating log includes:Unified digital finger-print identification field and unified journal format.
In conjunction with second aspect, the embodiment of the invention provides second of possible embodiments of second aspect, wherein also
Including:Configuration unit, for being associated with to include between several described micro services modules and at least one described log gateway
Relationship is configured, and/or, the default log rule is configured.
The third aspect, the embodiment of the present invention also provide a kind of electronic equipment, including memory, processor, the memory
In be stored with the computer program that can be run on the processor, the processor is realized when executing the computer program
The step of stating method as described in relation to the first aspect.
Fourth aspect, the embodiment of the present invention also provide a kind of meter of non-volatile program code that can be performed with processor
Calculation machine readable medium, said program code make the method for the processor execution as described in relation to the first aspect.
Technical solution provided in an embodiment of the present invention brings following beneficial effect:It is provided in an embodiment of the present invention based on micro-
In the log processing method of service architecture, business service system and electronic equipment, the log processing side based on micro services framework
Method is applied to the first log gateway in log gateway unit, and this method includes:It is asked firstly, receiving the business processing that user sends
It asks, then, business processing request is routed into corresponding micro services module, later, receive corresponding micro services module and be based on industry
The business processing feedback information of business processing request feedback, finally, according to feedback information according to default log rule to daily record data
It is managed, unified management is carried out to the log of all micro services by the log gateway in log gateway unit, is realized
The decoupling of service logic and record logic, can directly be carried out by independent log gateway unit log record, storage and
Management etc., does acquisition without the log content again to each micro services and pulls, be improved the efficiency of management of log,
To solve the lower technical problem of the efficiency of management of log existing in the prior art.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention are in specification and attached drawing
Specifically noted structure is achieved and obtained.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below
Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor
It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 shows the flow chart of the log processing method based on micro services framework provided by the embodiment of the present invention one;
Fig. 2 shows the flow charts of the log processing method based on micro services framework provided by the embodiment of the present invention two;
Fig. 3 shows a kind of structure of the business service system based on micro services framework provided by the embodiment of the present invention three
Schematic diagram;
Fig. 4 shows the structural schematic diagram of a kind of electronic equipment provided by the embodiment of the present invention four.
Icon:Business service system of the 3- based on micro services framework;31- Service Processing Unit;311- micro services module;
32- log gateway unit;321- log gateway;33- configuration unit;34- registering unit;4- electronic equipment;41- memory;
42- processor;43- bus;44- communication interface.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Currently, for the prior art, the daily record data how to be generated using each micro services, be associated analysis and
Comprehensive to excavate difficulty the most, the prior art, which mainly passes through, buries an operation, the telecommunication request data note between the service that will acquire
Record is in log, and each business micro services have the record logic of oneself, couple with service logic, each business micro services
Record logic, journal format and log configuration require to be pulled the log in each micro services by acquiring service and just can be carried out
Unified log storage and management.Moreover, the journal format disunity of each business micro services, daily record data are dispersed in each micro-
In service, the log between business is caused to be associated with retrospect difficult.
Based on this, a kind of log processing method based on micro services framework provided in an embodiment of the present invention, business service system
System and electronic equipment, can solve the lower technical problem of the efficiency of management of log existing in the prior art.
To be based on micro services framework to one kind disclosed in the embodiment of the present invention first convenient for understanding the present embodiment
Log processing method, business service system and electronic equipment describe in detail.
Embodiment one:
A kind of log processing method based on micro services framework provided in an embodiment of the present invention is applied to log gateway unit
In the first log gateway, can be used as a kind of blog management method, as shown in Figure 1, this method includes:
S11:Receive the business processing request that user sends.
As the preferred embodiment of the present embodiment, log gateway receives the service request of all outsides.
S12:Business processing request is routed into corresponding micro services module.
S13:Receive business processing feedback information of the corresponding micro services module based on business processing request feedback.
Specifically, micro services module is responsible for specific business logic processing, it is core business module.Micro services module is in industry
Log gateway is responded back to after business service processing, i.e. micro services module requests to feed back to log gateway based on business processing
Business processing feedback information, in order to which log gateway receives the business processing feedback information.
S14:According to feedback information, daily record data is managed according to default log rule.
In this step, log gateway responds the information returned according to business processing feedback information, i.e. micro services module,
With corresponding default log rule, according to the regular record log, and response is finally returned that.
As a preferred embodiment, log gateway uses a kind of Spring Cloud Zuul (frame based on micro services gateway
Frame) frame develop customized routing rule and filter, by the unified record of all logs, storage and management.
It should be noted that Spring Cloud is a series of ordered set of frames.It utilizes Spring Boot (one
Kind of frame) exploitation convenience simplify the exploitation of distributed system infrastructure, such as service discovery registration, configuration center, disappear
Cease bus, load balancing, breaker, data monitoring etc., can be accomplished with the development style of Spring Boot one-key start and
Deployment.There is no manufacture wheel is repeated, it is by the comparative maturity developed at present, stands practical test Spring Cloud
Service framework combine, encapsulated again by Spring Boot style and masked complicated configuration and realization principle,
Ultimately provide it is a set of be easily understood, easily deployment and Development of Distributed System kit easy to maintain.
Therefore, the log gateway unit in the present embodiment is directly responsible for record, storage and management, without again to each
The log content of a micro services is done acquisition and is pulled, to improve the efficiency of management of log.
Embodiment two:
A kind of log processing method based on micro services framework provided in an embodiment of the present invention is applied to log gateway unit
In the first log gateway, can be used as a kind of blog management method, as shown in Fig. 2, this method includes:
S21:Receive the business processing request that user sends.
In practical applications, log gateway receives the service request that all external users are sent.
S22:Obtain the incidence relation between the first log gateway in micro services module and log gateway unit.
Preferably, log gateway develops customized routing rule using logs gateway frames such as Spring Cloud Zuul
Then, i.e., the incidence relation between the log gateway in micro services module and log gateway unit.In this step, association pass is obtained
System, in order to execute routing actions based on the incidence relation in subsequent step.
S23:Micro services module corresponding with the first log gateway is determined based on incidence relation.
S24:Business processing request is routed into corresponding micro services module.
Further, can first business processing request is filtered and be verified in this step, road be executed again later
By process.Specific step is as follows:
Firstly, being filtered according to safe coefficient to business processing request, filtered as a result, wherein, safe coefficient table
Levying in business processing request whether there is network security attacks data.The network security attacks data can be cross site scripting, SQL
Injection etc. has aggressive data to network security.
Business processing request is verified according to authorization conditions, obtains check results, wherein authorization conditions characterization is sent
Whether the User ID of business processing request is authorized to.
Then, determined whether to generate security certificate request according to filter result and check results.
In one implementation, in the case where confirmation generates security certificate request, then security certificate is requested into conduct
Business processing request, and security certificate request is routed into micro services module.Therefore, verify be filtered through after be routed to phase
The business service answered i.e. micro services module.
In another implementation, security certificate request is not generated if determined based on filter result and check results,
Then business processing request is not routed into micro services module, and record target journaling, wherein target journaling is characterized to service request
Verification and/or filtering do not pass through.
S25:Receive business processing feedback information of the corresponding micro services module based on business processing request feedback.
In the present embodiment, micro services module is responsible for specific business logic processing, is core business module.Micro services module
Log gateway is responded back to after business service is disposed, i.e. micro services module is requested based on business processing to log gateway
Feedback traffic handles feedback information, in order to which log gateway receives the business processing feedback information.
S26:According to feedback information, daily record data is managed according to default log rule.
For the preferred embodiment of the present embodiment, log gateway is rung according to business processing feedback information, i.e. micro services module
The information that should be returned according to the regular record log, and finally returns that response to match default log rule accordingly.
Further, the log processing method based on micro services framework can also include:Obtain the configuration that configuration center is sent
Information;It is modified based on configuration information to default log rule.As the another embodiment of the present embodiment, unified matches
It sets center and modifies meeting dynamic notification log gateway after default log rule, in conjunction with the function of configuration center, the modification of log configuration
All services of log gateway can be allowed to come into force in real time.Therefore, configuration center therein for configuration log and routes relevant
Each rule-like switch, active push flexibly opens or closes corresponding logging operations to log gateway after dynamic is modified.
Embodiment three:
A kind of business service system based on micro services framework provided in an embodiment of the present invention can be used as a kind of based on micro-
The business and log processing system of service architecture, as shown in figure 3, the business service system 3 based on micro services framework includes:Business
Processing unit 31 and log gateway unit 32.Service Processing Unit includes several micro services modules 311.Log gateway unit
It include incidence relation between several micro services modules and at least one log gateway including at least one log gateway 321.
It should be noted that Service Processing Unit includes several micro services modules.Service Processing Unit is responsible for specific
Business logic processing is core business module.Service Processing Unit is according to the divisions of real application systems, by a series of different
Micro services module composition.
In addition, each log gateway in log gateway unit is used for according to default log rule to associated there micro-
The daily record data of service module is managed, wherein default log rule includes at least one of:The supervisory format of log,
To operation performed by log.
Wherein, the supervisory format of log includes:Unified digital finger-print identification field and unified journal format.For example,
Within the session period, the log recording for each micro services module that session is related to have unique digital finger-print identification field with
And unified journal format, show so that the log recording of all micro services modules, storage and the format of management be made to reach one
And uniformly, in order to which subsequent be tracked is traced to the source and the interface of each micro services of association analysis calling link, and day is also improved
The will efficiency of management.
In practical applications, log gateway is used to receive the service request of all outsides, and filters and verify the peace of request
Quan Xingyu authorization, verification are routed to corresponding micro services module after passing through, and micro services resume module, which finishes, responds back to log
Gateway, log gateway matches corresponding log rule according to the information that request response returns, according to regular record, storage and pipe
Manage log.Preferably, log gateway can be used the logs gateway frames such as Spring Cloud Zuul and develop customized routing rule
Then and filter.
All logs are subjected to unified record, storage and management by log gateway unit, realize service logic and
Record logic decoupling carries out log recording and management by independent log gateway unit, therefore does not need again to each micro services
Log content do acquisition and pull.
As a preferred embodiment, the frame of log gateway unit uses Spring Cloud Zuul, preferably to adapt to
Development efficiency is improved to reduce development cost with every ability of performance Spring technology ecology.
In addition, the business service system based on micro services framework further includes:Configuration unit 33, for several micro services
The incidence relation for including between module and at least one log gateway is configured, and/or, default log rule is matched
It sets.
Wherein, configuration unit may be unified configuration center, modify meeting dynamic notification day after default log rule
Will gateway, in conjunction with the function of configuration center, the modification of log configuration can allow all services of log gateway to come into force in real time.Cause
This, configuration center can be used for configuration log and route relevant each rule-like switch, and active push is to log after dynamic is modified
Gateway flexibly opens or closes corresponding logging operations.
In addition, the business service system based on micro services framework can also include:Registering unit 34, for micro services mould
The quantity of block and/or the quantity of log gateway are adjusted.Specifically, registering unit be responsible for log gateway, service application and
The service register and discovery of configuration center realizes the extending transversely of the free layout combination of micro services and processing capacity, makes each portion
Node can dynamically be increased by dividing, and realize the extension of High Availabitity height.Preferably, registering unit is as registration center, can be to including
Log gateway all service dynamic capacity-expandings, thus realize High Availabitity height extend.In addition, in conjunction with the function of registration center, day
Will gateway can also be with the quantity of gray scale issuing service, so as to according to pressure load situation elasticity dilatation or reduction.
Therefore, the business service system based on micro services framework is composed of the free layout of a series of micro services, industry
Business function independently can be disposed and be called, and processing capacity can also be extending transversely with container levels, realize the elasticity distribution of physical resource,
Flexibly to cope with various scenes and demand, to improve practicability and interactivity, make stable, reliable.Furthermore the present embodiment
There is provided the business service system based on micro services framework instead of virtual machine mode, thus improve server resource benefit
With rate.
Business service system provided in an embodiment of the present invention based on micro services framework, is based on provided by the above embodiment
The log processing method of micro services framework technical characteristic having the same reaches phase so also can solve identical technical problem
Same technical effect.
Example IV:
A kind of electronic equipment provided in an embodiment of the present invention, as shown in figure 4, electronic equipment 4 includes memory 41, processor
42, the computer program that can be run on the processor is stored in the memory, the processor executes the calculating
The step of method that above-described embodiment one or embodiment two provide is realized when machine program.
Referring to fig. 4, electronic equipment further includes:Bus 43 and communication interface 44, processor 42, communication interface 44 and memory
41 are connected by bus 43;Processor 42 is for executing the executable module stored in memory 41, such as computer program.
Wherein, memory 41 may include high-speed random access memory (RAM, Random Access Memory),
It may further include nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.By at least
One communication interface 44 (can be wired or wireless) realizes the communication between the system network element and at least one other network element
Connection, can be used internet, wide area network, local network, Metropolitan Area Network (MAN) etc..
Bus 43 can be isa bus, pci bus or eisa bus etc..The bus can be divided into address bus, data
Bus, control bus etc..Only to be indicated with a four-headed arrow convenient for indicating, in Fig. 4, it is not intended that an only bus or
A type of bus.
Wherein, memory 41 is for storing program, and the processor 42 executes the journey after receiving and executing instruction
Sequence, method performed by the device that the stream process that aforementioned any embodiment of the embodiment of the present invention discloses defines can be applied to handle
In device 42, or realized by processor 42.
Processor 42 may be a kind of IC chip, the processing capacity with signal.During realization, above-mentioned side
Each step of method can be completed by the integrated logic circuit of the hardware in processor 42 or the instruction of software form.Above-mentioned
Processor 42 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network
Processor (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal
Processing, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, referred to as
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or other are programmable
Logical device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute in the embodiment of the present invention
Disclosed each method, step and logic diagram.General processor can be microprocessor or the processor is also possible to appoint
What conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hardware decoding processing
Device executes completion, or in decoding processor hardware and software module combination execute completion.Software module can be located at
Machine memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register etc. are originally
In the storage medium of field maturation.The storage medium is located at memory 41, and processor 42 reads the information in memory 41, in conjunction with
Its hardware completes the step of above method.
Embodiment five:
It is provided in an embodiment of the present invention it is a kind of with processor can be performed non-volatile program code it is computer-readable
Medium, the method that said program code makes the processor execute two offer of above-described embodiment one or embodiment.
Unless specifically stated otherwise, the opposite step of the component and step that otherwise illustrate in these embodiments, digital table
It is not limit the scope of the invention up to formula and numerical value.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description
It with the specific work process of device, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In all examples being illustrated and described herein, any occurrence should be construed as merely illustratively, without
It is as limitation, therefore, other examples of exemplary embodiment can have different values.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
The flow chart and block diagram in the drawings show the system of multiple embodiments according to the present invention, method and computer journeys
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, section or code of table, a part of the module, section or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually base
Originally it is performed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that
It is the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, execution can be used
Defined function or the dedicated hardware based system of movement realize, or can use specialized hardware and computer instruction
Combination is to realize.
The computer-readable medium of the non-volatile program code provided in an embodiment of the present invention that can be performed with processor,
There is phase with the log processing method based on micro services framework, business service system and electronic equipment provided by the above embodiment
Same technical characteristic reaches identical technical effect so also can solve identical technical problem.
In addition, term " first ", " second ", " third " are used for description purposes only, it is not understood to indicate or imply phase
To importance.
The computer program product of the log processing method based on micro services framework is carried out provided by the embodiment of the present invention,
Computer readable storage medium including storing the executable non-volatile program code of processor, said program code include
Instruction can be used for executing previous methods method as described in the examples, specific implementation can be found in embodiment of the method, herein no longer
It repeats.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.The apparatus embodiments described above are merely exemplary, for example, the division of the unit,
Only a kind of logical function partition, there may be another division manner in actual implementation, in another example, multiple units or components can
To combine or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or beg for
The mutual coupling, direct-coupling or communication connection of opinion can be through some communication interfaces, device or unit it is indirect
Coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
Finally it should be noted that:Embodiment described above, only a specific embodiment of the invention, to illustrate the present invention
Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair
It is bright to be described in detail, those skilled in the art should understand that:Anyone skilled in the art
In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light
It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make
The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention
Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. a kind of log processing method based on micro services framework, which is characterized in that applied to first in log gateway unit
Log gateway, this method include:
Receive the business processing request that user sends;
Business processing request is routed into corresponding micro services module;
Receive business processing feedback information of the corresponding micro services module based on business processing request feedback;
According to the feedback information, daily record data is managed according to default log rule.
2. the log processing method according to claim 1 based on micro services framework, which is characterized in that described by the industry
Business processing request routes to corresponding micro services module, specifically includes:
Business processing request is filtered according to safe coefficient, is filtered as a result, wherein, the safe coefficient characterizes
It whether there is network security attacks data in the business processing request;
Business processing request is verified according to authorization conditions, obtains check results, wherein the authorization conditions characterization
Whether the User ID for sending the business processing request is authorized to;
Determined whether to generate security certificate request according to the filter result and the check results;
In the case where confirmation generates security certificate request, then the security certificate is requested to ask as the business processing
It asks, and security certificate request is routed into micro services module.
3. the log processing method according to claim 2 based on micro services framework, which is characterized in that the method is also wrapped
It includes:
If determining that not generating the security certificate requests based on the filter result and the check results, not by the industry
Business processing request routes to micro services module, and records target journaling, wherein the target journaling characterization is to the service request
Verification and/or filtering do not pass through.
4. the log processing method according to claim 1 based on micro services framework, which is characterized in that the method is also wrapped
It includes:
Obtain the configuration information that configuration center is sent;
It is modified based on the configuration information to the default log rule.
5. the log processing method according to claim 1 based on micro services framework, which is characterized in that described by the industry
Business processing request routes to corresponding micro services module, specifically includes:
Obtain the incidence relation between the first log gateway in micro services module and the log gateway unit;
Micro services module corresponding with the first log gateway is determined based on the incidence relation;
Business processing request is routed into the corresponding micro services module.
6. a kind of business service system based on micro services framework, which is characterized in that including:Service Processing Unit and log net
Close unit;The Service Processing Unit includes several micro services modules;The log gateway unit includes at least one log
Gateway includes incidence relation between several described micro services modules and at least one described log gateway;
Each log gateway in the log gateway unit is used for according to default log rule to micro services associated there
The daily record data of module is managed, wherein the default log rule includes at least one of:The supervisory format of log,
To operation performed by log.
7. the business service system according to claim 6 based on micro services framework, which is characterized in that the pipe of the log
Managing format includes:Unified digital finger-print identification field and unified journal format.
8. the business service system according to claim 6 based on micro services framework, which is characterized in that further include:Configuration
Unit, for matching to the incidence relation for including between several described micro services modules and at least one described log gateway
It sets, and/or, the default log rule is configured.
9. a kind of electronic equipment, including memory, processor, be stored in the memory to run on the processor
Computer program, which is characterized in that the processor realizes that the claims 1 to 5 are any when executing the computer program
The step of method described in item.
10. a kind of computer-readable medium for the non-volatile program code that can be performed with processor, which is characterized in that described
Program code makes the processor execute described any the method for claim 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810703464.7A CN108847989B (en) | 2018-06-29 | 2018-06-29 | Log processing method based on micro-service architecture, service system and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810703464.7A CN108847989B (en) | 2018-06-29 | 2018-06-29 | Log processing method based on micro-service architecture, service system and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108847989A true CN108847989A (en) | 2018-11-20 |
CN108847989B CN108847989B (en) | 2021-07-06 |
Family
ID=64200996
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810703464.7A Active CN108847989B (en) | 2018-06-29 | 2018-06-29 | Log processing method based on micro-service architecture, service system and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108847989B (en) |
Cited By (31)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109714193A (en) * | 2018-12-05 | 2019-05-03 | 国云科技股份有限公司 | A method of based on zuul routing forwarding mode takeover objective storage service |
CN109859036A (en) * | 2019-02-14 | 2019-06-07 | 锋泾(中国)建材集团有限公司 | Financial process method and micro services framework |
CN109889416A (en) * | 2019-02-18 | 2019-06-14 | 西安交通大学 | A kind of smart home system and construction method based on micro services framework |
CN110096437A (en) * | 2019-04-12 | 2019-08-06 | 平安普惠企业管理有限公司 | The test method and Related product of micro services framework |
CN110427299A (en) * | 2019-07-19 | 2019-11-08 | 腾讯科技(深圳)有限公司 | Log processing method, relevant device and the system of micro services system application |
CN110460584A (en) * | 2019-07-16 | 2019-11-15 | 北京奇艺世纪科技有限公司 | Access request processing method, device, electronic equipment and computer-readable medium |
CN110545328A (en) * | 2019-09-25 | 2019-12-06 | 杭州安恒信息技术股份有限公司 | Non-invasive service function expansion enhancing method and device and server |
CN110704483A (en) * | 2019-09-06 | 2020-01-17 | 平安普惠企业管理有限公司 | User routing process positioning method, device, storage medium and device |
CN110798502A (en) * | 2019-09-18 | 2020-02-14 | 平安科技(深圳)有限公司 | Grayscale publishing method and device based on micro-service framework and computer equipment |
CN111176951A (en) * | 2019-12-31 | 2020-05-19 | 上海擎感智能科技有限公司 | Log output configuration/log processing method/system, medium, and server |
CN111193733A (en) * | 2019-12-27 | 2020-05-22 | 杭州安恒信息技术股份有限公司 | Gateway system based on intranet microservice architecture |
CN111212038A (en) * | 2019-12-23 | 2020-05-29 | 江苏国泰新点软件有限公司 | Open data API gateway system based on big data artificial intelligence |
CN111258565A (en) * | 2020-01-21 | 2020-06-09 | 深圳乐信软件技术有限公司 | Method, system, server and storage medium for generating small program |
CN111258864A (en) * | 2019-12-03 | 2020-06-09 | 佛山欧神诺云商科技有限公司 | Program access log recording method and device and storage medium |
CN111586097A (en) * | 2020-04-01 | 2020-08-25 | 车智互联(北京)科技有限公司 | Network request processing method, computing device and storage medium |
CN111651637A (en) * | 2020-05-26 | 2020-09-11 | 南京领行科技股份有限公司 | Service data management method and device |
CN111767157A (en) * | 2019-08-07 | 2020-10-13 | 北京京东尚科信息技术有限公司 | Request processing method and device based on service grid |
CN111913923A (en) * | 2020-07-15 | 2020-11-10 | 上海眼控科技股份有限公司 | Log recording method, apparatus, device and storage medium |
CN112104715A (en) * | 2020-08-31 | 2020-12-18 | 银盛支付服务股份有限公司 | Link tracking method and system based on microservice log |
CN112118242A (en) * | 2020-09-09 | 2020-12-22 | 厦门安胜网络科技有限公司 | Zero trust authentication system |
CN112202598A (en) * | 2020-09-10 | 2021-01-08 | 青岛海信网络科技股份有限公司 | Log recording method and device |
CN112306811A (en) * | 2020-11-09 | 2021-02-02 | 重庆易宠科技有限公司 | PHP micro-service control method, system, terminal and medium |
CN113010378A (en) * | 2021-03-04 | 2021-06-22 | 万翼科技有限公司 | Log processing method and device of microservice module, storage medium and electronic device |
CN113472808A (en) * | 2021-07-16 | 2021-10-01 | 浙江大华技术股份有限公司 | Log processing method and device, storage medium and electronic device |
CN113592471A (en) * | 2021-07-29 | 2021-11-02 | 中国人民银行清算总中心 | Payment transaction application system and method |
CN113765944A (en) * | 2020-06-01 | 2021-12-07 | 中移(苏州)软件技术有限公司 | Micro-service management method, device, equipment and storage medium |
CN114301893A (en) * | 2021-12-30 | 2022-04-08 | 胜斗士(上海)科技技术发展有限公司 | Log management method, system and readable storage medium |
CN114501391A (en) * | 2020-10-26 | 2022-05-13 | 中国移动通信集团设计院有限公司 | Micro service business processing system and method |
CN114710562A (en) * | 2022-03-31 | 2022-07-05 | 珠海市鸿瑞信息技术股份有限公司 | Big data-based equipment application log correlation analysis system and method |
CN114844771A (en) * | 2022-05-05 | 2022-08-02 | 亚信科技(中国)有限公司 | Monitoring method, device, storage medium and program product for micro-service system |
CN111767157B (en) * | 2019-08-07 | 2024-05-17 | 北京京东尚科信息技术有限公司 | Request processing method and device based on service grid |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103856534A (en) * | 2012-12-05 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Method and system for collecting logs based on peer-to-peer network |
CN105243009A (en) * | 2015-11-12 | 2016-01-13 | 北京金山安全软件有限公司 | Method and device for determining use log |
CN106161480A (en) * | 2016-09-28 | 2016-11-23 | 四川长虹电器股份有限公司 | SMS platform service scheduling method based on gateway resource pond |
CN106254144A (en) * | 2016-09-06 | 2016-12-21 | 华为技术有限公司 | Fault location platform, Fault Locating Method and device |
CN107181675A (en) * | 2017-06-20 | 2017-09-19 | 北京奇艺世纪科技有限公司 | Service calling method and device |
CN107590048A (en) * | 2017-07-31 | 2018-01-16 | 北京北信源软件股份有限公司 | A kind of micro services log-output method and device |
CN108234653A (en) * | 2018-01-03 | 2018-06-29 | 马上消费金融股份有限公司 | A kind of method and device of processing business request |
-
2018
- 2018-06-29 CN CN201810703464.7A patent/CN108847989B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103856534A (en) * | 2012-12-05 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Method and system for collecting logs based on peer-to-peer network |
CN105243009A (en) * | 2015-11-12 | 2016-01-13 | 北京金山安全软件有限公司 | Method and device for determining use log |
CN106254144A (en) * | 2016-09-06 | 2016-12-21 | 华为技术有限公司 | Fault location platform, Fault Locating Method and device |
CN106161480A (en) * | 2016-09-28 | 2016-11-23 | 四川长虹电器股份有限公司 | SMS platform service scheduling method based on gateway resource pond |
CN107181675A (en) * | 2017-06-20 | 2017-09-19 | 北京奇艺世纪科技有限公司 | Service calling method and device |
CN107590048A (en) * | 2017-07-31 | 2018-01-16 | 北京北信源软件股份有限公司 | A kind of micro services log-output method and device |
CN108234653A (en) * | 2018-01-03 | 2018-06-29 | 马上消费金融股份有限公司 | A kind of method and device of processing business request |
Non-Patent Citations (1)
Title |
---|
HACKERVIRUS: ""微服务之API网关"", 《博客园,HTTPS://WWW.CNBLOGS.COM/LEO_WL/P/6901412.HTML》 * |
Cited By (42)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109714193A (en) * | 2018-12-05 | 2019-05-03 | 国云科技股份有限公司 | A method of based on zuul routing forwarding mode takeover objective storage service |
CN109859036A (en) * | 2019-02-14 | 2019-06-07 | 锋泾(中国)建材集团有限公司 | Financial process method and micro services framework |
CN109889416A (en) * | 2019-02-18 | 2019-06-14 | 西安交通大学 | A kind of smart home system and construction method based on micro services framework |
CN110096437A (en) * | 2019-04-12 | 2019-08-06 | 平安普惠企业管理有限公司 | The test method and Related product of micro services framework |
CN110460584B (en) * | 2019-07-16 | 2022-02-01 | 北京奇艺世纪科技有限公司 | Access request processing method and device, electronic equipment and computer readable medium |
CN110460584A (en) * | 2019-07-16 | 2019-11-15 | 北京奇艺世纪科技有限公司 | Access request processing method, device, electronic equipment and computer-readable medium |
CN110427299A (en) * | 2019-07-19 | 2019-11-08 | 腾讯科技(深圳)有限公司 | Log processing method, relevant device and the system of micro services system application |
CN110427299B (en) * | 2019-07-19 | 2022-02-11 | 腾讯科技(深圳)有限公司 | Log processing method, related device and system for micro-service system application |
CN111767157A (en) * | 2019-08-07 | 2020-10-13 | 北京京东尚科信息技术有限公司 | Request processing method and device based on service grid |
CN111767157B (en) * | 2019-08-07 | 2024-05-17 | 北京京东尚科信息技术有限公司 | Request processing method and device based on service grid |
CN110704483A (en) * | 2019-09-06 | 2020-01-17 | 平安普惠企业管理有限公司 | User routing process positioning method, device, storage medium and device |
CN110798502A (en) * | 2019-09-18 | 2020-02-14 | 平安科技(深圳)有限公司 | Grayscale publishing method and device based on micro-service framework and computer equipment |
CN110798502B (en) * | 2019-09-18 | 2022-06-17 | 平安科技(深圳)有限公司 | Grayscale publishing method and device based on micro-service framework and computer equipment |
CN110545328A (en) * | 2019-09-25 | 2019-12-06 | 杭州安恒信息技术股份有限公司 | Non-invasive service function expansion enhancing method and device and server |
CN111258864A (en) * | 2019-12-03 | 2020-06-09 | 佛山欧神诺云商科技有限公司 | Program access log recording method and device and storage medium |
CN111212038A (en) * | 2019-12-23 | 2020-05-29 | 江苏国泰新点软件有限公司 | Open data API gateway system based on big data artificial intelligence |
CN111212038B (en) * | 2019-12-23 | 2021-02-09 | 江苏国泰新点软件有限公司 | Open data API gateway system based on big data artificial intelligence |
CN111193733A (en) * | 2019-12-27 | 2020-05-22 | 杭州安恒信息技术股份有限公司 | Gateway system based on intranet microservice architecture |
CN111176951A (en) * | 2019-12-31 | 2020-05-19 | 上海擎感智能科技有限公司 | Log output configuration/log processing method/system, medium, and server |
CN111258565A (en) * | 2020-01-21 | 2020-06-09 | 深圳乐信软件技术有限公司 | Method, system, server and storage medium for generating small program |
CN111258565B (en) * | 2020-01-21 | 2023-06-06 | 深圳乐信软件技术有限公司 | Method, system, server and storage medium for generating applet |
CN111586097A (en) * | 2020-04-01 | 2020-08-25 | 车智互联(北京)科技有限公司 | Network request processing method, computing device and storage medium |
CN111651637A (en) * | 2020-05-26 | 2020-09-11 | 南京领行科技股份有限公司 | Service data management method and device |
CN113765944A (en) * | 2020-06-01 | 2021-12-07 | 中移(苏州)软件技术有限公司 | Micro-service management method, device, equipment and storage medium |
CN111913923A (en) * | 2020-07-15 | 2020-11-10 | 上海眼控科技股份有限公司 | Log recording method, apparatus, device and storage medium |
CN112104715A (en) * | 2020-08-31 | 2020-12-18 | 银盛支付服务股份有限公司 | Link tracking method and system based on microservice log |
CN112118242A (en) * | 2020-09-09 | 2020-12-22 | 厦门安胜网络科技有限公司 | Zero trust authentication system |
CN112202598A (en) * | 2020-09-10 | 2021-01-08 | 青岛海信网络科技股份有限公司 | Log recording method and device |
CN112202598B (en) * | 2020-09-10 | 2022-12-27 | 青岛海信网络科技股份有限公司 | Log recording method and device |
CN114501391A (en) * | 2020-10-26 | 2022-05-13 | 中国移动通信集团设计院有限公司 | Micro service business processing system and method |
CN114501391B (en) * | 2020-10-26 | 2023-07-21 | 中国移动通信集团设计院有限公司 | Micro-service business processing system and method |
CN112306811A (en) * | 2020-11-09 | 2021-02-02 | 重庆易宠科技有限公司 | PHP micro-service control method, system, terminal and medium |
CN113010378A (en) * | 2021-03-04 | 2021-06-22 | 万翼科技有限公司 | Log processing method and device of microservice module, storage medium and electronic device |
CN113472808B (en) * | 2021-07-16 | 2023-07-14 | 浙江大华技术股份有限公司 | Log processing method and device, storage medium and electronic device |
CN113472808A (en) * | 2021-07-16 | 2021-10-01 | 浙江大华技术股份有限公司 | Log processing method and device, storage medium and electronic device |
CN113592471A (en) * | 2021-07-29 | 2021-11-02 | 中国人民银行清算总中心 | Payment transaction application system and method |
CN114301893B (en) * | 2021-12-30 | 2023-11-07 | 胜斗士(上海)科技技术发展有限公司 | Log management method, system and readable storage medium |
CN114301893A (en) * | 2021-12-30 | 2022-04-08 | 胜斗士(上海)科技技术发展有限公司 | Log management method, system and readable storage medium |
CN114710562B (en) * | 2022-03-31 | 2022-11-08 | 珠海市鸿瑞信息技术股份有限公司 | Big data-based equipment application log correlation analysis system and method |
CN114710562A (en) * | 2022-03-31 | 2022-07-05 | 珠海市鸿瑞信息技术股份有限公司 | Big data-based equipment application log correlation analysis system and method |
CN114844771A (en) * | 2022-05-05 | 2022-08-02 | 亚信科技(中国)有限公司 | Monitoring method, device, storage medium and program product for micro-service system |
CN114844771B (en) * | 2022-05-05 | 2024-03-08 | 亚信科技(中国)有限公司 | Method, device, storage medium and program product for monitoring micro service system |
Also Published As
Publication number | Publication date |
---|---|
CN108847989B (en) | 2021-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108847989A (en) | Log processing method, business service system and electronic equipment based on micro services framework | |
JP7057796B2 (en) | Limitations of customer-oriented networks in distributed systems | |
CN112132447B (en) | Block chain-based algorithm for evaluating and guaranteeing trust of computing power network | |
CN103997725B (en) | System and method for the mobile data network in abstract and layout network environment | |
CN105917690B (en) | (NFV) system of intermodule communication, method and computer program in a network is virtualized based on network function | |
CN104270417B (en) | A kind of integrated service based on cloud computing provides system and method | |
CN106293892B (en) | Distributed stream computing system, method and apparatus | |
CN105074702B (en) | The Database Systems of single tenant and multi-tenant environment are provided | |
US8893218B2 (en) | Association of service policies based on the application of message content filters | |
CN109150607A (en) | Classification management-control method and device for block chain network | |
CN107431712A (en) | Network flow daily record for multi-tenant environment | |
CN106100902A (en) | High in the clouds index monitoring method and apparatus | |
CN109074377A (en) | Managed function for real-time processing data stream executes | |
CN106453519A (en) | Interface call method and device | |
US20130297803A1 (en) | Method for providing development and deployment services using a cloud-based platform and devices thereof | |
CN108920948A (en) | A kind of anti-fraud streaming computing device and method | |
CN104601723B (en) | Power Marketing Management System SOA framework based on internal services bus | |
CN109155758A (en) | Virtual base framework | |
CN108491267A (en) | Method and apparatus for generating information | |
CN109960904A (en) | Operation system management method, management server, user terminal and management system | |
CN109684820A (en) | Service Privileges acquisition methods, device and electronic equipment | |
CN107453900A (en) | A kind of cloud analytic parameter setting management system and the method for realizing parameter setting | |
CN110278255A (en) | A kind of method and device of the Internet of Things IOT communication between devices based on block chain | |
CN106713337A (en) | Method and system for accessing supercomputing center, and dispatch server | |
CN106156170B (en) | The analysis of public opinion method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: No. 188, Lianhui street, Xixing street, Binjiang District, Hangzhou, Zhejiang Province, 310000 Applicant after: Hangzhou Anheng Information Technology Co.,Ltd. Address before: 310051 15-storey Zhejiang Zhongcai Building, No. 68 Tonghe Road, Binjiang District, Hangzhou City, Zhejiang Province Applicant before: Hangzhou Anheng Information Technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |