CN110427299A - Log processing method, relevant device and the system of micro services system application - Google Patents
Log processing method, relevant device and the system of micro services system application Download PDFInfo
- Publication number
- CN110427299A CN110427299A CN201910656117.8A CN201910656117A CN110427299A CN 110427299 A CN110427299 A CN 110427299A CN 201910656117 A CN201910656117 A CN 201910656117A CN 110427299 A CN110427299 A CN 110427299A
- Authority
- CN
- China
- Prior art keywords
- application
- log
- request
- micro services
- file
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/1734—Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/1805—Append-only file systems, e.g. using logs or journals to store data
- G06F16/1815—Journaling file systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/547—Remote procedure calls [RPC]; Web services
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Quality & Reliability (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention discloses log processing method, relevant device and the systems of a kind of application of micro services system, which comprises receives log file formats and log storage path and is allocated to micro services system application;Micro services system is applied in response application request, and corresponding request response identification is generated;Micro services system, which is applied, generates the business diary file comprising request response identification for each application request;Micro services system is applied according to log storage path storage service journal file;Log management device is sent to according to log storage path capturing service journal file, log management device stores the business diary file, and after receiving the first request response identification, it obtains the business diary file cocurrent comprising the first request response identification and gives application management equipment, application management equipment returns to the business diary file comprising the first request response identification to user.It can guarantee the normal O&M of micro services system application through the embodiment of the present invention.
Description
Technical field
This application involves micro services technical field more particularly to a kind of log processing methods of micro services system application, phase
Close equipment and system.
Background technique
Monomer framework is a kind of by quoting the system architecture that all application function concentrations are realized in the same system,
The characteristics of monomer framework centrality cause its have project is excessively too fat to move, resource can not be isolated, can not flexible expansion the defects of, be
Overcome these defects, micro services framework comes into being.
Micro services framework style is a kind of method for developing single application program as a set of small service, based on micro-
In the micro services system of service architecture style building, for an application request, it is split into different application functions, and structure
Corresponding micro services are built, are then dispersed to these micro services on different servers, the application that each micro services pass through oneself
Process is realized, and is communicated by lightweight mechanism.Micro services framework have independent deployment, extension flexibly, resource effectively every
From the advantages that.But simultaneously as the dispersion of each micro services is on a different server, each micro services are during being responded
A large amount of journal file can be generated, these journal files are also dispersed on different servers, this is allowed in micro services system
Journal file be difficult to manage, when response abnormality occurs in some application request, be difficult to navigate to this on numerous servers and answer
With corresponding journal file, and then progress abnormal factors investigation is requested, the normal operation of micro services system application is influenced.
Summary of the invention
The application provides log processing method, relevant device and the system of a kind of micro services system application, through the invention
The quick-searching for the specified corresponding business diary file of application request can be improved, and then ensure that micro services system application
Normal O&M.
On the one hand the embodiment of the present invention provides a kind of log processing method of micro services system application, comprising:
The log file formats and log storage path that application management equipment is sent are received using running equipment;
The log file formats and the log storage path are allocated to micro services system by the application running equipment
Using it is the application using running equipment Inhaul operation that the micro services system, which is applied,;
The micro services system is applied when receiving any application request, responds the application request, and described in generation
The corresponding request response identification of application request;
The micro services system is applied according to the log file formats, and generating for each application request includes institute
State the business diary file of the corresponding request response identification of application request;
The micro services system, which is applied, stores the business diary file according to the log storage path;
The application running equipment acquires the business diary file according to the log storage path, and by the business
Journal file is sent to log management device, so that the log management device stores the business diary file;
The log management device receives the first request response identification that user is sent by the application management equipment,
And the business diary file cocurrent comprising the first request response identification is obtained from the business diary file of storage and is sent
To the application management equipment, so that the application management equipment returns to the industry comprising the first request response identification to user
Business journal file, the first request response identification are corresponding to the first application request of micro services system application response
Mark.
Wherein, the micro services system is applied when receiving any application request, is responded the application request and is included:
The micro services system is applied to be indicated to carry out in incognito between at least two micro services processes according to the application request
Inter-process calling be engaged in complete the response to the application request, and in the micro services inter-process calling, for micro- every time
It is called between service processes and generates unique corresponding process identification (PID);
The micro services system is applied according to the log file formats, and generating for each application request includes institute
Stating the corresponding business diary file for requesting response identification of application request includes:
The micro services system is applied according to the log file formats, for each micro services inter-process calling point
The corresponding process identification (PID) of the micro services inter-process calling and the corresponding request response mark of the application request Sheng Cheng not included
The business diary file of knowledge;
The method also includes:
The log management device receive user by the application management equipment send second request response mark
Know and the first process identification (PID);
The log management device is obtained while being rung comprising second request from the business diary file of storage
It should identify and give the application management equipment, the first process mark with the business diary file cocurrent of first process identification (PID)
Knowing is that the micro services system is applied when responding the second request corresponding second application request of response identification, instruction it is each
The corresponding mark of the first micro services inter-process calling in a micro services inter-process calling.
Wherein, the micro services inter-process calling has corresponding homophony process and is transferred in journey every time;
The micro services system is applied according to the log file formats, for each micro services inter-process calling point
The business diary file packet of the corresponding request response identification of corresponding process identification (PID) and the application request Sheng Cheng not included
It includes:
The micro services system is applied according to the log file formats, for each micro services inter-process calling point
Homophony process in the corresponding process identification (PID) of the micro services inter-process calling, the micro services inter-process calling Sheng Cheng not included
The business diary file of the corresponding process identification (PID) of dependent process and the corresponding request response identification of the application request, it is described
Dependent process is to trigger the process that the homophony process executes when the dependent process meets predeterminable event condition, described pre-
If event condition includes that process starts or process terminates;
The method also includes:
The log management device receives user and relies on inquiry request, institute by the service that the application management equipment is sent
It states service and relies on inquiry request carrying third request response identification, the third request response identification is that the micro services system is answered
With the corresponding mark of third application request of response;
The log management device is obtained from the business diary file of storage comprising third request response identification
Business diary file cocurrent gives the application management equipment, so that the application management equipment is according to described comprising the third
The process identification (PID) of the business diary file of response identification is requested, and the process identification (PID) of the dependent process of homophony process accordingly,
Determine that the corresponding service of the third application request relies on topological diagram and returns to user.
Wherein, the business diary file includes the process status information that microserver process is called, the process status
Information is normal state information or abnormal state information;
The method also includes:
The log management device receives the request investigation instruction extremely that the application management equipment is sent;
The log management device responds request investigation instruction extremely, obtains from the business diary file stored
Abnormal traffic journal file comprising abnormal state information;
The log management device extract include in the abnormal traffic journal file the 4th request response identification, and from
Obtain all business diary files comprising the 4th request response identification in the business diary file of storage, described the
Four request response identifications are the corresponding mark of the 4th application request of micro services system application response;
All business diary files comprising the 4th request response identification that the log management device will acquire
It is sent to user, so that user carries out exception according to all business diary files comprising the 4th request response identification
Factor investigation.
On the other hand the embodiment of the present invention provides a kind of log processing method of micro services system application, comprising:
Application management equipment receives the log configuring request that user sends, and the log configuring request carries journal file lattice
Formula and log storage path, the log file formats are used to indicate micro services system and apply the life when responding any application request
At the business diary file comprising requesting response identification corresponding to the application request;
The application management equipment sends the log file formats and the log storage path to application running equipment,
So that the log file formats and the log storage path are allocated to the micro services system by the application running equipment
Using the micro services system is applied and deposits the business diary file generated according to the log file formats according to the log
Path storage is stored up, it is described to acquire what the micro services system application generated also according to the log storage path using running equipment
The business diary file, and the collected business diary file is sent to log management device, the log management
Equipment stores the business diary file acquired using running equipment;
The application management equipment receives the first log query request that user sends, and the first log query request is taken
Band first requests response identification, and the first request response identification is the first application request of micro services system application response
Corresponding mark;
The application management equipment sends the first request response identification to the log management device, so that the industry
Management equipment of being engaged in obtains the business diary text comprising the first request response identification from the business diary file of storage
Part;
What the application management equipment received the log management device transmission includes the first request response identification
Business diary file, and the business diary file comprising the first request response identification is returned to user.
Wherein, the micro services system is applied indicates to carry out between at least two micro services processes according to the application request
It calls between micro services to complete the response to the application request, and in the micro services inter-process calling, for micro- every time
It is called between service processes and generates unique corresponding process identification (PID);
The log file formats are specifically used for instruction micro services system and apply when responding any application request, for each
A micro services inter-process calling generates respectively to be rung comprising corresponding process identification (PID) and the corresponding request of the application request
The business diary file that should be identified;
The method also includes:
The application management equipment receives the second log inquiry request that user sends, and the second log inquiry request is taken
Band second requests response identification and the first process identification (PID), and first process identification (PID) is applied for the micro services system and responded
When the second request corresponding second application request of response identification, first in each micro services inter-process calling of instruction is micro-
Corresponding mark is called between service processes;
The application management equipment sends the second request response identification and described the to the log management device
One process identification (PID), so that the log management device is from the business diary file of storage, obtain includes described the simultaneously
The business diary file of two request response identifications and first process identification (PID);
The application management equipment receives while the log management device is sent comprising the second request response mark
Know and first process identification (PID) business diary file, and to user return simultaneously comprising it is described second request response identification with
The business diary file of first process identification (PID).
Wherein, the micro services inter-process calling has corresponding homophony process and is transferred in journey every time;
The log file formats are specifically used for instruction micro services system and apply when responding any application request, for each
A micro services inter-process calling generate respectively comprising the corresponding process identification (PID) of the micro services inter-process calling, it is described in incognito
The corresponding process identification (PID) of dependent process of homophony process and the corresponding request response of the application request in business inter-process calling
The business diary file of mark, the dependent process are to trigger the master when the dependent process meets predeterminable event condition
Transfer in the process of Cheng Zhihang, the predeterminable event condition includes that process starts or process terminates;
The method also includes:
The service that the application management equipment receives the carrying third request response identification that user sends relies on inquiry request,
The third request response identification is the corresponding mark of third application request of micro services system application response;
The application management equipment sends the third to the log management device and requests response identification, so that the day
Will management equipment obtains the business diary comprising third request response identification from the business diary file stored
File;
What the application management equipment received the log management device transmission includes third request response identification
Business diary file, and according to the process identification (PID) of the business diary file comprising third request response identification, and
The process identification (PID) of the dependent process of corresponding homophony process determines that the corresponding service of the third application request relies on topological diagram,
And the service is returned to user and relies on topological diagram.
Wherein, the business diary file includes the process status information that microserver process is called, the process status
Information is normal state information or abnormal state information;
The method also includes:
The application management equipment sends the abnormal investigation instruction of request to the log management device, so that the log pipe
Reason equipment obtains the abnormal traffic journal file comprising abnormal state information from the business diary file stored, and extracts institute
The 4th request response identification in abnormal traffic log is stated, the log management device is from the business diary file of storage
Obtain all business diary files comprising the 4th request response identification, the 4th request response identification be it is described in incognito
The corresponding mark of the 4th application request of business system application response;
The application management equipment receives all respond comprising the 4th request that the log management device is sent and marks
The business diary file cocurrent of knowledge gives user, so that user is according to all industry comprising the 4th request response identification
Business journal file carries out abnormal factors investigation.
On the other hand the embodiment of the present invention provides a kind of using running equipment, comprising:
Log information receiving module, for receiving log file formats and the log storage road of the transmission of application management equipment
Diameter;
Log information configuration module, for the log file formats and the log storage path to be allocated to micro services
System application, it is the application using running equipment Inhaul operation that the micro services system, which is applied, so that the micro services system
System is applied when receiving any application request, and the application request is responded, and is generated the corresponding request of the application request and rung
It should identify, according to the log file formats, including that the application request is corresponding for each application request generation is asked
The business diary file of response identification is sought, the micro services system, which is applied, stores the business according further to the log storage path
Journal file;
Log acquisition module, for acquiring the business diary file according to the log storage path, and by business day
Will file is sent to log management device, so that the log management device stores the business diary file, the log pipe
Reason equipment is also after receiving the first request response identification that user is sent by application management equipment, from the business of storage
The business diary file cocurrent comprising the first request response identification is obtained in journal file gives the application management equipment,
The application management equipment returns to the business diary file comprising the first request response identification, first request to user
Response identification is mark corresponding to the first application request of micro services system application response.
Another aspect of the present invention provides a kind of log management device, comprising:
Journal file receiving module, for receiving the business diary file for applying running equipment to send, the business diary
File is that the log file formats and log storage path that application management equipment is sent are allocated to micro services using running equipment
After system application, the micro services system is applied when receiving any application request, responds the application request, and generate institute
The corresponding request response identification of application request is stated, the micro services system is applied according to the log file formats, for each
The application request generates the business diary file comprising the corresponding request response identification of the application request;
Journal file memory module, for storing the business diary file;
Receiving module is identified, the first request response identification sent for receiving user by the application management equipment,
The first request response identification is mark corresponding to the first application request of micro services system application response;
Journal file retrieval module, for the journal file memory module storage business diary file in obtain include
The business diary file of the first request response identification;
Journal file sending module, for will include it is described first request response identification business diary file be sent to institute
Application management equipment is stated, so that the application management equipment returns to the business day comprising the first request response identification to user
Will file.
On the other hand the embodiment of the present invention provides a kind of application management equipment, comprising:
Configuring request receiving module, for receiving the log configuring request of user's transmission, the log configuring request is carried
Log file formats and log storage path, the log file formats, which are used to indicate micro services system, to be applied and any answers responding
The business diary file comprising requesting response identification corresponding to the application request is generated when with request;
Log information sending module, for sending the log file formats and log storage to application running equipment
Path, so that the log file formats and the log storage path are allocated to the micro services by the application running equipment
System application, the micro services system apply the business diary file that will be generated according to the log file formats according to the day
The storage of will store path, the application running equipment acquire the micro services system application life also according to the log storage path
At the business diary file, and the collected business diary file is sent to log management device, the log
Management equipment stores the business diary file acquired using running equipment;
Inquiry request receiving module, for receiving the first log query request of user's transmission, first log query
Request carries the first request response identification, and the first request response identification is answered for the first of micro services system application response
With the corresponding mark of request;
Sending module is identified, for sending the first request response identification to the log management device, so that described
Service management device obtains the business diary comprising the first request response identification from the business diary file of storage
File;
Journal file transmission module, for receiving marking comprising the first request response for the log management device transmission
The business diary file of knowledge, and the business diary file comprising the first request response identification is returned to user.
Another invention of the embodiment of the present invention provides a kind of log processing system of micro services system application, and feature exists
In, including application running equipment, micro services application running equipment, log management device and application management equipment, in which:
Using running equipment, for receiving the log file formats and log storage path of the transmission of application management equipment;
It is described to apply running equipment, it is also used to for the log file formats and the log storage path being allocated in incognito
Business system application, it is the application using running equipment Inhaul operation that the micro services system, which is applied,;
The micro services system application, for when receiving any application request, responding the application request, and generates
The corresponding request response identification of the application request;
The micro services system application is also used to according to the log file formats, raw for each application request
At the business diary file comprising the corresponding request response identification of the application request;
The micro services system application is also used to store the business diary file according to the log storage path;
It is described to apply running equipment, it is also used to acquire the business diary file according to the log storage path, and will
The business diary file is sent to log management device;
The log management device, for storing the business diary file;
Application management equipment, for receiving the first request response identification of user's transmission, the first request response identification
Mark corresponding to the first application request for micro services system application response;
The log management device is also used to receive the first request response identification of application management equipment transmission, and
The business diary file cocurrent comprising the first request response identification is obtained from the business diary file of storage to give
The application management equipment;
The application management equipment is also used to return to the business diary text comprising the first request response identification to user
Part.
On the other hand the embodiment of the present invention provides a kind of log processing device of micro services system application, comprising: processing
Device and memory;
The processor is connected with memory, wherein for storing program code, the processor is used for the memory
Said program code is called, to execute such as the method in the embodiment of the present invention.
The another aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage medium
Matter is stored with computer program, and the computer program includes program instruction, and described program is instructed when being executed by a processor, held
Row such as the method in the embodiment of the present invention.
In the embodiment of the present invention, the log file formats of application management equipment transmission are received using running equipment and log is deposited
Path is stored up, and log file formats and log storage path are allocated to and are answered using the micro services system of running equipment Inhaul operation
With micro services system is applied when receiving any application request, responds the application request, and it is corresponding to generate application request
Response identification is requested, micro services system is applied according to log file formats, and generation separately includes that each application request is corresponding to ask
The business diary file of response identification is sought, micro services system applies the business diary text generated according to log storage path storage
Part acquires the business diary file according to log storage path using running equipment, and by collected business diary file
It is sent to log management device, log management device storage service journal file, and is set receiving user by application management
After the first request response identification that preparation is sent, the industry comprising the first request response identification is obtained from the business diary file of storage
Business journal file is simultaneously sent to application management equipment, and application management equipment is literary by the business diary comprising the first request response identification
Part returns to user, and the first request response identification is corresponding to the first application request of micro services system application response
Mark.By the way that micro services system application configuration log file formats, the micro services system application of instruction is generated comprising request response
The business diary file of mark, and in the corresponding business diary file of the first application request of user's given query, quick-searching
Business diary file out comprising the first request response identification, and then ensure that the normal O&M of micro services system application.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ability
For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is a kind of log processing configuration diagram of micro services system application provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of application request response in a kind of micro services system provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram of the log processing method of micro services system application provided in an embodiment of the present invention;
Fig. 4 is a kind of interface signal of application request for showing the application response of micro services system provided in an embodiment of the present invention
Figure;
Fig. 5 is a kind of boundary for showing the business diary file comprising the first request response identification provided in an embodiment of the present invention
Face schematic diagram;
Fig. 6 is a kind of business diary Fileview interface schematic diagram provided in an embodiment of the present invention;
Fig. 7 is the process signal of the log processing method of another micro services system application provided in an embodiment of the present invention
Figure;
Fig. 8 is that a kind of process identification (PID) of micro services process provided in an embodiment of the present invention distributes schematic diagram;
Fig. 9 is the process signal of the log processing method of another micro services system provided in an embodiment of the present invention application
Figure;
Figure 10 is that a kind of service provided in an embodiment of the present invention relies on topological diagram;
Figure 11 is a kind of structural schematic diagram using running equipment provided in an embodiment of the present invention;
Figure 12 is a kind of structural schematic diagram of log management device provided in an embodiment of the present invention;
Figure 13 is a kind of structural schematic diagram of application management equipment provided in an embodiment of the present invention;
Figure 14 is a kind of structural schematic diagram of the log processing device of micro services system application provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that the described embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Based on this
Embodiment in invention, every other reality obtained by those of ordinary skill in the art without making creative efforts
Example is applied, shall fall within the protection scope of the present invention.
Before the log processing method applied to micro services system provided in an embodiment of the present invention is introduced, it is situated between first
The framework that the log processing method for the micro services system application for continuing of the invention is based on, refering to fig. 1, Fig. 1 is the embodiment of the present invention
The log processing configuration diagram of a kind of micro services system application provided, as shown, the framework includes that application management is set
It is standby, using running equipment and log management device.
It may include console, application performance management module and monitoring alarm platform in application management equipment, wherein control
Platform can be used by a user in operational order apply to micro services system of input, as log configuring request, log query instruct, according to
Rely Query of Topological instruction etc.;Application performance management module may include configuration module, aggregation module, statistical analysis module, configuration
Module can be used to parse log file formats, the log storage path etc. in the log configuring request of user's input
Afterwards, it is sent to using running equipment, aggregation module and statistical analysis module can be respectively to the industry obtained from log management device
Business journal file carries out being sent to console after arranging polymerization and statistical analysis, and then to user feedback relevant information, such as root
According to the business diary file for a certain application request fed back from log management device, the service for being directed to the application request is arranged
Rely on topological diagram;Monitoring alarm platform can be monitored alarm to business diary file, such as obtain from service management device
The log rank of the business diary file taken issues alarm when meeting default alarm regulation.
It may include virtual machine and container using running equipment, realize that being directed to application asks to carry the application of micro services system
The response asked.The micro services system application of virtual machine and bulk density Inhaul operation can be based on Service Mesh (service grid environment) portion
Administration, Service Mesh are made of a series of network agent of lightweights, these agencies (also known as Sidecar) are deployed in application
Together, the presence for not perceiving Sidecar is applied, Service Mesh solves the routing issue of micro services process requested.It is empty
Quasi- machine includes the micro services system application at virtual machine control center and its carrying, and virtual machine control center can receive application management
The log file formats and log storage path for the application of micro services system that equipment is sent, and it is allocated to micro services system
System application;Virtual machine manages center can also be micro- to the corresponding memory space acquisition of log storage path according to log collection process
The business diary file that service system application generates.Container includes the micro services system application of resource management module and its carrying,
Resource management module can receive the log file formats and log storage path of the transmission of application management equipment, and be allocated to container
The micro services system application of carrying, resource management module also can indicate that log collection process is deposited to log storage path is corresponding
The business diary file that the space acquisition micro services system application of storage generates.
Log management device may include channel, log memory module, operation support module and authority management module,
In, channel can receive the business diary file of the micro services system application acquisition of log running equipment transmission, and parse reception
To timestamp, the index name etc. of business diary file, it is sent to log memory module after being pre-processed and is stored.Operation branch
Hold mode block can receive the request response identification of application management equipment transmission, and be responded according to the request that application management equipment is sent
It identifies the business diary file for storing log memory module to retrieve, and the business diary file retrieved is returned to and is answered
Use management equipment.Authority management module can be managed the permission of the user of inquiry business journal file.
Next the micro services system in micro services system is introduced using the sound to application request in conjunction with the example in Fig. 2
It answers, Fig. 2 is the schematic diagram of application request response in a kind of micro services system provided in an embodiment of the present invention, as shown, in incognito
Business system is applied when receiving application request, which first reaches front-end A service processes, and then A service processes are distinguished
RPC (Remote Procedure Call, remote procedure call) is carried out to B service processes and C service processes, at B service processes
After the completion of reason, it is sent to A service processes in response, C service processes also need the D service processes and E service processes with rear end
After interacting, the response of A service processes is regenerated, finally, responding the application request by A service processes.During this, lead to
It crosses A service processes, B service processes, C service processes, D service processes and E service processes and completes sound to application request jointly
It answers, constitutes a call chain for application response.
Referring to Fig. 3, Fig. 3 is a kind of process of the log processing method of micro services system application provided in an embodiment of the present invention
Schematic diagram, as shown, the method may include:
S301 receives the log file formats and log storage path that application management equipment is sent using running equipment.
Specifically, log file formats and log storage path that application management equipment is sent can be from user's submission
It is extracted in log configuring request.Log file formats are used to indicate micro services system and apply the life when responding any application request
At the business diary file comprising requesting response identification corresponding to application request.In addition to carrying log text in log configuring request
Outside part format and log storage path, the target application that log file formats and log storage path are configured can also be carried
Mark.Here log file formats, which can be, is repaired using formats such as log4j, spring boot, logback as unprocessed form
Change, the log that the request mark of institute's response application request is written in business diary file is applied provided with instruction micro services system
After element, the log file formats of generation.Log storage path, which is used to indicate the application of micro services system, will generate business diary text
Part is buffered in corresponding memory space, which can be absolute path, such as/data/log/2017.log, day
Will store path also is used to determine the memory space of micro services system application cache business diary file by application running equipment, into
And obtain the business diary file that the application of micro services system generates.
Log file formats and log storage path are allocated to micro services system application using running equipment by S302.
Here, it is the application using running equipment Inhaul operation that micro services system, which is applied,.It is micro- in a kind of implementation
Service system application can realize that deployment group is to execute patrolling for application batch deployment in the form of deployment group in micro services system
Concept is collected, includes multiple application examples in a deployment group, runs identical application program on each application example.According to deployment
The associated application type of group, deployment group are divided into virtual machine application deployment group and container application deployment group.If micro services system application
It is realized, then above-mentioned log file formats and log storage path is sent in virtual machine control by virtual machine application deployment group
The heart, virtual machine control center and then the Agent (agency) for being allocated to deploying virtual machine group.If micro services system application passes through container
Deployment group is realized, then above-mentioned log file formats and log storage path is allocated to resource management module.
Optionally, it can also be carried other than carrying log file formats and log storage path in log configuring request
The target application mark that log file formats and log storage path are configured.Target application mark is mentioned using running equipment
After taking, corresponding micro services system application configuration log file formats and log storage path are identified to target application.
S303, micro services system are applied when receiving any application request, response application request, and generate application request
Corresponding request response identification.
Here, request response identification is the mark and the application request of the application request of micro services system application response
The mark of corresponding call chain.By taking Fig. 2 as an example, after micro services system application receives application request, application request first reaches A
Service processes, A service processes generate the corresponding request response identification of the application request, then A service processes to B service processes and
When C service processes carry out RPC calling, the request response identification of generation is passed into B service processes and C service processes, C service into
When journey rear end D service processes and E service processes further call, it is also desirable to transmit the request response identification, D service processes and
When E service processes respond C service processes and C service processes and B service processes response A service processes, also needs to carry and be somebody's turn to do
Response identification is requested, the micro services process of application request and micro services inter-process calling are connected by the request response identification
Come.Specifically, the request response identification can be TraceID.
S304, micro services system are applied according to log file formats, and generating for each application request includes application request
The business diary file of corresponding request response identification.
Specifically, micro services system application application request during being responded, in micro services system it is each in incognito
Business process generates corresponding business diary file according to log file formats, answers comprising this in these business diary files
It can also include journal file lattice in business diary file in addition to requesting response identification with corresponding request response identification is requested
Other log elements specified in the unprocessed form (such as one of log4j, spring boot, logback etc.) of formula, for example,
Thread name, message content, time of origin, log rank etc..
S305, micro services system are applied according to log storage path storage service journal file.
Specifically, the corresponding memory space of log storage path can be the caching in micro services system, micro services system
After being stored using the business diary file that will be generated according to the log storage path, using running equipment to the business in caching
After being acquired of journal file, the business diary in caching can be removed.
S306 using running equipment according to log storage path capturing service journal file, and business diary file is sent out
Give log management device.
After log file formats and log storage path are allocated to the application of micro services system using running equipment, Ke Yiqi
Internal log collection process is moved, the business diary file of micro services system application is acquired.In a kind of implementation, day
Will acquisition process can periodically carry out the acquisition of business diary file.Specifically, calling service interface creation using running equipment
Filebeat sidecar container, and filebeat sidecar container is written in log storage path in the form of environmental variance,
And start filebeat process and business diary file is acquired, filebeat process carries out multirow conjunction to business diary file
And log management device is sent to after waiting processing.
S307, log management device storage service journal file.
Specifically, the pipeline (channel) in log management device is firstly received the business generated using running equipment
Journal file, and pre-processing to data parses daily record data, extracts the indexes such as timestamp therein, request response identification
Information, and establish the corresponding relationship of the storage location of index information and business diary file, while by the corresponding relationship and business
Journal file is stored in log memory module.In a kind of implementation, which can be ElasticSearch collection
Group.
S308, log management device receive the first request response identification that user is sent by application management equipment.
Before step S308, micro services system application receives the first application request, micro services system application response first
Application request simultaneously generates the corresponding first request response identification of the first application request, and then generates and identify comprising the first application request
Business diary file, acquired using running equipment and be sent to log management device storage after the business diary.
Optionally, the first application request and the first request of the available micro services system application response of application management equipment
Response identification, and the corresponding relationship of the two is established, application management equipment can be shown by the display screen of itself to user micro-
The application request of service system application response, and asked receiving first log query of the user for the input of the first application request
When asking, the first request response identification is sent to log management device.Referring to fig. 4, Fig. 4 is one kind provided in an embodiment of the present invention
The interface schematic diagram of the application request of micro services system application response is shown, as shown, when user can be by selecting different
Between range, (to the abstraction set of one group of resource and object, the micro services in same NameSpace can be found mutually NameSpace
Called with mutual), call service and calling interface, be taken after mixing with liquid business and corresponding tune requested to different application by information such as tune interfaces
Retrieval and inquisition is carried out with chain, after the completion of inquiry, the call chain for meeting user search condition is appeared in below schematic diagram.And then works as and use
After wherein a certain TraceID is clicked at family, i.e., log management device has received the first request response identification that user inputs, in turn
Send it to the retrieval that log management device carries out business diary file.
S309, log management device are obtained from the business diary file of storage comprising the first request response mark
The business diary file cocurrent of knowledge gives the application management equipment.
In corresponding relationship of the log management device according to the index information and business diary file that pre-establish, request response
The corresponding relationship of mark and the storage location of business diary file, determines the corresponding business diary file of the first request response identification
Storage location, according to above-mentioned position acquisition include first request response identification business diary file.
S310, application management equipment return to the business diary file comprising the first request response identification to user.
Business diary file comprising the first request response identification can be passed through the aobvious of itself by application management equipment
Display screen curtain is pushed to user.Refering to Fig. 5, Fig. 5 is that a kind of show provided in an embodiment of the present invention requests response identification comprising first
Business diary file interface schematic diagram, application management equipment is directed to receiving user by the corresponding interface Fig. 4
TraceID is after the first log query of the supply chain of 71d44ff3f97d1de4 is requested, and being shown by Fig. 5 to user should
The corresponding two business diary files of TraceID, service and the service for respectively servicing entitled consumer-demo are entitled
The business diary file that the micro services process of provider-demo generates, user can be by further clicking below log
Icon can check specific business diary file.Refering to Fig. 6, Fig. 6 is a kind of business diary text provided in an embodiment of the present invention
Part checks interface schematic diagram, when checking the corresponding business diary file of provider-demo when the user clicks, by the business diary
The content of file shows user by the log content on right side in Fig. 6.
Optionally, the business diary file includes the process status information that microserver process is called, the process shape
State information is normal state information or abnormal state information, can also include: that the log management device connects after step S307
Receive the request investigation instruction extremely that the application management equipment is sent;The log management device responds the request and checks extremely
Instruction obtains the abnormal traffic journal file comprising abnormal state information from the business diary file stored;The log
Management equipment extracts the 4th request response identification for including in the abnormal traffic journal file, and from the business day of storage
All business diary files comprising the 4th request response identification are obtained in will file, the 4th request response identification is
The corresponding mark of the 4th application request of the micro services system application response;The log management device will acquire all
Business diary file comprising the 4th request response identification is sent to user, so that user is according to described all comprising described
The business diary file of 4th request response identification carries out abnormal factors investigation.It, can be from business by above-mentioned optional step
Journal file sets out, and quickly determines the exception in the business diary file of log management device storage comprising abnormal state information
Call chain where business diary file, and then the corresponding business diary document retrieval of entire call chain is come out, assist user
Quickly investigation abnormal factors.
In the embodiment of the present invention, the log file formats of application management equipment transmission are received using running equipment and log is deposited
Path is stored up, and log file formats and log storage path are allocated to and are answered using the micro services system of running equipment Inhaul operation
With micro services system is applied when receiving any application request, responds the application request, and it is corresponding to generate application request
Response identification is requested, micro services system is applied according to log file formats, and generation separately includes that each application request is corresponding to ask
The business diary file of response identification is sought, micro services system applies the business diary text generated according to log storage path storage
Part acquires the business diary file according to log storage path using running equipment, and by collected business diary file
It is sent to log management device, log management device storage service journal file, and is set receiving user by application management
After the first request response identification that preparation is sent, the industry comprising the first request response identification is obtained from the business diary file of storage
Business journal file is simultaneously sent to application management equipment, and application management equipment is literary by the business diary comprising the first request response identification
Part returns to user, and the first request response identification is corresponding to the first application request of micro services system application response
Mark.By the way that micro services system application configuration log file formats, the micro services system application of instruction is generated comprising request response
The business diary file of mark, and in the corresponding business diary file of the first application request of user's given query, from storage
It includes the business diary file of the first request response identification that quick-searching, which goes out, in business diary file, and then ensure that micro services system
The normal O&M of system application.
Referring to Fig. 7, Fig. 7 is the stream of the log processing method of another micro services system application provided in an embodiment of the present invention
Journey schematic diagram, as shown, the method may include:
S701 receives the log file formats and log storage path that application management equipment is sent using running equipment.
The log file formats and the log storage path are allocated to micro services by S702, the application running equipment
System application.
Wherein, micro services system is applied as using the application of running equipment Inhaul operation.
S703, the micro services system are applied when receiving any application request, according to the application request indicate to
Micro services inter-process calling is carried out between few two micro services processes to complete the response to the application request, and described in generation
The corresponding request response identification of application request, and micro services inter-process calling uniquely corresponding process identification (PID) every time.
Specifically, micro services system application response application request when, according to preset request execute logic, have independence into
Row response be directed to requesting itself micro services process, also have mutually call with complete response for requesting itself micro services into
Journey, by taking Fig. 2 as an example, for application request, B service processes, D service processes and E service processes can with complete independently to itself
Request, the response that A service processes, C service processes need to call other service processes that could complete to requesting itself.It is asked in application
During asking response, micro services process is successively executed according to preset execution logic, for the service that application request is first carried out
Process is arranged initial processes and identifies, and the micro services process of subsequent execution can successively add a conduct on the basis of initial processes identify
The process identification (PID) of itself.Wherein, belong to and correspond to the same process identification (PID) with the micro services process called between a micro services.It is optional
, process identification (PID) here can be SpanID.
Fig. 8 is participated in, Fig. 8 is that a kind of process identification (PID) of micro services process provided in an embodiment of the present invention distributes schematic diagram, such as
Shown in figure, service1 needs to call service2 for the response for completing to requesting itself, service2 complete independently to from
The response of body request executes logic according to preset request, executes service4 after the completion of service2, service4 needs again
Serviece5 is called to complete the response to requesting itself;Logic is executed according to preset request, is executed after the completion of service1
Response of service3, the service3 complete independently to requesting itself executes logic according to preset request, and service3 is completed
After execute service6, response of the service6 complete independently to requesting itself executes logic according to preset request,
Service7 is executed after the completion of service6, for service1, service2, service3, service4, service5,
The process identification (PID) of service6 and service7 can be followed successively by 1,1,2,2,3,4,5.
S704, the micro services system are applied according to the log file formats, between each micro services process
It calls and is generated respectively comprising the corresponding process identification (PID) of the micro services inter-process calling and the corresponding request of the application request
The business diary file of response identification.
In addition to request response identification and process identification (PID) in business diary file, the original of log file formats can also be included
Other log elements specified in format (such as one of log4j, spring boot, logback etc.), for example, thread name
Title, message content, time of origin, log rank etc..
S705, the micro services system, which is applied, stores the business diary file according to the log storage path.
S706, the application running equipment acquire the business diary file according to the log storage path, and by institute
It states business diary file and is sent to log management device.
S707, the log management device store the business diary file.
S708, the log management device receive user by the application management equipment send second request ring
It should identify and the first process identification (PID).
First process identification (PID) is that the micro services system is applied before step S708, responds second request and rings
The first micro services inter-process calling when should identify corresponding second application request, in each micro services inter-process calling of instruction
Corresponding mark.
S709, the log management device obtain from the business diary file of storage while including described second
Request response identification and the business diary file cocurrent of first process identification (PID) give the application management equipment.
Application management equipment receives while the business diary text comprising the second request response identification and the first process identification (PID)
User can be pushed to by the display screen of itself after part.For example, the second request response identification when user's input is
TraceID=71d44ff3f97d1de4, the first process identification (PID) is SpanID=20084e0ed40de5d2, then by Fig. 6
Shown in interface right part to user show the corresponding content of corresponding three business diary files.
In the embodiment of the present invention, the log file formats of application management equipment transmission are received using running equipment and log is deposited
Path is stored up, and log file formats and log storage path are allocated to and are answered using the micro services system of running equipment Inhaul operation
With, micro services system is applied when receiving any application request, according to application request indicate at least two micro services processes it
Between carry out micro services inter-process calling to complete the response to application request, and generate application request corresponding request response and mark
Know, and micro services inter-process calling uniquely corresponding process identification (PID) every time, micro services system are applied also according to journal file lattice
Formula is generated respectively for each micro services inter-process calling comprising the corresponding process identification (PID) of micro services inter-process calling, Yi Jiying
With the business diary file for requesting corresponding request response identification, micro services system is applied to store according to log storage path and be generated
Business diary file, the business diary file is acquired according to log storage path using running equipment, and will be collected
Business diary file is sent to log management device, log management device storage service journal file, and leads to receiving user
After crossing the second request response identification and the first process identification (PID) of application management equipment transmission, obtained from the business diary file of storage
It takes while the business diary file cocurrent comprising the second request response identification and the first process identification (PID) gives application management equipment, answer
The business diary file comprising the first request response identification is returned into user with management equipment.Matched by being applied to micro services system
Log file formats are set, instruction micro services system application generates the business diary text comprising request response identification and process identification (PID)
Part, and in the second application request of user's given query when the corresponding business diary file of the first process, from the business day of storage
The business diary file that quick-searching goes out while requesting response identification and the first process identification (PID) comprising second in will file, it is quickly auxiliary
It helps user to position the business diary file generated with a micro services inter-process calling, and then ensure that the application of micro services system
Normal O&M.
Refering to Fig. 9, Fig. 9 is the stream of the log processing method of another micro services system provided in an embodiment of the present invention application
Journey schematic diagram, as shown, the method may include:
S901 receives the log file formats and log storage path that application management equipment is sent using running equipment.
The log file formats and the log storage path are allocated to micro services by S902, the application running equipment
System application.
It is the application using running equipment Inhaul operation that the micro services system, which is applied,.
S903, the micro services system are applied when receiving any application request, according to the application request indicate to
Micro services inter-process calling is carried out between few two micro services processes to complete the response to the application request, and described in generation
The corresponding request response identification of application request, and micro services inter-process calling uniquely corresponding process identification (PID) every time.
Wherein, the micro services inter-process calling has corresponding homophony process and is transferred in journey every time, for example, Fig. 2
Shown in example, for A service processes to journey in the calling of B service processes, is transferred in based on A service processes, B service processes are to be transferred in
Journey.
S904, the micro services system are applied according to the log file formats, between each micro services process
It calls and is generated respectively comprising homophony in the corresponding process identification (PID) of the micro services inter-process calling, the micro services inter-process calling
The business diary text of the corresponding process identification (PID) of the dependent process of process and the corresponding request response identification of the application request
Part.
Wherein, the dependent process is to trigger the homophony process when the dependent process meets predeterminable event condition
The process of execution, the predeterminable event condition include that process starts or process terminates.Dependent process and dependent process it is pre-
If time conditions execute logic according to preset request and set.For example, in the example shown in Fig. 8, service1 is
The dependent process of service3, service2 are the dependent process of service4, and service3 is the dependent process of service6,
Service6 is the dependent process of service7.The process identification (PID) of dependent process can be indicated with ParentID.
S905, the micro services system, which is applied, stores the business diary file according to the log storage path.
S906, the application running equipment acquire the business diary file according to the log storage path, and by institute
It states business diary file and is sent to log management device.
S907, the log management device store the business diary file.
S908, the log management device receive the service dependence inquiry that user is sent by the application management equipment and ask
It asks.
Wherein, the service relies on inquiry request and carries third request response identification, and the third request response identification is
The corresponding mark of third application request of the micro services system application response.
S909, the log management device are obtained from the business diary file of storage comprising third request response mark
The business diary file cocurrent of knowledge gives the application management equipment.
S910, the application management equipment is according to the business diary file comprising third request response identification
Process identification (PID), and the process identification (PID) of the dependent process of homophony process accordingly, determine the corresponding clothes of the third application request
Business relies on topological diagram and returns to user.
Specifically, in the response for an application request, that is, in a call chain, a process identification (PID) is only
One, which represents one, independently carries out the micro services process that response is directed to requesting itself, or unique represent is adjusted between successively micro services process
Process identification (PID), the process identification (PID) of dependent process can represent the execution hierarchical relationship between micro services process, therefore pass through
The process identification (PID) of business diary file can determine the topological relation of micro services inter-process calling, by the homophony process answered according to
Rely the process identification (PID) of process that can determine the topological relation other than micro services process calling, and then can determine that third application is asked
Corresponding service is asked to rely on topological diagram.
For example, if indicating that the request response identification in business diary file, SpanID indicate business diary text with TraceID
Process identification (PID) in part, ParentID indicate the process identification (PID) of dependent process in business diary file, and log management device obtains
The corresponding business diary file of third request response identification in include micro services process title, TraceID, SpanID and
ParentID is as shown in table 1 below:
Micro services process title | TraceID | SpanID | ParentID |
Service1 | 1 | 1 | -1 |
Service2 | 1 | 2 | 1 |
Service3 | 1 | 3 | 1 |
Service4 | 1 | 3 | 1 |
Service5 | 1 | 4 | 3 |
Service6 | 1 | 5 | 4 |
Service7 | 1 | 5 | 4 |
Table 1
Wherein, the ParentID of Service1 is -1, represents service1 as root node, and then obtain third application request
Corresponding service dependence topological diagram is as shown in Figure 10, and Figure 10 is that a kind of service provided in an embodiment of the present invention relies on topological diagram.
In the embodiment of the present invention, the log file formats of application management equipment transmission are received using running equipment and log is deposited
Path is stored up, and log file formats and log storage path are allocated to and are answered using the micro services system of running equipment Inhaul operation
With, micro services system is applied when receiving any application request, according to application request indicate at least two micro services processes it
Between carry out micro services inter-process calling to complete the response to application request, and generate application request corresponding request response and mark
Know, and micro services inter-process calling uniquely corresponding process identification (PID) every time, micro services system are applied also according to journal file lattice
Formula is generated respectively for each micro services inter-process calling comprising the corresponding process identification (PID) of micro services inter-process calling, micro services
The dependent process of homophony process corresponding process identification (PID) and the corresponding request response identification of application request in inter-process calling
Business diary file, micro services system are applied the business diary file generated according to log storage path storage, are set using operation
It is standby that the business diary file is acquired according to log storage path, and collected business diary file is sent to log management
Equipment, log management device storage service journal file, and in the carrying for receiving user and being sent by application management equipment
After the service of three request response identifications relies on inquiry request, obtained from the business diary file of storage comprising third request response
The business diary file cocurrent of mark gives application management equipment, and application management equipment requests response mark according to comprising the third
The process identification (PID) of the business diary file of knowledge, and the process identification (PID) of the dependent process of homophony process accordingly, determine that third is answered
Topological diagram is relied on the corresponding service of request and returns to user.By to micro services system application configuration log file formats,
The micro services system application of instruction is generated comprising main in the corresponding process identification (PID) of micro services inter-process calling, micro services inter-process calling
The corresponding process identification (PID) of dependent process of journey and the business diary file of the corresponding request response identification of application request are transferred in,
It is fast from the business diary file of storage and when the corresponding service of user's given query third application request relies on de- topological diagram
Speed retrieves the business diary file comprising third request response identification, and accordingly generates service and rely on topological diagram, quickly assists
The O&M that user applies micro services system.
Referring to Figure 11, Figure 11 is a kind of structural schematic diagram using running equipment provided in an embodiment of the present invention, as schemed institute
Show, the application running equipment 10 at least may include:
Log information receiving module 1001, for receiving the log file formats and log storage of the transmission of application management equipment
Path;
Log information configuration module 1002, it is micro- for being allocated to the log file formats and the log storage path
Service system application, the micro services system apply be the application using running equipment Inhaul operation so that it is described in incognito
Business system is applied when receiving any application request, and the application request is responded, and generates that the application request is corresponding to ask
Response identification is sought, according to the log file formats, is generated for each application request corresponding comprising the application request
Request response identification business diary file, the micro services system apply according further to the log storage path storage described in
Business diary file;
Log acquisition module 1003, for acquiring the business diary file according to the log storage path, and by industry
Business journal file is sent to log management device, so that the log management device stores the business diary file, the day
Will management equipment is also after receiving the first request response identification that user is sent by application management equipment, described in storage
The business diary file cocurrent comprising the first request response identification is obtained in business diary file gives the application management
Equipment, the application management equipment return to the business diary file comprising the first request response identification to user, and described the
One request response identification is mark corresponding to the first application request of micro services system application response.
In the specific implementation, described can execute such as Fig. 3, Fig. 7 by each functional module built in it using running equipment
The each step executed described in the log processing method applied with the micro services system of Fig. 9 using running equipment, specific implementation
Details sees the realization details of each step in the corresponding embodiment of Fig. 3, Fig. 7 and Fig. 9, and details are not described herein again.
In the embodiment of the present invention, log information receiving module receives the log file formats and day that application management equipment is sent
Log file formats and log storage path are allocated to micro services system application by will store path, log information configuration module,
Micro services system is applied when receiving any application request, and the application request is responded, and generates that application request is corresponding to ask
Response identification is sought, micro services system is applied according to log file formats, and generation separately includes the corresponding request of each application request
The business diary file of response identification, micro services system apply the business diary file generated according to log storage path storage,
Log acquisition module acquires the business diary file according to log storage path, and collected business diary file is sent
To log management device, log management device storage service journal file, and sent out receiving user by application management equipment
After the first request response identification sent, the business day comprising the first request response identification is obtained from the business diary file of storage
Will file cocurrent gives application management equipment, and application management equipment returns the business diary file comprising the first request response identification
Reuse family, the first request response identification are mark corresponding to the first application request of micro services system application response
Know.By the way that micro services system application configuration log file formats, the micro services system application of instruction is generated comprising request response mark
The business diary file of knowledge, and in the corresponding business diary file of the first application request of user's given query, quick-searching goes out
Business diary file comprising the first request response identification, and then ensure that the normal O&M of micro services system application.
Referring to Figure 12, Figure 12 is a kind of structural schematic diagram of log management device provided in an embodiment of the present invention, as schemed institute
Show, the log management device 11 includes at least:
Journal file receiving module 1101, for receiving the business diary file for applying running equipment to send, the business
Journal file is micro- to be allocated to log file formats and log storage path that application management equipment is sent using running equipment
After service system application, the micro services system is applied when receiving any application request, responds the application request, and raw
At the corresponding request response identification of the application request, the micro services system is applied according to the log file formats, for
Each application request generates the business diary file comprising the corresponding request response identification of the application request;
Journal file memory module 1102, for storing the business diary file;
Receiving module 1103 is identified, the first request response mark sent for receiving user by the application management equipment
Know, the first request response identification is mark corresponding to the first application request of micro services system application response;
Journal file retrieval module 1104, for the journal file memory module storage business diary file in obtain
Business diary file comprising the first request response identification;
Journal file sending module 1105, the business diary file for that will include the first request response identification are sent
To the application management equipment, so that the application management equipment returns to the industry comprising the first request response identification to user
Business journal file.
In the specific implementation, the log management device can execute such as Fig. 3, Fig. 7 by each functional module built in it
Each step that log management device described in the log processing method applied with the micro services system of Fig. 9 executes, specific implementation
Details sees the realization details of each step in the corresponding embodiment of Fig. 3, Fig. 7 and Fig. 9, and details are not described herein again.
In the embodiment of the present invention, the log file formats of application management equipment transmission are received using running equipment and log is deposited
Path is stored up, and log file formats and log storage path are allocated to and are answered using the micro services system of running equipment Inhaul operation
With micro services system is applied when receiving any application request, responds the application request, and it is corresponding to generate application request
Response identification is requested, micro services system is applied according to log file formats, and generation separately includes that each application request is corresponding to ask
The business diary file of response identification is sought, micro services system applies the business diary text generated according to log storage path storage
Part acquires the business diary file according to log storage path using running equipment, and by collected business diary file
It is sent to journal file receiving module, journal file memory module storage service journal file, and is received in mark receiving module
To user by application management equipment send first request response identification after, business day of the journal file retrieval module from storage
After obtaining the business diary file comprising the first request response identification in will file, journal file sending module, which is sent it to, is answered
With management equipment, application management equipment will return to user comprising the business diary file of the first request response identification, and described first
Request mark corresponding to the first application request that response identification is micro services system application response.By to micro services system
System application configuration log file formats, instruction micro services system application generate the business diary file comprising requesting response identification,
And in the corresponding business diary file of the first application request of user's given query, it includes the first request response mark that quick-searching, which goes out,
The business diary file of knowledge, and then ensure that the normal O&M of micro services system application.
Referring to Figure 13, Figure 13 is a kind of structural schematic diagram of application management equipment provided in an embodiment of the present invention, as schemed institute
Show, the application management equipment 12 includes at least:
Configuring request receiving module 1201, for receiving the log configuring request of user's transmission, the log configuring request
Log file formats and log storage path are carried, the log file formats are used to indicate micro services system and apply appoints in response
The business diary file comprising requesting response identification corresponding to the application request is generated when one application request;
Log information sending module 1202, for sending the log file formats and the log to application running equipment
Store path so that the application running equipment log file formats and the log storage path are allocated to it is described micro-
Service system application, the micro services system apply the business diary file that will be generated according to the log file formats according to institute
Log storage path storage is stated, the application running equipment acquires the micro services system also according to the log storage path and answers
With the business diary file of generation, and the collected business diary file is sent to log management device, it is described
Log management device stores the business diary file acquired using running equipment;
Inquiry request receiving module 1203, for receiving the first log query request of user's transmission, first log
Inquiry request carries the first request response identification, and the first request response identification is the of micro services system application response
Mark corresponding to one application request;
Sending module 1204 is identified, for sending the first request response identification to the log management device, so that
The service management device obtains the business comprising the first request response identification from the business diary file of storage
Journal file;
Journal file transmission module 1205, for receiving ringing comprising first request for the log management device transmission
The business diary file that should be identified, and the business diary file comprising the first request response identification is returned to user.
In the specific implementation, the application management equipment can execute such as Fig. 3, Fig. 7 by each functional module built in it
Each step that application management equipment described in the log processing method applied with the micro services system of Fig. 9 executes, specific implementation
Details sees the realization details of each step in the corresponding embodiment of Fig. 3, Fig. 7 and Fig. 9, and details are not described herein again.
In the embodiment of the present invention, configuring request receiving module receives the log configuring request that user sends, log information hair
Send module by log configuring request log file formats and log storage path be sent to using running equipment, using operation
Log file formats and log storage path are allocated to the micro services system application using running equipment Inhaul operation by equipment, micro-
Service system is applied when receiving any application request, and the application request is responded, and generates the corresponding request of application request
Response identification, micro services system are applied according to log file formats, and generation separately includes the corresponding request of each application request and rings
The business diary file that should be identified, micro services system are applied the business diary file generated according to log storage path storage, are answered
The business diary file is acquired according to log storage path with running equipment, and collected business diary file is sent to
Log management device, log management device storage service journal file, and receive user in inquiry request receiving module and send
Carrying first request response identification the first log query request after, mark sending module by first request inquiry mark send
To log management device, log management device obtains the industry comprising the first request response identification from the business diary file of storage
Business journal file is simultaneously sent to journal file transmission module, and journal file transmission module will request the industry of response identification comprising first
Be engaged in journal file return user, and the first request response identification is the first application request of micro services system application response
Corresponding mark.By indicating that micro services system includes using generation to micro services system application configuration log file formats
The business diary file of response identification is requested, and in the corresponding business diary file of the first application request of user's given query,
It includes the business diary file of the first request response identification that quick-searching, which goes out, and then ensure that the normal fortune of micro services system application
Dimension.
Referring to Figure 14, Figure 14 is a kind of knot of the log processing device of micro services system application provided in an embodiment of the present invention
Structure schematic diagram, as shown, the transfer device 13 of the business datum includes that processor 1301, memory 1302 and communication connect
Mouth 1303.Processor 1301 is connected to memory 1302 and communication interface 1303, such as processor 1301 can be connected by bus
It is connected to memory 1302 and communication interface 1303.
Processor 1301 is configured as that the log processing device of the micro services system application is supported to execute Fig. 3, Fig. 7 and figure
Corresponding function in the log processing method of the application of micro services system described in 9.The processor 1301 can be central processing unit
(Central Processing Unit, CPU), network processing unit (Network Processor, NP), hardware chip or its
Any combination.Above-mentioned hardware chip can be specific integrated circuit (Application-Specific Integrated
Circuit, ASIC), programmable logic device (Programmable Logic Device, PLD) or combinations thereof.Above-mentioned PLD can
To be Complex Programmable Logic Devices (Complex Programmable Logic Device, CPLD), field programmable logic
Gate array (Field-Programmable Gate Array, FPGA), Universal Array Logic (Generic Array Logic,
GAL) or any combination thereof.
Memory 1302 is for storing program code etc..Memory 1302 includes internal storage, and internal storage can be with
Include at least one of the following: that volatile memory is (such as dynamic random access memory (DRAM), static state RAM (SRAM), synchronous
Dynamic ram (SDRAM) etc.) and nonvolatile memory (such as it is disposable programmable read only memory (OTPROM), programmable
ROM (PROM), erasable programmable ROM (EPROM), electrically erasable ROM (EEPROM).Memory 1302 can also wrap
External memory is included, external memory may include at least one of following: hard disk (Hard Disk Drive, HDD) or solid-state are hard
Disk (Solid-State Drive, SSD), flash drive, for example, it is high density flash memory (CF), secure digital (SD), miniature SD, mini
SD, extreme digital (xD), memory stick etc..
The communication interface 1303 is for receiving or sending data.
Processor 1301 can call said program code to execute following operation:
Receive log file formats and log storage path that application management equipment is sent;
The log file formats and the log storage path are allocated to micro services system application, the micro services system
System application is the application using running equipment Inhaul operation;
When receiving any application request, the application request is responded, and generates the corresponding request of the application request
Response identification;
According to the log file formats, including that the application request is corresponding for each application request generation is asked
Seek the business diary file of response identification;
The business diary file is stored according to the log storage path;
The business diary file is acquired according to the log storage path, and the business diary file is sent to day
Will management equipment, so that the log management device stores the business diary file;
The first request response identification that user is sent by the application management equipment is received, and from the industry of storage
Acquisition is given the application management comprising the business diary file cocurrent of the first request response identification and is set in business journal file
It is standby, so that the application management equipment returns to the business diary file comprising the first request response identification to user, it is described
First request response identification is mark corresponding to the first application request of micro services system application response.
It should be noted that the realization of each operation can also be to should refer to Fig. 3, Fig. 7 and embodiment of the method shown in Fig. 9
Corresponding description;The processor 1301 can be also used for executing other operations in above method embodiment.
The embodiment of the present invention also provides a kind of computer storage medium, and the computer storage medium is stored with computer journey
Sequence, the computer program include program instruction, and described program instruction executes the computer such as
Method described in previous embodiment, the computer can be the log processing device that micro services system mentioned above is applied
A part.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.
Claims (14)
1. a kind of log processing method of micro services system application characterized by comprising
The log file formats and log storage path that application management equipment is sent are received using running equipment;
The log file formats and the log storage path are allocated to micro services system application by the application running equipment,
It is the application using running equipment Inhaul operation that the micro services system, which is applied,;
The micro services system is applied when receiving any application request, and the application request is responded, and generates the application
Request corresponding request response identification;
The micro services system is applied according to the log file formats, is generated for each application request and is answered comprising described
With the business diary file for requesting corresponding request response identification;
The micro services system, which is applied, stores the business diary file according to the log storage path;
The application running equipment acquires the business diary file according to the log storage path, and by the business diary
File is sent to log management device, so that the log management device stores the business diary file;
The log management device receive user by the application management equipment send first request response identification, and from
The business diary file cocurrent comprising the first request response identification is obtained in the business diary file of storage gives institute
Application management equipment is stated, so that the application management equipment returns to the business day comprising the first request response identification to user
Will file, the first request response identification are mark corresponding to the first application request of micro services system application response
Know.
2. asking the method according to claim 1, wherein the micro services system is applied receiving any application
When asking, responding the application request includes:
The micro services system apply according to the application request indicate at least two micro services processes between carry out micro services into
It calls between journey to complete the response to the application request, and in the micro services inter-process calling, for each micro services
Inter-process calling generates unique corresponding process identification (PID);
The micro services system is applied according to the log file formats, is generated for each application request and is answered comprising described
Include: with the corresponding business diary file for requesting response identification of request
The micro services system is applied according to the log file formats, is given birth to respectively for each micro services inter-process calling
Response identification is requested at including that the corresponding process identification (PID) of the micro services inter-process calling and the application request are corresponding
Business diary file;
The method also includes:
The log management device receive user by the application management equipment send second request response identification and
First process identification (PID), first process identification (PID) are that the micro services system is applied in response the second request response identification pair
The corresponding mark of the first micro services inter-process calling when the second application request answered, in each micro services inter-process calling of instruction
Know;
The log management device obtains while from the business diary file of storage comprising the second request response mark
Know and the business diary file cocurrent of first process identification (PID) gives the application management equipment.
3. according to the method described in claim 2, it is characterized in that, every time the micro services inter-process calling have it is corresponding
Homophony process and transferred in journey;
The micro services system is applied according to the log file formats, is given birth to respectively for each micro services inter-process calling
Include: at the business diary file comprising the corresponding request response identification of corresponding process identification (PID) and the application request
The micro services system is applied according to the log file formats, is given birth to respectively for each micro services inter-process calling
At the dependence comprising homophony process in the corresponding process identification (PID) of the micro services inter-process calling, the micro services inter-process calling
The business diary file of the corresponding process identification (PID) of process and the corresponding request response identification of the application request, the dependence
Process is to trigger the process that the homophony process executes, the default thing when the dependent process meets predeterminable event condition
Part condition includes that process starts or process terminates;
The method also includes:
The log management device receives user and relies on inquiry request, the clothes by the service that the application management equipment is sent
Business relies on inquiry request and carries third request response identification, and the third request response identification is that micro services system application is rung
The corresponding mark of third application request answered;
The log management device obtains the business comprising third request response identification from the business diary file of storage
Journal file is simultaneously sent to the application management equipment, so that the application management equipment is requested according to described comprising the third
The process identification (PID) of the business diary file of response identification, and the process identification (PID) of the dependent process of homophony process accordingly, determine
The corresponding service of the third application request relies on topological diagram and returns to user.
4. according to the method described in claim 2, it is characterized in that, the business diary file is called comprising microserver process
Process status information, the process status information be normal state information or abnormal state information;
The method also includes:
The log management device receives the request investigation instruction extremely that the application management equipment is sent;
The log management device responds request investigation instruction extremely, from the business diary file stored acquisition include
The abnormal traffic journal file of abnormal state information;
The log management device extracts the 4th request response identification for including in the abnormal traffic journal file, and from storage
The business diary file in obtain it is all comprising it is described 4th request response identification business diary files, the described 4th asks
Seeking response identification is the corresponding mark of the 4th application request of micro services system application response;
All business diary files comprising the 4th request response identification that the log management device will acquire are sent
To user, so that user carries out abnormal factors according to all business diary files comprising the 4th request response identification
Investigation.
5. a kind of log processing method of micro services system application characterized by comprising
Application management equipment receives the log configuring request that user sends, the log configuring request carry log file formats and
Log storage path, the log file formats are used to indicate micro services system and apply the generation packet when responding any application request
Containing the business diary file for requesting response identification corresponding to the application request;
The application management equipment sends the log file formats and the log storage path to application running equipment, so that
The log file formats and the log storage path are allocated to the micro services system application by the application running equipment,
The micro services system applies the business diary file that will be generated according to the log file formats to store road according to the log
Diameter storage, it is described to be acquired described in the micro services system application generation using running equipment also according to the log storage path
Business diary file, and the collected business diary file is sent to log management device, the log management device
Store the business diary file acquired using running equipment;
The application management equipment receives the first log query request that user sends, and the first log query request carries the
One request response identification, the first request response identification are right for the first application request of micro services system application response
The mark answered;
The application management equipment sends the first request response identification to the log management device, so that the business pipe
Equipment is managed from the business diary file of storage, obtains the business diary file comprising the first request response identification;
The application management equipment receives the business comprising the first request response identification that the log management device is sent
Journal file, and the business diary file comprising the first request response identification is returned to user.
6. according to the method described in claim 5, it is characterized in that, the micro services system according to the application request using referring to
Show and carry out calling between micro services to complete the response to the application request between at least two micro services processes, and described micro-
When calling between service processes, unique corresponding process identification (PID) is generated for each micro services inter-process calling;
The log file formats are specifically used for instruction micro services system and apply when responding any application request, for each institute
Micro services inter-process calling is stated to be generated respectively comprising corresponding process identification (PID) and the corresponding request response mark of the application request
The business diary file of knowledge;
The method also includes:
The application management equipment receives the second log inquiry request that user sends, and the second log inquiry request carries the
Two request response identifications and the first process identification (PID), first process identification (PID) are that the micro services system is applied described in the response
The first micro services when the second request corresponding second application request of response identification, in each micro services inter-process calling of instruction
The corresponding mark of inter-process calling;
The application management equipment to the log management device send it is described second request response identification and described first into
Journey mark, so that the log management device from the business diary file of storage, is obtained while being asked comprising described second
Seek the business diary file of response identification and first process identification (PID);
The application management equipment receive while the log management device is sent comprising the second request response identification and
The business diary file of first process identification (PID), and returned to user and request response identification and described comprising described second simultaneously
The business diary file of first process identification (PID).
7. according to the method described in claim 6, it is characterized in that, every time the micro services inter-process calling have it is corresponding
Homophony process and transferred in journey;
The log file formats are specifically used for instruction micro services system and apply when responding any application request, for each institute
State micro services inter-process calling generate respectively comprising the corresponding process identification (PID) of the micro services inter-process calling, the micro services into
The corresponding process identification (PID) of dependent process of homophony process and the corresponding request response identification of the application request in being called between journey
Business diary file, the dependent process be when the dependent process meets predeterminable event condition, trigger the homophony into
The process of Cheng Zhihang, the predeterminable event condition include that process starts or process terminates;
The method also includes:
The service that the application management equipment receives the carrying third request response identification that user sends relies on inquiry request, described
It is the corresponding mark of third application request of micro services system application response that third, which requests response identification,;
The application management equipment sends the third to the log management device and requests response identification, so that the log pipe
Reason equipment obtains the business diary file comprising third request response identification from the business diary file stored;
The application management equipment receives the business comprising third request response identification that the log management device is sent
Journal file, and according to the process identification (PID) of the business diary file comprising third request response identification, and accordingly
Homophony process dependent process process identification (PID), determine that the corresponding service of the third application request relies on topological diagram, and to
User returns to the service and relies on topological diagram.
8. according to the method described in claim 6, it is characterized in that, the business diary file is called comprising microserver process
Process status information, the process status information be normal state information or abnormal state information;
The method also includes:
The application management equipment sends the abnormal investigation instruction of request to the log management device, so that the log management is set
It is standby that the abnormal traffic journal file comprising abnormal state information is obtained from the business diary file stored, and extract described different
The 4th request response identification in normal business diary, the log management device are obtained from the business diary file of storage
All business diary files comprising the 4th request response identification, the 4th request response identification is the micro services system
The corresponding mark of the 4th application request of system application response;
The application management equipment receives described all of log management device transmission and requests response identification comprising the described 4th
Business diary file cocurrent gives user, so that user is according to all business days comprising the 4th request response identification
Will file carries out abnormal factors investigation.
9. a kind of apply running equipment characterized by comprising
Log information receiving module, for receiving the log file formats and log storage path of the transmission of application management equipment;
Log information configuration module, for the log file formats and the log storage path to be allocated to micro services system
Using it is the application using running equipment Inhaul operation that the micro services system, which is applied, so that the micro services system is answered
Used in when receiving any application request, the application request is responded, and generates the corresponding request response mark of the application request
Know, according to the log file formats, generates for each application request and rung comprising the corresponding request of the application request
The business diary file that should be identified, the micro services system, which is applied, stores the business diary according further to the log storage path
File;
Log acquisition module, for acquiring the business diary file according to the log storage path, and business diary is literary
Part is sent to log management device, so that the log management device stores the business diary file, the log management is set
It is standby also after receive that user sends by application management equipment first requests response identification, from the business diary of storage
The business diary file cocurrent comprising the first request response identification is obtained in file gives the application management equipment, it is described
Application management equipment returns to the business diary file comprising the first request response identification, the first request response to user
It is identified as mark corresponding to the first application request of the micro services system application response.
10. a kind of log management device characterized by comprising
Journal file receiving module, for receiving the business diary file for applying running equipment to send, the business diary file
For the log file formats and log storage path that application management equipment is sent are allocated to micro services system using running equipment
After, the micro services system is applied when receiving any application request, responds the application request, and answer described in generation
With corresponding request response identification is requested, the micro services system is applied according to the log file formats, for each described
Application request generates the business diary file comprising the corresponding request response identification of the application request;
Journal file memory module, for storing the business diary file;
Receiving module is identified, the first request response identification sent for receiving user by the application management equipment is described
First request response identification is mark corresponding to the first application request of micro services system application response;
Journal file retrieval module, for obtaining in the business diary file of journal file memory module storage comprising described
The business diary file of first request response identification;
Journal file sending module, the business diary file for that will include the first request response identification are sent to described answer
With management equipment, request the business diary of response identification literary comprising described first so that the application management equipment is returned to user
Part.
11. a kind of application management equipment characterized by comprising
Configuring request receiving module, for receiving the log configuring request of user's transmission, the log configuring request carries log
File format and log storage path, the log file formats, which are used to indicate micro services system, to be applied and asks responding any application
The business diary file comprising requesting response identification corresponding to the application request is generated when asking;
Log information sending module, for sending the log file formats and log storage road to application running equipment
Diameter, so that the log file formats and the log storage path are allocated to the micro services system by the application running equipment
System application, the micro services system apply the business diary file that will be generated according to the log file formats according to the log
Store path storage, the application running equipment acquire the micro services system application also according to the log storage path and generate
The business diary file, and the collected business diary file is sent to log management device, the log pipe
Reason equipment stores the business diary file acquired using running equipment;
Inquiry request receiving module, for receiving the first log query request of user's transmission, the first log query request
The first request response identification is carried, the first request response identification is that the first application of micro services system application response is asked
Seek corresponding mark;
Sending module is identified, for sending the first request response identification to the log management device, so that the business
Management equipment obtains the business diary text comprising the first request response identification from the business diary file of storage
Part;
Journal file transmission module includes the first request response identification for receive the log management device transmission
Business diary file, and the business diary file comprising the first request response identification is returned to user.
12. a kind of log processing system of micro services system application, which is characterized in that answered including application running equipment, micro services
With running equipment, log management device and application management equipment, in which:
Using running equipment, for receiving the log file formats and log storage path of the transmission of application management equipment;
It is described to apply running equipment, it is also used to the log file formats and the log storage path being allocated to micro services system
System application, it is the application using running equipment Inhaul operation that the micro services system, which is applied,;
The micro services system application, for when receiving any application request, responding the application request, and described in generation
The corresponding request response identification of application request;
The micro services system application, is also used to according to the log file formats, generates packet for each application request
The business diary file of the corresponding request response identification containing the application request;
The micro services system application is also used to store the business diary file according to the log storage path;
It is described to apply running equipment, it is also used to acquire the business diary file according to the log storage path, and will be described
Business diary file is sent to log management device;
The log management device, for storing the business diary file;
Application management equipment, for receiving the first request response identification of user's transmission, the first request response identification is institute
State mark corresponding to the first application request of micro services system application response;
The log management device is also used to receive the first request response identification of application management equipment transmission, and from depositing
Acquisition is given described comprising the business diary file cocurrent of the first request response identification in the business diary file of storage
Application management equipment;
The application management equipment is also used to return to the business diary file comprising the first request response identification to user.
13. a kind of log processing device of micro services system application, which is characterized in that including processor, memory and communication
Interface, the processor, memory and communication interface are connected with each other, wherein and the communication interface is used to send and receive data,
The memory executes such as claim 1 to 8 for calling said program code for storing program code, the processor
Method described in any one.
14. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey
Sequence, the computer program are executed by processor to realize method described in claim 1 to 8 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910656117.8A CN110427299B (en) | 2019-07-19 | 2019-07-19 | Log processing method, related device and system for micro-service system application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910656117.8A CN110427299B (en) | 2019-07-19 | 2019-07-19 | Log processing method, related device and system for micro-service system application |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110427299A true CN110427299A (en) | 2019-11-08 |
CN110427299B CN110427299B (en) | 2022-02-11 |
Family
ID=68411255
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910656117.8A Active CN110427299B (en) | 2019-07-19 | 2019-07-19 | Log processing method, related device and system for micro-service system application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110427299B (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111031144A (en) * | 2019-12-26 | 2020-04-17 | 广州鲁邦通物联网科技有限公司 | Method and system for calling and inquiring distributed micro service |
CN111143304A (en) * | 2019-11-20 | 2020-05-12 | 杭州端点网络科技有限公司 | Micro-service system abnormal log analysis method based on request link |
CN111176987A (en) * | 2019-12-18 | 2020-05-19 | 深圳前海环融联易信息科技服务有限公司 | Method and device for uniformly outputting front-end log, computer equipment and storage medium |
CN111611089A (en) * | 2020-02-07 | 2020-09-01 | 中国海洋大学 | Asynchronous declaration type micro-service scheduling method |
CN111930700A (en) * | 2020-07-13 | 2020-11-13 | 车智互联(北京)科技有限公司 | Distributed log processing method, server, system and computing equipment |
CN112491634A (en) * | 2020-12-21 | 2021-03-12 | 北京云思畅想科技有限公司 | Full-link intelligent fault simulation and assessment defense method in micro-service scene |
CN112633783A (en) * | 2021-03-10 | 2021-04-09 | 成都卓杭网络科技股份有限公司 | Machine room operation and maintenance control system |
WO2021109874A1 (en) * | 2019-12-03 | 2021-06-10 | 中兴通讯股份有限公司 | Method for generating topology diagram, anomaly detection method, device, apparatus, and storage medium |
CN113364775A (en) * | 2021-06-04 | 2021-09-07 | 北京京东振世信息技术有限公司 | Calling method and device of microservice and server |
CN113377732A (en) * | 2020-03-10 | 2021-09-10 | 中国移动通信集团湖南有限公司 | Method, device and equipment for collecting logs |
CN113810234A (en) * | 2021-09-18 | 2021-12-17 | 北京字跳网络技术有限公司 | Micro-service link topology processing method and device and readable storage medium |
CN115967614A (en) * | 2021-10-08 | 2023-04-14 | 大唐移动通信设备有限公司 | Network element log extraction method and device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107861859A (en) * | 2017-11-22 | 2018-03-30 | 北京汇通金财信息科技有限公司 | A kind of blog management method and system based on micro services framework |
CN108512689A (en) * | 2017-12-15 | 2018-09-07 | 中国平安财产保险股份有限公司 | Micro services business monitoring method and server |
CN108600012A (en) * | 2018-04-26 | 2018-09-28 | 深圳光华普惠科技有限公司 | Micro services framework monitoring system |
US20180329797A1 (en) * | 2017-05-12 | 2018-11-15 | Fujitsu Limited | Log output control apparatus, log output control method, and database server |
CN108847989A (en) * | 2018-06-29 | 2018-11-20 | 杭州安恒信息技术股份有限公司 | Log processing method, business service system and electronic equipment based on micro services framework |
CN109902105A (en) * | 2019-02-28 | 2019-06-18 | 携程旅游网络技术(上海)有限公司 | For the data query system of micro services framework, method, equipment and storage medium |
-
2019
- 2019-07-19 CN CN201910656117.8A patent/CN110427299B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180329797A1 (en) * | 2017-05-12 | 2018-11-15 | Fujitsu Limited | Log output control apparatus, log output control method, and database server |
CN107861859A (en) * | 2017-11-22 | 2018-03-30 | 北京汇通金财信息科技有限公司 | A kind of blog management method and system based on micro services framework |
CN108512689A (en) * | 2017-12-15 | 2018-09-07 | 中国平安财产保险股份有限公司 | Micro services business monitoring method and server |
CN108600012A (en) * | 2018-04-26 | 2018-09-28 | 深圳光华普惠科技有限公司 | Micro services framework monitoring system |
CN108847989A (en) * | 2018-06-29 | 2018-11-20 | 杭州安恒信息技术股份有限公司 | Log processing method, business service system and electronic equipment based on micro services framework |
CN109902105A (en) * | 2019-02-28 | 2019-06-18 | 携程旅游网络技术(上海)有限公司 | For the data query system of micro services framework, method, equipment and storage medium |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111143304A (en) * | 2019-11-20 | 2020-05-12 | 杭州端点网络科技有限公司 | Micro-service system abnormal log analysis method based on request link |
CN111143304B (en) * | 2019-11-20 | 2023-09-29 | 杭州端点网络科技有限公司 | Micro-service system exception log analysis method based on request link |
US11797360B2 (en) | 2019-12-03 | 2023-10-24 | Zte Corporation | Method for generating topology diagram, anomaly detection method, device, apparatus, and storage medium |
WO2021109874A1 (en) * | 2019-12-03 | 2021-06-10 | 中兴通讯股份有限公司 | Method for generating topology diagram, anomaly detection method, device, apparatus, and storage medium |
CN111176987A (en) * | 2019-12-18 | 2020-05-19 | 深圳前海环融联易信息科技服务有限公司 | Method and device for uniformly outputting front-end log, computer equipment and storage medium |
CN111031144A (en) * | 2019-12-26 | 2020-04-17 | 广州鲁邦通物联网科技有限公司 | Method and system for calling and inquiring distributed micro service |
CN111611089A (en) * | 2020-02-07 | 2020-09-01 | 中国海洋大学 | Asynchronous declaration type micro-service scheduling method |
CN111611089B (en) * | 2020-02-07 | 2023-06-27 | 中国海洋大学 | Asynchronous declaration-based micro-service scheduling method |
CN113377732A (en) * | 2020-03-10 | 2021-09-10 | 中国移动通信集团湖南有限公司 | Method, device and equipment for collecting logs |
CN111930700B (en) * | 2020-07-13 | 2024-05-31 | 车智互联(北京)科技有限公司 | Distributed log processing method, server, system and computing device |
CN111930700A (en) * | 2020-07-13 | 2020-11-13 | 车智互联(北京)科技有限公司 | Distributed log processing method, server, system and computing equipment |
CN112491634B (en) * | 2020-12-21 | 2021-09-24 | 北京云思畅想科技有限公司 | Full-link intelligent fault simulation and assessment defense method in micro-service scene |
CN112491634A (en) * | 2020-12-21 | 2021-03-12 | 北京云思畅想科技有限公司 | Full-link intelligent fault simulation and assessment defense method in micro-service scene |
CN112633783A (en) * | 2021-03-10 | 2021-04-09 | 成都卓杭网络科技股份有限公司 | Machine room operation and maintenance control system |
CN113364775A (en) * | 2021-06-04 | 2021-09-07 | 北京京东振世信息技术有限公司 | Calling method and device of microservice and server |
CN113364775B (en) * | 2021-06-04 | 2023-04-18 | 北京京东振世信息技术有限公司 | Calling method and device of microservice and server |
CN113810234B (en) * | 2021-09-18 | 2023-04-18 | 北京字跳网络技术有限公司 | Method and device for processing micro-service link topology and readable storage medium |
CN113810234A (en) * | 2021-09-18 | 2021-12-17 | 北京字跳网络技术有限公司 | Micro-service link topology processing method and device and readable storage medium |
CN115967614A (en) * | 2021-10-08 | 2023-04-14 | 大唐移动通信设备有限公司 | Network element log extraction method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110427299B (en) | 2022-02-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110427299A (en) | Log processing method, relevant device and the system of micro services system application | |
CN104866383B (en) | Interface calling method and device and terminal | |
CN102779185B (en) | High-availability distribution type full-text index method | |
CN110311831B (en) | Container cloud-based system resource monitoring method and related equipment | |
CN106933872A (en) | A kind of method and device that cloud storage service is accessed by traditional file systemses interface | |
US10491453B2 (en) | Correlating computing network events | |
CN111881223B (en) | Data management method, device, system and storage medium | |
JPH06208472A (en) | Method for process control and system therefor | |
CN101621405A (en) | Distributed type management monitoring system, monitoring method and establishing method thereof | |
CN111258978B (en) | Data storage method | |
CN107528751B (en) | A kind of system and its management method of dynamic distribution Zabbix monitoring data | |
CN108897527A (en) | The Docker mirror image of remote sensing image processing automates dynamic fixing method in a kind of cloud computing | |
CN112286776A (en) | Method and system for tracking micro-service link | |
KR20150083938A (en) | System for interoperation between dds and dbms | |
CN104573428B (en) | A kind of method and system for improving server cluster resource availability | |
CN110196780B (en) | Method, device, storage medium and electronic device for determining server state | |
CN114791846A (en) | Method for realizing observability aiming at cloud native chaos engineering experiment | |
US11831485B2 (en) | Providing selective peer-to-peer monitoring using MBeans | |
CN109582659A (en) | Request recording method, system, device and the readable storage medium storing program for executing of processing links | |
Golla et al. | T4: A highly threaded server-on-a-chip with native support for heterogeneous computing | |
CN113742172B (en) | Method, system and related device for collecting server logs | |
CN112783842B (en) | Log collection method and device | |
CN112019362A (en) | Data transmission method, device, server, terminal, system and storage medium | |
CN117955978A (en) | Data transmission method and related device | |
US7703106B2 (en) | Discovering and monitoring process executions |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |