CN108737467A - A kind of server log inspection method, device and system - Google Patents

A kind of server log inspection method, device and system Download PDF

Info

Publication number
CN108737467A
CN108737467A CN201710256890.6A CN201710256890A CN108737467A CN 108737467 A CN108737467 A CN 108737467A CN 201710256890 A CN201710256890 A CN 201710256890A CN 108737467 A CN108737467 A CN 108737467A
Authority
CN
China
Prior art keywords
daily record
record data
service server
server
request
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
Application number
CN201710256890.6A
Other languages
Chinese (zh)
Other versions
CN108737467B (en
Inventor
吴文斌
吴浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710256890.6A priority Critical patent/CN108737467B/en
Publication of CN108737467A publication Critical patent/CN108737467A/en
Application granted granted Critical
Publication of CN108737467B publication Critical patent/CN108737467B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of server log inspection method, device and system to improve the processing speed of server log storage and inquiry to mitigate the processing load of log server.The server log inspection method, including:The daily record data inquiry request that requesting party sends is received, the daily record data inquiry request carries service identification;According to the correspondence between the service identification being pre-created and service server mark, the corresponding at least one service server mark of the service identification carried in the daily record data inquiry request is determined;According at least one service server mark determined, sends daily record data to corresponding service server and obtain request, wherein be stored with the daily record data of self-operating business in the service server;It receives service server and obtains the daily record data that request returns for the daily record data;The daily record data received is sent to requesting party.

Description

A kind of server log inspection method, device and system
Technical field
The present invention relates to field of computer technology more particularly to a kind of server log inspection method, device and system.
Background technology
Background that this section is intended to provide an explanation of the embodiments of the present invention set forth in the claims or context.Herein Description recognizes it is the prior art not because not being included in this part.
Server log has recorded server and receives the various raw informations such as processing request and run time error.By right Daily record is counted, is analyzed, is integrated, and the operation conditions of server can be effectively grasped, and is found and debug reason, understanding User accesses distribution etc., the maintenance and management of better strengthening system.
Since a business may be deployed on multiple servers, checks server log for the ease of user, usually adopt The mode of centralized management is taken, as shown in Figure 1, it is in the prior art, the schematic network structure of server log storage wraps Include an at least service server 11, log server 12 and user terminal 13.Wherein, it is deployed with storage on log server 12 System, the service that each service server 11 will be generated by the daily record client run on the service server in operational process Device daily record data be sent to log server 12 storage system it is unified store, can be with when user needs inquiry log data According to the actual demand of itself, request is sent to obtain server log to log server by user terminal 13.
It can be seen that in the prior art, uniformly stored by log server the daily record data that each service server generates with And the daily record data inquiry request that all user terminals of response are initiated, i.e., the storage of server log and inquiry request processing by Log server undertakes, and increases the processing load of log server, reduces the processing speed of daily record data storage and inquiry. If synchronization storage request and daily record data inquiry request treating capacity are larger, log server is possibly even caused when serious Delay machine reduces the stability of daily record data storage and inquiry.
Invention content
A kind of server log inspection method of offer of the embodiment of the present invention, device and system, to mitigate log server Processing load, improve server log storage and inquiry processing speed.
The embodiment of the present invention provides a kind of server log inspection method, including:
The daily record data inquiry request that requesting party sends is received, the daily record data inquiry request carries service identification;
According to the correspondence between the service identification being pre-created and service server mark, the daily record data is determined The corresponding at least one service server mark of service identification carried in inquiry request;
According at least one service server mark determined, sends daily record data to corresponding service server and obtain Request, wherein the daily record data of self-operating business is stored in the service server;
It receives service server and obtains the daily record data that request returns for the daily record data;
The daily record data received is sent to requesting party.
The embodiment of the present invention provides a kind of server log checking device, including:
First receiving unit, the daily record data inquiry request for receiving requesting party's transmission, the daily record data inquiry are asked It asks and carries service identification;
Determination unit, for the correspondence between being identified according to the service identification being pre-created and service server, really The corresponding at least one service server mark of service identification carried in the fixed daily record data inquiry request;
First transmission unit, for being identified according at least one service server determined, to corresponding business service Device sends daily record data and obtains request, wherein the daily record data of self-operating business is stored in the service server;
Second receives unit, and the daily record number that request returns is obtained for the daily record data for receiving service server According to;
Second transmission unit, for the daily record data received to be sent to requesting party.
The embodiment of the present invention provides a kind of log server, including above-mentioned server log checking device.
A kind of server log of offer of the embodiment of the present invention checks system, including:
User terminal, for sending daily record data inquiry request to log server, the daily record data inquiry request is taken With service identification;
Log server, the correspondence between being identified for the basis service identification being pre-created and service server, Determine the corresponding at least one service server mark of the service identification carried in the daily record data inquiry request;According to determination At least one service server mark gone out sends daily record data to corresponding service server and obtains request;And it is receiving After the daily record data returned to service server, the daily record data received is sent to the user terminal;
Service server, the daily record data for being generated during storage running;And receiving the log services When the daily record data that device is sent obtains request, obtains request for the daily record data and return to daily record number to the log server According to.
Server log inspection method, device, system and log server provided in an embodiment of the present invention, by by daily record Storage is detached with daily record look facility, wherein daily record data is stored in service server local so that daily record storage is scattered in more On platform service server, the requirement to log server storage performance is reduced;And when needing to inquire server log data, Daily record data inquiry request can be distributed to corresponding service server by log server to handle, to alleviate The processing load of log server, improves the processing speed of daily record storage and log query.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The purpose of the present invention and other advantages can be by the explanations write Specifically noted structure is realized and is obtained in book, claims and attached drawing.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and constitutes the part of the present invention, this hair Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is the schematic network structure of server log storage in the prior art;
Fig. 2 is the schematic network structure of server log storage in the embodiment of the present invention;
Fig. 3 is the implementation process diagram of server log inspection method in the embodiment of the present invention;
Fig. 4 is virtual interactive interface page schematic diagram in the embodiment of the present invention;
Fig. 5 is during the present invention is implemented, and user checks the flow diagram of the daily record data of certain business;
Fig. 6 is the structural schematic diagram of server log checking device during the present invention is implemented;
Fig. 7 is during the present invention is implemented, and server log checks the structural schematic diagram of system.
Specific implementation mode
In order to mitigate the processing load of log server, the processing speed of daily record storage and log query, the present invention are improved Embodiment provides a kind of server log inspection method, device, system and log server.
Below in conjunction with Figure of description, preferred embodiment of the present invention will be described, it should be understood that described herein Preferred embodiment only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention, and in the absence of conflict, this hair The feature in embodiment and embodiment in bright can be combined with each other.
As shown in Fig. 2, it is in the embodiment of the present invention, the schematic network structure of server log storage, including daily record Server 21, service server 22 and user terminal 23, with the prior art the difference is that in the embodiment of the present invention, daily record clothes Being engaged in, device 21 is no longer independent to dispose storage system, but the daily record number of its operational process generation is respectively stored by service server 22 According to, when user need inquire server log when, can by user terminal 23 to log server 21 initiate daily record data look into Request is ask, daily record data inquiry request is distributed to corresponding service server 22 by log server 21 and is handled, as a result, Daily record storage and the processing of daily record data inquiry request can be divided equally according to embodiments of the present invention and be scattered to more service servers 22 On, to alleviate the processing load of log server 21, reduce to 21 storage performance of log server and request treatability The requirement of energy, improves the processing speed of daily record storage and log query.
With reference to the schematic network structure of Fig. 2, it is described with reference to Figure 3 the clothes according to exemplary embodiment of the invention Business device daily record inspection method.It should be noted that Fig. 2 is merely for convenience of understanding spirit and principles of the present invention and showing, this The embodiment of invention is unrestricted in this regard.On the contrary, embodiments of the present invention can be applied to it is applicable any Scene.
Embodiment one
As shown in figure 3, it is the implementation process diagram of server log inspection method provided in an embodiment of the present invention, it can To include the following steps:
S31, the daily record data inquiry request that requesting party sends is received.
When it is implemented, user when needing inquiry log data, can be initiated by user terminal to log server Daily record data inquiry request.
Preferably, when it is implemented, user can access log server by browser.In order to improve user's body It tests, in the embodiment of the present invention, additionally provides a kind of Visual Intelligent Interface Model of user access logs server, user can pass through The visualization interface submits daily record data inquiry request to log server.
In the Visual Intelligent Interface Model, user can match in advance for each business disposed on service server It sets.In the initial creation business, user needs to create between service identification and the mark of service server for disposing the business Correspondence.Each business may be deployed on a server, it is also possible to be deployed on multiple servers, if business department Be deployed on a server, then the service server that configures mark can be one, if service deployment on multiple servers, The service server mark then configured can be multiple, wherein service identification can be Business Name, or business is compiled Number, service server mark can be service server IP address, and the embodiment of the present invention is to this without limiting.Configuration is completed Afterwards, user can be changed or be checked the corresponding configuration of the business by Visual Intelligent Interface Model, as shown in figure 4, it is this hair Bright embodiment provides a kind of possible schematic diagram of Visual Intelligent Interface Model.
After the configuration information of finishing service, user can initiate day by Visual Intelligent Interface Model to log server Will data inquiry request carries user in daily record data inquiry request and wishes the corresponding business of the business of inquiry log data Mark.
Preferably, when it is implemented, user can also be pre-configured with the days such as log path and the Log Directory of each business Will configuration information, and carry corresponding log path and daily record mesh when sending daily record data inquiry request to log server Record.As shown in table 1, the correspondence between preconfigured service identification and server identification and daily record configuration information Database table structure is illustrated:
Table 1
Correspondence between S32, the basis service identification being pre-created and service server mark, determines the daily record The corresponding at least one service server mark of service identification carried in data inquiry request.
It, can be according to the industry being pre-created if carrying service identification in daily record data inquiry request in this step Business mark is identified with service server, finds corresponding service server mark, the business carried in being asked with log query It is identified as B1, then log server can determine that the corresponding server identifications of B1 are { S1, S2, S3 }.
S33, it is identified according at least one service server determined, daily record data is sent to corresponding service server Obtain request.
According to the service server mark determined, sends daily record data to corresponding service server and obtain request.Such as The corresponding service server of fruit service identification be identified with it is multiple, then respectively to determine each service server mark it is corresponding Service server sends daily record data and obtains request.
If also carrying daily record configuration information in daily record data inquiry request, log server is to service server When sending daily record data acquisition request, also need to carry the daily record configuration information, service server is according to daily record configuration information It searches corresponding daily record data and returns to log server.
S34, the daily record data that service server obtains request return for daily record data is received.
When it is implemented, service server receive log server transmission log acquisition request after, Ke Yicong It is local to read daily record data and return.
S35, the daily record data received is sent to requesting party.
In this step, the daily record data received is sent to requesting party.
Embodiment two
When it is implemented, service server, log server and user terminal can establish TCP (Transmission Control Protocol, transmission control protocol) it connects to be communicated.TCP connection includes long connection and short connection, wherein When short connection, which refers to communicating pair, data interaction, a connection is just established, after data are sent completely, then disconnects this connection, i.e., Connection only completes the transmission of a business every time.And under the application scenarios of long connection, it is protected always between client and server Connection is held, both sides can send or receive at any time information to other side.In C/S (client/server) structure, TCP connection is logical Normal to be initiated for client, server will not active request and client foundation connection.And according to embodiments of the present invention in, daily record clothes Device be engaged in after receiving daily record data inquiry request, needs actively to the corresponding daily record data of service server acquisition request, Therefore, in order to improve log query response speed, and real-time logs data query is supported, in the embodiment of the present invention, daily record clothes Long connection can be established between business device and service server.When it is implemented, a daily record can be run in service server side Client establishes a log query thread, and long connection is established with log server.When log server needs to obtain day When will data, it can be connected by the length and send daily record data acquisition request to service server in real time.
Equally, it can also be asked by establishing long connection to send daily record data inquiry between user terminal and log server It asks, short connection can also be established certainly, between user terminal and log server and send daily record data inquiry request, the present invention Embodiment is to this without limiting.
Preferably, when it is implemented, in order to avoid maliciously connecting, ensure the safety that daily record data accesses, user can be with The port numbers list for allowing to establish long connection client and/or service server mark are pre-configured with (for example, can be that business takes The IP address of business device) list, daily record client request and log server on being deployed in service server establish TCP connection When, log server receive TCP connection establish request after, first determine whether request establish connection client port numbers or Person's service server identifies whether in the list of storage, if after establishing TCP connection with client, kept and visitor The TCP connection that family end is established does not discharge.Otherwise, the TCP connection that can refuse client initiation establishes request, or and client Establish short connection.
Embodiment three
In order to meet user's multiple demands, it is different can be directed to user on the basis of embodiment one for embodiment three Demand provide log query function.Based on this, server log inspection method provided in an embodiment of the present invention is pointed out to look into day Daily record data filter condition can also be carried by asking in request, preferably, daily record filter condition may include at least one of following: Log query period, log query keyword and daily record class information.Wherein, daily record rank is according to the important of every daily record Degree is that a mark is added in every daily record, and different marks represents different ranks, and daily record rank generally has:TRACE, Six kinds of DEBUG, INFO, WARN, ERROR and FATAL.
Based on this, if daily record data filter condition is carried in the daily record data inquiry request received, in step Having in daily record data acquisition request for being sent to service server in S32 equally carries the daily record data filter condition, business For server after receiving daily record data and obtaining request, the daily record data filter condition that can wherein carry, which filters out, meets item The daily record data of part is simultaneously returned to log server, and user terminal is sent to by log server.
When it is implemented, key word of the inquiry can be comprising keyword, i.e., closed comprising inquiry in daily record data to be checked Key word, or exclude keyword, i.e., do not include key word of the inquiry in daily record data to be checked.
When it is implemented, user can inquire real-time daily record data, history log data can also be carried out Inquiry can carry in daily record data inquiry request if user needs query history daily record data and be hopeful inquiry The beginning and ending time section of daily record data.Accordingly, log server needs in the daily record data sent to service server obtains request Corresponding beginning and ending time section is carried, service server is returned to day according to the daily record data of beginning and ending time segment search corresponding period Will server is sent to user terminal by log server.
Embodiment for a better understanding of the present invention checks the flow of the daily record data of certain business to this below in conjunction with user The specific implementation process of inventive embodiments is described in detail.
In initial deployment business, user configures the business by above-mentioned Visual Intelligent Interface Model, to establish Correspondence between service identification and the service server for disposing the business, further, user can also configure the business Log path and the daily records configuration information such as Log Directory.After the completion of service creation, user can pass through virtual interactive interface circle Daily record data inquiry request is sent towards log server.It should be appreciated that sending daily record number to log server in user terminal Before inquiry request, need to establish communication connection with log server, which can be the short connections of TCP, can also It equally can be asked to obtain daily record number from service server at any time according to user for the ease of log server for TCP long connections According to the daily record client run on log server and service server can establish TCP long connections, as shown in figure 5, user looks into See that the flow of the daily record data of certain business may comprise steps of:
S51, user submit access request by the browser that user terminal is installed to log server.
When it is implemented, user can input http in browser address bar://xxx.server.com.
S52, log server return to the virtual interactive interface page to user.
In this step, log server returns to Fig. 4 institutes after the access request for receiving user's submission to user terminal The page shown.
S53, user submit daily record data inquiry request by the virtual interactive interface page to log server.
In this step, user needs the service identification of the business of inquiry log data by the selection of the virtual interactive interface page, Preferably, user can also be by the virtual interactive interface page input inquiry keyword and exclusion keyword, and pass through visualization Interaction page selects daily record class information etc..According to the input information of user or selection, user terminal is sent out to log server Service identification, key word of the inquiry are carried in the daily record data inquiry request sent, and exclude of keyword, daily record data to be checked The only information such as period, log path or Log Directory.
S54, log server lead to corresponding service server transmission daily record data according to daily record data inquiry request and obtain Take request.
In this step, log server determines corresponding industry according to the service identification carried in daily record data inquiry request Business server identification, and cross and obtained to corresponding service server transmission daily record data with the long connection established between service server Request is taken, preferably, Log Directory or the daily record road of the daily record data of acquisition in need can be carried in log data requests Diameter.If carry key word of the inquiry in log query request, exclude keyword, daily record configuration information or beginning and ending time section etc. Information, then log server carry these information together in the daily record data that is sent to service server obtains request.
S55, service server obtain request for daily record data and search corresponding daily record data.
In this step, the service server for receiving daily record data acquisition request is asked according to the daily record data acquisition received Seek the corresponding daily record data of the acquisitions such as Log Directory or log path of middle carrying.If also carried in log acquisition request Searching keyword excludes the information such as keyword, daily record rank, then service server needs to filter out the daily record number of the condition of satisfaction According to.
The daily record data found is returned to log server by S56, service server.
The daily record data that service server returns is sent to user terminal by S57, log server.
Server log inspection method provided in an embodiment of the present invention, by dividing daily record storage and daily record look facility From, wherein daily record data is stored in service server local so that daily record storage is scattered on more service servers, is reduced Requirement to log server storage performance;And when needing to inquire server log data, log server can be passed through Daily record data inquiry request is distributed to corresponding service server to handle, to which the processing for alleviating log server is negative Lotus improves the processing speed of daily record storage and log query.
Based on same inventive concept, additionally provided in the embodiment of the present invention a kind of server log checking device, system and Corresponding log server, the principle and server log inspection method phase solved the problems, such as due to above-mentioned apparatus, system and equipment Seemingly, therefore the implementation of above-mentioned apparatus, system and equipment may refer to the implementation of method, and overlaps will not be repeated.
As shown in fig. 6, for the structural schematic diagram of server log checking device provided in an embodiment of the present invention, including:
First receiving unit 61, for receiving daily record data inquiry request, the daily record data inquiry request carries industry Business mark;
Determination unit 62, the correspondence between being identified for the basis service identification being pre-created and service server, Determine the corresponding at least one service server mark of the service identification carried in the daily record data inquiry request;
First transmission unit 63, for according at least one service server mark determined, being taken to corresponding business Business device sends daily record data and obtains request, wherein the daily record data of self-operating business is stored in the service server;
Second receives unit 64, and the daily record that request returns is obtained for the daily record data for receiving service server Data;
Second transmission unit 65, for the daily record data received to be sent to requesting party.
Optionally, server log checking device provided in an embodiment of the present invention can also include that the first communication connection is built Vertical unit, wherein:
First communication connection establishment unit, for first transmission unit according to determine it is at least one Service server identifies, and before sending daily record data acquisition request to corresponding service server, is built with the service server Vertical long connection;
First transmission unit 63 leads to specifically for being identified according to according at least one service server determined It crosses the long connection established between service server and sends daily record data acquisition request to service server.
Optionally, server log checking device provided in an embodiment of the present invention can also include that the second communication connection is built Vertical unit, wherein:
Second communication connection establishment unit, for establishing long connection between the requesting party;
First receiving unit 61 is looked into specifically for receiving requesting party by the daily record data that the long connection of foundation is sent Ask request.
Preferably, service identification is carried in the daily record data inquiry request.
Preferably, daily record configuration information is carried in the daily record data inquiry request, the daily record configuration information includes Log Directory information and/or log path information;First transmission unit 63, specifically at least one according to determining Service server identifies, and sending daily record data to corresponding service server obtains request, and the daily record data obtains in request Carry the daily record configuration information;Second receiving unit 64 is specifically used for receiving the service server for described Daily record data obtains the daily record data that request returns, and the daily record data is that the service server matches confidence according to the daily record Cease what the screening from the daily record data that itself is stored was found.
Preferably, daily record data filter condition is also carried in the daily record data inquiry request.Described first sends list Member 63 sends daily record number specifically for being identified according at least one service server determined to corresponding service server It is asked according to obtaining, the daily record data obtains in request and carries the daily record data filter condition;Second receiving unit 64, it is specifically used for receiving the daily record data that the service server is returned for daily record data acquisition request, the daily record Data are what the service server was filtered out according to the daily record data filter condition from the daily record data that itself is stored.
Preferably, the daily record data filter condition includes at least one of following:Log query period, log query close Key word and daily record class information.
For convenience of description, above each section is divided by function describes respectively for each module (or unit).Certainly, exist Implement the function of each module (or unit) can be realized in same or multiple softwares or hardware when the present invention.On for example, The server log checking device stated can be arranged in log server.
As shown in fig. 7, it checks the structural schematic diagram of system for server provided in an embodiment of the present invention, may include using Family terminal 71, log server 72 and at least one service server 73, wherein:
User terminal 71, for sending daily record data inquiry request, the daily record data inquiry request to log server Carry service identification;
Log server 72, for the corresponding pass between being identified with service server according to the service identification being pre-created System determines the corresponding at least one service server mark of the service identification carried in the daily record data inquiry request;According to At least one service server mark determined sends daily record data to corresponding service server and obtains request;And After the daily record data for receiving service server return, the daily record data received is sent to the user terminal;
Service server 73, the daily record data for being generated during storage running;And receiving the daily record clothes When the daily record data that business device is sent obtains request, is obtained for the daily record data and ask to return to daily record to the log server Data.
Optionally, the log server 72 is additionally operable to identify according at least one service server determined, to Before corresponding service server sends daily record data acquisition request, long connection is established with the service server;And according to root According at least one service server mark determined, connected to service server by the length established between service server It sends daily record data and obtains request.
Optionally, the user terminal 71 is additionally operable to before sending daily record data inquiry request to log server, with The log server establishes long connection;And daily record data inquiry is sent to the log server by the long connection of foundation and is asked It asks.
Optionally, service identification is carried in the daily record data inquiry request.
Optionally, daily record configuration information is carried in the daily record data inquiry request, the daily record configuration information includes Log Directory information and/or log path information.
The log server 72, specifically for being identified according at least one service server for determining, to corresponding Service server sends daily record data and obtains request, and the daily record data obtains in request and carries the daily record configuration information;
The service server 73, specifically for obtaining the daily record configuration information carried in request according to the daily record data It searches corresponding daily record data and returns to the log server.
Optionally, daily record data filter condition is also carried in the daily record data inquiry request.
The log server 72, specifically for being identified according at least one service server for determining, to corresponding Service server sends daily record data and obtains request, and the daily record data obtains in request and carries the daily record data filtering rod Part;
The service server 73 is filtered specifically for obtaining the daily record data carried in request according to the daily record data The daily record data that conditional filtering goes out to meet condition returns to the log server.
Preferably, the daily record data filter condition includes at least one of following:Log query period, log query close Key word and daily record class information.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (15)

1. a kind of server log inspection method, which is characterized in that including:
The daily record data inquiry request that requesting party sends is received, the daily record data inquiry request carries service identification;
According to the correspondence between the service identification being pre-created and service server mark, the daily record data inquiry is determined The corresponding at least one service server mark of service identification carried in request;
According at least one service server mark determined, sends daily record data acquisition to corresponding service server and ask It asks, wherein the daily record data of self-operating business is stored in the service server;
It receives service server and obtains the daily record data that request returns for the daily record data;
The daily record data received is sent to requesting party.
2. the method as described in claim 1, which is characterized in that it is identified according at least one service server determined, Before sending daily record data acquisition request to corresponding service server, further include:
Long connection is established with the service server;And
According at least one service server mark determined, sends daily record data acquisition to corresponding service server and ask It asks, specifically includes:
According at least one service server mark determined, connected to business by the length established between service server Server sends daily record data and obtains request.
3. the method as described in claim 1, which is characterized in that before receiving daily record data inquiry request, further include:
Long connection is established between the requesting party;And
The daily record data inquiry request that requesting party sends is received, is specifically included:
Receive the daily record data inquiry request that requesting party is sent by the long connection of foundation.
4. the method as described in claim 1, which is characterized in that also carry daily record configuration in the daily record data inquiry request Information, the daily record configuration information include Log Directory information and/or log path information;And
According at least one service server mark determined, sends daily record data acquisition to corresponding service server and ask It asks, specifically includes:
According at least one service server mark determined, sends daily record data acquisition to corresponding service server and ask It asks, the daily record data obtains in request and carries the daily record configuration information;And
It receives the service server and obtains the daily record data that request returns for the daily record data, specifically include:
It receives the service server and obtains the daily record data that request returns for the daily record data, the daily record data is institute Stating service server, from the daily record data that itself is stored screening is found according to the daily record configuration information.
5. the method as described in Claims 1 to 4 any claim, which is characterized in that in the daily record data inquiry request Also carry daily record data filter condition;And
According at least one service server mark determined, sends daily record data acquisition to corresponding service server and ask It asks, specifically includes:
According to the daily record data inquiry request, sends daily record data acquisition to the service server for being stored with daily record data and ask It asks, the daily record data obtains in request and carries the daily record data filter condition;And
It receives the service server and obtains the daily record data that request returns for the daily record data, specifically include:
It receives the service server and obtains the daily record data that request returns for the daily record data, the daily record data is institute State what service server was filtered out according to the daily record data filter condition from the daily record data that itself is stored.
6. method as claimed in claim 5, which is characterized in that the daily record data filter condition includes at least one of following: Log query period, log query keyword and daily record class information.
7. a kind of server log checking device, which is characterized in that including:
First receiving unit, the daily record data inquiry request for receiving requesting party's transmission, the daily record data inquiry request are taken With service identification;
Determination unit, for according to the correspondence between the service identification being pre-created and service server mark, determining institute State the corresponding at least one service server mark of the service identification carried in daily record data inquiry request;
First transmission unit, for according at least one service server mark determined, being sent out to corresponding service server Daily record data is sent to obtain request, wherein to be stored with the daily record data of self-operating business in the service server;
Second receives unit, and the daily record data that request returns is obtained for the daily record data for receiving service server;
Second transmission unit, for the daily record data received to be sent to requesting party.
8. device as claimed in claim 7, which is characterized in that further include the first communication connection establishment unit, wherein:
First communication connection establishment unit, at least one business for being determined in basis in first transmission unit Server identification is established with the service server and is grown before sending daily record data acquisition request to corresponding service server Connection;
First transmission unit, specifically for being identified according at least one service server determined, by being taken with business The long connection established between business device sends daily record data to service server and obtains request.
9. device as claimed in claim 7, which is characterized in that carry daily record in the daily record data inquiry request and match confidence Breath, the daily record configuration information includes Log Directory information and/or log path information;And
First transmission unit, specifically for being identified according at least one service server determined, to corresponding business Server sends daily record data and obtains request, and the daily record data obtains in request and carries the daily record configuration information;
Second receiving unit is specifically used for receiving what the service server was returned for daily record data acquisition request Daily record data, the daily record data are the daily record data that the service server is stored according to the daily record configuration information from itself What middle screening was found.
10. the device as described in claim 7,8 or 9, which is characterized in that also carry day in the daily record data inquiry request Will data filtering condition;And
First transmission unit, specifically for being identified according at least one service server determined, to corresponding business Server sends daily record data and obtains request, and the daily record data obtains in request and carries the daily record data filter condition;
Second receiving unit is specifically used for receiving what the service server was returned for daily record data acquisition request Daily record data, the daily record data are the daily record that the service server is stored according to the daily record data filter condition from itself It is filtered out in data.
11. a kind of server log checks system, which is characterized in that including user terminal, log server and at least one industry Business server:
User terminal, for sending daily record data inquiry request to log server, the daily record data inquiry request carries Service identification;
Log server, for according to the correspondence between the service identification being pre-created and service server mark, determining The corresponding at least one service server mark of service identification carried in the daily record data inquiry request;According to what is determined At least one service server mark sends daily record data to corresponding service server and obtains request;And receiving industry It is engaged in after the daily record data that server returns, the daily record data received is sent to the user terminal;
Service server, the daily record data for being generated during storage running;And receiving the log server hair When the daily record data sent obtains request, obtains request for the daily record data and return to daily record data to the log server.
12. system as claimed in claim 11, which is characterized in that
The log server is additionally operable to, according at least one service server mark determined, take to corresponding business It is engaged in before device transmission daily record data acquisition request, long connect is established with the service server;And according at least one determined A service server mark sends daily record data to service server by the long connection established between service server and obtains Request.
13. system as claimed in claim 11, which is characterized in that
The user terminal is additionally operable to before sending daily record data inquiry request to log server, with the log services Device establishes long connection;And daily record data inquiry request is sent to the log server by the long connection of foundation.
14. system as claimed in claim 11, which is characterized in that carry daily record configuration in the daily record data inquiry request Information, the daily record configuration information include Log Directory information and/or log path information;And
The log server takes specifically for being identified according at least one service server determined to corresponding business Business device sends daily record data and obtains request, and the daily record data acquisition carries the daily record configuration information in asking;
The service server searches phase specifically for obtaining the daily record configuration information carried in request according to the daily record data The daily record data answered returns to the log server.
15. the system as described in claim 11~14 any claim, which is characterized in that the daily record data inquiry request In also carry daily record data filter condition;And
The log server takes specifically for being identified according at least one service server determined to corresponding business Business device sends daily record data and obtains request, and the daily record data acquisition carries the daily record data filter condition in asking;
The service server is sieved specifically for obtaining the daily record data filter condition carried in request according to the daily record data The daily record data for selecting the condition of satisfaction returns to the log server.
CN201710256890.6A 2017-04-19 2017-04-19 Server log viewing method, device and system Active CN108737467B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710256890.6A CN108737467B (en) 2017-04-19 2017-04-19 Server log viewing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710256890.6A CN108737467B (en) 2017-04-19 2017-04-19 Server log viewing method, device and system

Publications (2)

Publication Number Publication Date
CN108737467A true CN108737467A (en) 2018-11-02
CN108737467B CN108737467B (en) 2021-03-26

Family

ID=63925259

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710256890.6A Active CN108737467B (en) 2017-04-19 2017-04-19 Server log viewing method, device and system

Country Status (1)

Country Link
CN (1) CN108737467B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110096485A (en) * 2019-03-18 2019-08-06 平安普惠企业管理有限公司 Log inquiring method, device, computer equipment and storage medium
CN110597848A (en) * 2019-08-06 2019-12-20 上海数据交易中心有限公司 Data service settlement method and system, storage medium and server
CN111124815A (en) * 2019-12-05 2020-05-08 京东数字科技控股有限公司 Log checking method, device, equipment and storage medium
CN111522922A (en) * 2020-03-26 2020-08-11 浙江口碑网络技术有限公司 Log information query method and device, storage medium and computer equipment
CN111522714A (en) * 2020-04-20 2020-08-11 京东数字科技控股有限公司 Log query method and device, electronic equipment and storage medium
CN111611138A (en) * 2020-04-10 2020-09-01 深圳市广和通无线股份有限公司 Log data capturing method and device, computer equipment and storage medium
CN111722920A (en) * 2019-03-22 2020-09-29 鼎捷软件股份有限公司 Load control method
CN112019362A (en) * 2019-05-30 2020-12-01 中移(苏州)软件技术有限公司 Data transmission method, device, server, terminal, system and storage medium
CN112532424A (en) * 2020-11-03 2021-03-19 武汉悦学帮网络技术有限公司 Service system, server and information processing method
CN112612752A (en) * 2020-12-17 2021-04-06 浪潮云信息技术股份公司 Log data management method and device
CN112783842A (en) * 2019-11-07 2021-05-11 北京沃东天骏信息技术有限公司 Log collection method and device
CN113010377A (en) * 2021-03-03 2021-06-22 中国工商银行股份有限公司 Method and device for collecting operation logs of operation
CN113590572A (en) * 2021-07-21 2021-11-02 用友汽车信息科技(上海)股份有限公司 Log viewing method and device, electronic equipment and readable storage medium
CN113765694A (en) * 2021-03-24 2021-12-07 北京京东拓先科技有限公司 Log information display method and device, electronic equipment and computer readable medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678092A (en) * 2013-12-30 2014-03-26 北京网康科技有限公司 Log analysis method and system
CN103853743A (en) * 2012-11-29 2014-06-11 百度在线网络技术(北京)有限公司 Distributed system and log query method thereof
CN105100128A (en) * 2014-04-24 2015-11-25 北京金山网络科技有限公司 Server cluster log acquiring and providing methods, log server and node server
US20150379033A1 (en) * 2014-06-27 2015-12-31 International Business Machines Corporation Parallel matching of hierarchical records
CN105389314A (en) * 2014-09-04 2016-03-09 中芯国际集成电路制造(上海)有限公司 Log file query system and query method
CN105824958A (en) * 2016-03-31 2016-08-03 广州华多网络科技有限公司 Method, device and system for inquiring log

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853743A (en) * 2012-11-29 2014-06-11 百度在线网络技术(北京)有限公司 Distributed system and log query method thereof
CN103678092A (en) * 2013-12-30 2014-03-26 北京网康科技有限公司 Log analysis method and system
CN105100128A (en) * 2014-04-24 2015-11-25 北京金山网络科技有限公司 Server cluster log acquiring and providing methods, log server and node server
US20150379033A1 (en) * 2014-06-27 2015-12-31 International Business Machines Corporation Parallel matching of hierarchical records
CN105389314A (en) * 2014-09-04 2016-03-09 中芯国际集成电路制造(上海)有限公司 Log file query system and query method
CN105824958A (en) * 2016-03-31 2016-08-03 广州华多网络科技有限公司 Method, device and system for inquiring log

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110096485A (en) * 2019-03-18 2019-08-06 平安普惠企业管理有限公司 Log inquiring method, device, computer equipment and storage medium
CN111722920A (en) * 2019-03-22 2020-09-29 鼎捷软件股份有限公司 Load control method
CN112019362B (en) * 2019-05-30 2022-06-10 中移(苏州)软件技术有限公司 Data transmission method, device, server, terminal, system and storage medium
CN112019362A (en) * 2019-05-30 2020-12-01 中移(苏州)软件技术有限公司 Data transmission method, device, server, terminal, system and storage medium
CN110597848A (en) * 2019-08-06 2019-12-20 上海数据交易中心有限公司 Data service settlement method and system, storage medium and server
CN112783842A (en) * 2019-11-07 2021-05-11 北京沃东天骏信息技术有限公司 Log collection method and device
CN112783842B (en) * 2019-11-07 2024-03-01 北京沃东天骏信息技术有限公司 Log collection method and device
CN111124815A (en) * 2019-12-05 2020-05-08 京东数字科技控股有限公司 Log checking method, device, equipment and storage medium
CN111522922B (en) * 2020-03-26 2023-08-22 浙江口碑网络技术有限公司 Log information query method and device, storage medium and computer equipment
CN111522922A (en) * 2020-03-26 2020-08-11 浙江口碑网络技术有限公司 Log information query method and device, storage medium and computer equipment
CN111611138A (en) * 2020-04-10 2020-09-01 深圳市广和通无线股份有限公司 Log data capturing method and device, computer equipment and storage medium
CN111611138B (en) * 2020-04-10 2024-03-15 深圳市广和通无线股份有限公司 Log data grabbing method, device, computer equipment and storage medium
CN111522714A (en) * 2020-04-20 2020-08-11 京东数字科技控股有限公司 Log query method and device, electronic equipment and storage medium
CN112532424A (en) * 2020-11-03 2021-03-19 武汉悦学帮网络技术有限公司 Service system, server and information processing method
CN112612752A (en) * 2020-12-17 2021-04-06 浪潮云信息技术股份公司 Log data management method and device
CN113010377A (en) * 2021-03-03 2021-06-22 中国工商银行股份有限公司 Method and device for collecting operation logs of operation
CN113010377B (en) * 2021-03-03 2024-06-14 中国工商银行股份有限公司 Method and device for collecting operation log of job
CN113765694A (en) * 2021-03-24 2021-12-07 北京京东拓先科技有限公司 Log information display method and device, electronic equipment and computer readable medium
CN113765694B (en) * 2021-03-24 2024-04-19 北京京东拓先科技有限公司 Log information display method, device, electronic equipment and computer readable medium
CN113590572A (en) * 2021-07-21 2021-11-02 用友汽车信息科技(上海)股份有限公司 Log viewing method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN108737467B (en) 2021-03-26

Similar Documents

Publication Publication Date Title
CN108737467A (en) A kind of server log inspection method, device and system
CN108965381A (en) Implementation of load balancing, device, computer equipment and medium based on Nginx
US9467393B2 (en) Network component placement architecture
CN103403707B (en) The system and method exchanged for database proxy request
CN104871133B (en) Application intelligence request based on server health and client-side information manages
US11392873B2 (en) Systems and methods for simulating orders and workflows in an order entry and management system to test order scenarios
CN108427705A (en) Electronic device, distributed system journal querying method and storage medium
US8620926B2 (en) Using a hashing mechanism to select data entries in a directory for use with requested operations
CN109328335A (en) Intelligence configuration discovery technique
CN110765484B (en) Credit data processing method and electronic equipment
CN105447046A (en) Distributed system data consistency processing method, device and system
CN110557284A (en) data aggregation method and device based on client gateway
WO2014099906A1 (en) Exchange of server status and client information through headers for request management and load balancing
CN107257346A (en) The Operational Visit processing method and its equipment of single-sign-on
DE60035348T2 (en) Extendable provisioning mechanism for a service gateway
CN106101290A (en) A kind of method and system of server cluster management
CN108055314A (en) The management method and group system of a kind of group system
CN107172177A (en) A kind of information recommendation method and device
CN107357831A (en) Configurable flow instance data distribution formula storage method and system
CN114124981B (en) Cloud storage data direct transmission management method, cloud transmission management platform and system
CN111563083B (en) Report data query method, device and system
CN109714208A (en) A kind of equipment is included in method, storage medium and the electronic equipment of network management
CN109756557A (en) User right server and method of servicing and system based on user right
CN108762992A (en) Main/standby switching method, device, computer equipment and storage medium
CN116566656A (en) Resource access method, device, equipment and computer storage medium

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