CN109388628A - System log querying method, device, computer equipment and storage medium - Google Patents
System log querying method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN109388628A CN109388628A CN201810988927.9A CN201810988927A CN109388628A CN 109388628 A CN109388628 A CN 109388628A CN 201810988927 A CN201810988927 A CN 201810988927A CN 109388628 A CN109388628 A CN 109388628A
- Authority
- CN
- China
- Prior art keywords
- log
- serial number
- independent serial
- information
- checked
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 230000006870 function Effects 0.000 claims description 58
- 238000012512 characterization method Methods 0.000 claims description 26
- 238000012545 processing Methods 0.000 claims description 18
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 claims description 13
- 230000005540 biological transmission Effects 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 18
- 230000006854 communication Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 5
- 230000006399 behavior Effects 0.000 description 3
- 230000002123 temporal effect Effects 0.000 description 3
- 238000007630 basic procedure Methods 0.000 description 2
- 235000012054 meals Nutrition 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000007175 bidirectional communication Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000006185 dispersion Substances 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000029058 respiratory gaseous exchange Effects 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3495—Performance evaluation by tracing or monitoring for systems
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of system log querying methods, include the log generation information of log to be checked in the inquiry request comprising steps of obtaining the inquiry request that user terminal is sent;The corresponding independent serial number of log to be checked is obtained according to the inquiry request that the user terminal is sent;All journal files relevant to the independent serial number are inquired according to the independent serial number.This method can be directly targeted to independent serial number by generating information according to the log of log to be checked, all correlation log files in system database can be directly inquired further according to independent serial number, and, user, which only needs to inquire, once can be obtained all correlation log files, so that the speed of system log inquiry is fast, easy to operate, query result accuracy is high.Further, the invention also discloses system log inquiry unit corresponding with above system log inquiring method, computer equipment and storage mediums.
Description
Technical field
The present invention relates to system log management technical fields, specifically, the present invention relates to a kind of system log issuers
Method, device, computer equipment and storage medium.
Background technique
With the rapid development of network technology, network application is increasingly taken seriously safely, and systems all at present all can
Record log, system log are the information of hardware, software and system problem in record system, these information can be used for system pair
Account checks system mistake or tracing system trace etc..
Each operation carried out in system can generate a log, this make the journal file quantity in system more and
It contains much information.Journal file in current all systems is sorted with timeline information, the operation content relative to system log
For information, operator's information, the sequence of system log is dispersion.Based on what is dispersed the journal file in current system more
Situation, user is when carrying out reconciliation, error checking or track problems in system, it is difficult to problem be accurately positioned, need with multiple
Keyword, which carries out repeatedly inquiry, can just find correlation log, seriously affect the speed of orientation problem.
Summary of the invention
The embodiment of the present invention provides a kind of system log querying method, device, computer equipment and storage medium.
In order to solve the above technical problems, including the following steps: the present invention provides a kind of system log querying method
The inquiry request that user terminal is sent is obtained, includes the log generation letter of log to be checked in the inquiry request
Breath;
The corresponding independent serial number of log to be checked is obtained according to the inquiry request that the user terminal is sent;
All journal files relevant to the independent serial number are inquired according to the independent serial number.
Preferably, the inquiry request sent according to the user terminal obtains the independent serial number of log to be checked
Step, comprising:
The log for extracting log to be checked in the inquiry request generates information;
Based on independent serial number create-rule corresponding with log generation information, the log of the log to be checked is obtained
Generate the corresponding independent serial number of information.
Preferably, the log generates information and includes at least: operation account information, operating function information when log generates
And operating time information.
Preferably, the first character string, the use having for characterizing operation account information are included at least in the independent serial number
The second character string in characterization operating function information and third character string for characterizing operating time information;It is described to be based on solely
Serial number rule searching corresponding with log generation information is found, the log generation information for obtaining the log to be checked is corresponding
Independent serial number the step of, comprising:
The operation account information and the log to be checked for judging the first character string characterization of the independent serial number generate
When operation account information it is whether consistent;
If so, judging the operating function information and the log to be checked of the second character string characterization of the independent serial number
Whether operating function information when generation is consistent;
If so, judging the operating time information and the log to be checked of the third character string characterization of the independent serial number
Whether operating time information when generation is consistent;
If so, obtaining the independent serial number as the log with the log to be checked generates the corresponding independence of information
Serial number.
Preferably, described that all journal files relevant to the independent serial number are inquired according to the independent serial number
Before step, further includes:
All journal files in acquisition system;
According to preset independent serial number create-rule, corresponding individual flow is generated to the journal file of each acquisition
Water number;
All journal files in the system are shown in a data list using the independent serial number as label.
Preferably, described according to preset independent serial number create-rule, the journal file for generating the acquisition is corresponding
The step of independent serial number, comprising:
According to preset independent serial number create-rule, when execution primary system function every to account each in system, is generated
Journal file carry out generating corresponding independent serial number.
Preferably, described according to preset independent serial number create-rule, one subfunction of execution every to account each in system
The journal file generated when operation carried out after the step of generating corresponding independent serial number, further includes:
It is each in the sub- journal file generated when by account each in a system feature operation of every execution and the system
Account is every to execute the independent serial number association generated when a feature operation.
In order to solve the above technical problems, the present invention also provides a kind of system log inquiry unit, the system log is looked into
Asking device includes:
First obtains module, includes to be checked in the inquiry request for obtaining the inquiry request of user terminal transmission
The log for asking log generates information;
First processing module, it is corresponding solely that the inquiry request for being sent according to the user terminal obtains log to be checked
Vertical serial number;
First execution module, for inquiring all logs relevant to the independent serial number according to the independent serial number
File.
Preferably, the system log inquiry unit further include:
First acquisition submodule, the log for extracting log to be checked in the inquiry request generate information;
First processing submodule, for obtaining based on independent serial number create-rule corresponding with log generation information
The log of the log to be checked generates the corresponding independent serial number of information.
Preferably, the system log inquiry unit further include:
First judging submodule, for judge the independent serial number the first character string characterize operation account information with
Whether the operation account information when log to be checked generates is consistent;
Second judgment submodule, for judge the independent serial number the second character string characterize operating function information with
Whether the operating function information when log to be checked generates is consistent;
Third judging submodule, for judge the independent serial number third character string characterize operating time information with
Whether the operating time information when log to be checked generates is consistent;
Second processing submodule generates letter for obtaining the independent serial number as the log with the log to be checked
The corresponding independent serial number of manner of breathing.
Preferably, the system log inquiry unit further include:
Second obtains module, for all journal files in acquisition system;
Second processing module is used for according to preset independent serial number create-rule, to the log text of each acquisition
Part generates corresponding independent serial number;
Second execution module, for showing all journal files in the system using the independent serial number as label
In a data list.
Preferably, the system log inquiry unit further include:
Third handles submodule, for often being held to account each in system according to preset independent serial number create-rule
The journal file generated when row primary system function carries out generating corresponding independent serial number.
Preferably, the system log inquiry unit further include:
Fourth processing module, the sub- journal file generated when for by account each in a system feature operation of every execution
It is associated with the every independent serial number generated when a feature operation that executes of account each in the system.
In order to solve the above technical problems, the present invention also provides a kind of computer equipment, including memory and processor, it is described
Computer-readable instruction is stored in memory, when the computer-readable instruction is executed by the processor, so that the place
Manage the step of device executes above system log inquiring method.
In order to solve the above technical problems, the present invention also provides a kind of storage medium for being stored with computer-readable instruction, institute
When stating computer-readable instruction and being executed by one or more processors, so that one or more processors execute above system log
The step of querying method.
The beneficial effects of the present invention are:
The inquiry request that the present invention is sent by obtaining user terminal, is then asked according to the inquiry that the user terminal is sent
The log of log to be checked generates information in asking, and it is corresponding to obtain out log to be checked according to preset independent serial number create-rule
Independent serial number, inquire all journal files relevant to the independent serial number further according to the independent serial number.In this way
One, it can be directly targeted to independent serial number by generating information according to the log of log to be checked, further according to independent flowing water
Number all correlation log files in system database can be directly inquired, once can be obtained moreover, user only needs to inquire
All correlation log files, so that the speed of system log inquiry is fast, easy to operate, query result accuracy is high.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description
Obviously, or practice through the invention is recognized.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is the basic procedure schematic diagram of system log querying method provided in this embodiment;
Fig. 2 is the side that the independent serial number of log to be checked is obtained in system log querying method described in the embodiment of the present invention
Method flow diagram;
Fig. 3 is the independent serial number that log to be checked is obtained in system log querying method provided in an embodiment of the present invention
Another method flow diagram;
Fig. 4 is to be shown in all journal files in system in system log querying method provided in an embodiment of the present invention
Method flow schematic diagram in one data list;
Fig. 5 is to carry out solely in system log querying method provided in an embodiment of the present invention to each journal file in system
The another method flow diagram of vertical serial number setting;
Fig. 6 is the sub- day that will be generated when executing the system function in system log querying method provided in an embodiment of the present invention
Will file association is in the method flow schematic diagram for the corresponding independent serial number of journal file that the system function generates;
Fig. 7 is system log inquiry unit basic structure block diagram provided in an embodiment of the present invention;
Fig. 8 is computer equipment basic structure block diagram provided in an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described.
In some processes of the description in description and claims of this specification and above-mentioned attached drawing, contain according to
Multiple operations that particular order occurs, but it should be clearly understood that these operations can not be what appears in this article suitable according to its
Sequence is executed or is executed parallel, and the serial number of the operation is only used for distinguishing each different operation, serial number not generation itself
Table it is any execute sequence.In addition, these processes may include more or fewer operations, and these operations can be in order
It executes or executes parallel.It should be noted that the description such as herein " first ", " second ", be for distinguish different message,
Equipment, module etc. do not represent sequencing, also do not limit " first " and " second " and are different type.
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 described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those skilled in the art's every other embodiment obtained under the premise of no creative work,
It shall fall within the protection scope of the present invention.
Embodiment
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal device " both include wireless communication
The equipment of number receiver, only has the equipment of the wireless signal receiver of non-emissive ability, and including receiving and emitting hardware
Equipment, have on bidirectional communication link, can execute two-way communication reception and emit hardware equipment.This equipment
It may include: honeycomb or other communication equipments, shown with single line display or multi-line display or without multi-line
The honeycomb of device or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), can
With combine voice, data processing, fax and/or communication ability;PDA (Personal Digital Assistant, it is personal
Digital assistants), it may include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day
It goes through and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palm
Type computer or other equipment, have and/or the conventional laptop including radio frequency receiver and/or palmtop computer or its
His equipment." terminal " used herein above, " terminal device " can be it is portable, can transport, be mounted on the vehicles (aviation,
Sea-freight and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth
And/or any other position operation in space." terminal " used herein above, " terminal device " can also be communication terminal, on
Network termination, music/video playback terminal, such as can be PDA, MID (Mobile Internet Device, mobile Internet
Equipment) and/or mobile phone with music/video playing function, it is also possible to the equipment such as smart television, set-top box.
The user terminal referred in the present embodiment is above-mentioned terminal.
Specifically, referring to Fig. 1, Fig. 1 is the basic procedure schematic diagram of system log querying method provided in this embodiment.
As shown in Figure 1, the system log querying method, comprising the following steps:
S100: obtaining the inquiry request that user terminal is sent, and includes the log of log to be checked in the inquiry request
Generate information.
In computer systems, the people in system is logged on at what time to any data of what module in order to record
Any operation is carried out, in order to track operational responsibility, one operation of the every progress of computer can all automatically generate a day
The journal file is simultaneously stored in system database by will file.
In the present embodiment, when journal file being stored in system database, there is characterization in each journal file
The log in its source generates information.User terminal can generate information by obtaining the log of journal file to be checked, will acquire
The log of journal file to be checked generate information and invest be sent to server end in inquiry request together in the form of data packet,
The corresponding journal file to be checked of information is generated with the request log.The log generates information and includes at least journal file
Operation account information, operating function information and operating time information when generation.
S200: the corresponding independent serial number of log to be checked is obtained according to the inquiry request that the user terminal is sent.
In the present embodiment, first, in accordance with preset serial number create-rule to it is described be stored in it is every in system database
One journal file carries out independent serial number setting, which is shown in each journal file, the system
All journal files in database sort according to the independent serial number, so that the independent serial number is in the system database
It can be seen that.The preset serial number create-rule includes: to generate information according to the log for characterizing source in journal file, using volume
Number or code and log generate the one-to-one mode of information and independent serial number be set.Wherein, the number or code can divide
For multiple character strings, operation account information, operating function information and behaviour in information are generated for characterizing the log respectively
Make temporal information etc..After receiving the inquiry request of user terminal transmission, log to be checked in the inquiry request is extracted
Log generate information.The operation account letter when log to be checked generates is obtained according to preset serial number create-rule
Breath, operating function information and the corresponding character string of operating time information, these character strings are merged, to obtain
The corresponding independent serial number of log to be checked.
For example, when obtaining the corresponding independent serial number of log to be checked, when account 01 on 06 23rd, 2,018 09 point
00 point of A55 function of operating computer between 59 59: 00 second to 09:, i.e., the journal file that the operation generates are shown in
Independent serial number in system database is 01A552018062309.Further, system can also automatically generate free volume
Code is specifically made of number and letter at random, such as 7403X, to grasp between 09 point to 10 points of the time for distinguishing account 01
Make all journal files of A function generation, so that each journal file has unique independent serial number, i.e. the operation generates
The corresponding independent serial number of journal file are as follows: 01A5520180623097403X.Each journal file freely encodes
It can be set to invisible in the system database, i.e., when the journal file is when freely encoding invisible, system is obtained
The corresponding independent serial number of obtained log to be checked is 01A552018062309.
S300: all journal files relevant to the independent serial number are inquired according to the independent serial number.
In the present embodiment, it requests the log for the journal file inquired to generate information according to user by the server end to obtain
After taking the corresponding independent serial number of log to be checked, by traversing institute according to the corresponding independent serial number of the log to be checked
State the independent serial number of all journal files in system database, and will independent serial number corresponding with the log to be checked
Relevant all journal files feed back to the user terminal, to inquire all log texts relevant to the independent serial number
Part.
For example, when the server end according to user request inquiry journal file log generate acquisition of information obtain to
When the corresponding independent serial number of inquiry log is 01A552018062309, own first by traversing in the system database
The independent serial number of journal file judges that the character string of characterization operation account information in the independent serial number of each journal file is
No is 01, if so, retaining the journal file, otherwise hides the journal file, to filter out characterization operation account information
All journal files that character string is 01;It then is 01 by the character string of the characterization operation account information filtered out described in traversal
All journal files, judge it is each it is described characterization operation account information character string for individual flow in 01 all journal files
Whether the character string that water number characterizes operating function information is A55, if so, retaining the journal file, otherwise hides log text
Part, so that the character string for filtering out characterization operation account information is 01 and characterizes the institute that the character string of operating function information is A55
There is journal file;It then is 01 and characterization operating function by the character string of the characterization operation account information filtered out described in traversal
The character string of information is all journal files of A55, judges the character string of each characterization operation account information for 01 and table
Levy operating function information character string be in the journal file of A55 independent serial number characterize operating time information character string whether
It is 2018062309, if so, retaining the journal file, otherwise hides the journal file, to filters out characterization operation account
The character string of information is 01 and the character string of characterization operating function information is A55 and the character string of characterization operating time information is
2018062309 all journal files;To obtain all logs text with the independent serial number 01A552018062309
Part, and these all journal files with the independent serial number 01A552018062309 are fed back into user terminal.
Then the inquiry request that above-described embodiment is sent especially by user terminal is obtained is sent according to the user terminal
Inquiry request in the log of log to be checked generate information, obtain day to be checked according to preset independent serial number create-rule
The corresponding independent serial number of will inquires all logs texts relevant to the independent serial number further according to the independent serial number
Part.So, all correlation log files in system database can directly be inquired by independent serial number, moreover, with
Family only need inquire once can be obtained all correlation log files so that system log inquiry speed it is fast, it is easy to operate, look into
It is high to ask result accuracy.
In some embodiments, the step S200 specifically includes step S201 to S202, referring to Fig. 2, Fig. 2 is this hair
The method flow schematic diagram of the independent serial number of log to be checked is obtained in system log querying method described in bright embodiment.
As shown in Fig. 2, the step S200 specifically further includes following steps:
S210: the log for extracting log to be checked in the inquiry request generates information.
In the present embodiment, the log that user terminal passes through the journal file to be checked that will acquire generates information with data packet
Form invest and be sent to server end in inquiry request together.After receiving the inquiry request of user terminal transmission, lead to
It crosses and parses to investing the data packet for being sent to server end in inquiry request together, looked into extract user terminal requests
The log for the journal file to be checked ask generates information.It includes the day to be checked that the log of the log to be checked, which generates information,
Operation account information, operating function information and operating time information when will generates.
S220: based on independent serial number create-rule corresponding with log generation information, the log to be checked is obtained
Log generate the corresponding independent serial number of information.
In the present embodiment, information is generated according to the log of the journal file to be checked extracted and corresponds to default flowing water
The number or code used in number create-rule, the log that can obtain the log to be checked generate the corresponding independence of information
Serial number.
In some embodiments, when log generation information is characterized in the independent serial number using number or code, tool
Body may include operation account information, the operating function letter characterized respectively in log generation information by using different character strings
Breath and operating time information.For example, including at least in the independent serial number has the first character string, the second character string and the
Three character strings.Wherein, first character string is for characterizing operation account information, and second character string is for characterizing operating work
Energy information, the third character string is for characterizing operating time information.Referring to Fig. 3, Fig. 3 is system provided in an embodiment of the present invention
The another method flow diagram of the independent serial number of log to be checked is obtained in system log inquiring method.
As shown in figure 3, when obtaining the independent serial number of log to be checked, especially by by the day of the log to be checked
Will generates information and is matched with the independent serial number in default serial number create-rule, and judges the day of the log to be checked
Whether the information that will generates independent serial number characterization in information and default serial number create-rule unanimously determines day to be checked
The independent serial number of will, specifically includes the following steps:
S221: judge the operation account information and the log to be checked of the first character string characterization of the independent serial number
Whether operation account information when generation is consistent;
S222: if so, judge the independent serial number the second character string characterization operating function information with it is described to be checked
Whether the operating function information ask when log generates is consistent;
S223: if so, judge the independent serial number third character string characterization operating time information with it is described to be checked
Whether the operating time information ask when log generates is consistent;
S224: if so, it is corresponding as the log generation information with the log to be checked to obtain the independent serial number
Independent serial number.
For example, being based on operation system, the server end obtains user by the data packet that parsing invests in inquiry request
The log of the journal file to be checked of terminal request inquiry generates information are as follows: the account information of operation is that business personnel opens * *, operation
Functional information be motor vehicle insurance business place an order, the temporal information that operates be on 06 23rd, 2,018 09 point to 10 points.And at this
It is 01 that business personnel, which opens corresponding first character string of * * this operation account information, in operation system;Motor vehicle insurance business places an order this
Corresponding second character string of the functional information of operation is A55;On 06 23rd, 2018 09 point to 10 this operation temporal informations
Corresponding third character string is 2018062309.At this point, obtain the independent serial number 01A552018062309 as with it is described
The log of log to be checked generates the corresponding independent serial number of information.
In some embodiments, server end is literary according to independent serial number inquiry log relevant with the independent serial number
Before part, need to create the data list of a journal file in server end, all journal files in the system are with it
Corresponding independent serial number is that label is shown in the data list.The server end can by traversing the data list,
To inquire all correlation log files of user's needs according to independent serial number.It is the present invention referring specifically to Fig. 4, Fig. 4
All journal files in system are shown in the side in a data list in the system log querying method that embodiment provides
Method flow diagram.
As shown in figure 4, further comprising the steps of before the step 300:
S400: all journal files in acquisition system.
System database is preset in system, system one operation of every progress can all automatically generate a journal file and will
The journal file is stored in the system database.It can all logs text in acquisition system by calling system database
Part.
S500: according to preset independent serial number create-rule, the journal file of each acquisition is generated corresponding
Independent serial number.
After the journal file in acquisition system, according to preset independent serial number create-rule, described obtained to each
The journal file taken generates corresponding independent serial number.In the present embodiment, according to preset serial number create-rule to described
Each journal file obtained carries out independent serial number setting, specifically, raw according to the log for characterizing source in journal file
At information, the corresponding individual flow of each journal file is arranged using number or code and the log generation one-to-one mode of information
Water number.
S600: all journal files in the system are shown in a data column using the independent serial number as label
In table.
In the present embodiment, after generating corresponding independent serial number to the journal file of each acquisition, each
Its corresponding independent serial number is shown in journal file, and is ranked up using the independent serial number as label.It specifically, will be each
The gauge outfit position of the journal file is arranged in corresponding independent serial number in journal file, according to the create-rule of independent serial number
Journal file is ranked up, and all journal files are uniformly shown in a data column using the independent serial number as label
In table.Wherein, sequence of all journal files in data list is as follows: first by journal file by operation account information
Corresponding number is arranged successively;Then then corresponding according to its operating function information for the journal file of same operation account information
Number arrangement;Sequentially for same operation account information and when the journal file of same operating function information is then operated according to it
Between information corresponding number order arrangement, and belong to the journal file of same period then according to the corresponding number of number of operations n
Arrangement.It is understood that ordering rule of all journal files in data list is used only as example, the behaviour
Make account information, operating function information, successive can exchanging according to system actual demand of sorting between operating time information.
Above-described embodiment is by according to preset independent serial number create-rule, to each acquisition called from system
Journal file generates corresponding independent serial number, and by label of the independent serial number that all logs in the system are literary
Part is shown in a data list, so that system can be by traversing institute according to the corresponding independent serial number of log to be checked
It states all independent serial numbers in data list and obtains all correlation log files that user needs.Since the present embodiment is to system
All journal files in database are sorted according to the corresponding independent serial number of each journal file, and the system
Journal file in database for operating time information only with respect to not being ordered into, relative to operation account information and behaviour
Make also to be ordered into for functional information, avoids user when carrying out reconciliation, error checking or track problems in system, it is difficult
Problem is accurately positioned.
It in some embodiments, can also be every to account each in system according to preset independent serial number create-rule
The journal file generated when executing primary system function carries out generating corresponding independent serial number.Referring to Fig. 5, Fig. 5 is this hair
The another of independent serial number setting is carried out to each journal file in system in the system log querying method that bright embodiment provides
One method flow schematic diagram.
As shown in figure 5, the step 500 is further comprising the steps of:
S510: according to preset independent serial number create-rule, to the every execution primary system function of account each in system
The journal file of Shi Shengcheng carries out generating corresponding independent serial number.
In the present embodiment, each account is for each function in system, every log text for executing once-through operation and generating
An independent serial number is arranged in part.Include in the independent serial number: the corresponding coding of the account of each log into thr computer,
The corresponding coding of each of computer function, time corresponding coding when executing the operation, these codings are closed
And to generate the independent serial number of the journal file.
In some embodiments, the preset independent serial number create-rule may include: have in the system it is multiple
Account information, for example, business personnel open * * account information it is corresponding number be 01, the corresponding volume of account information of business personnel woods * *
Number for 02, the corresponding number of the account information of business personnel king * be 03 etc.;The system also has a variety of different function of multiple business
Can, for example the corresponding number of lower single function of * * insurance business is A55, the corresponding number of the query function of * * fund business is
B08 etc..If in system some journal file log formed information be business personnel open * * on 06 23rd, 2,018 09 point of the morning
03 point operates single function under * * insurance business for 45 seconds, at this point, can obtain the day according to preset independent serial number create-rule
The corresponding independent serial number of will file is 01A5520180623090345.
In some embodiments, the preset independent serial number create-rule can also include: have in the system it is more
A account information, for example, business personnel open * * account information it is corresponding number be 01, the account information of business personnel woods * * it is corresponding
Number is 02, the corresponding number of the account information of business personnel king * is 03 etc.;The system also has a variety of different function of multiple business
Can, for example the corresponding number of lower single function of * * insurance business is A55, the corresponding number of the query function of * * fund business is
B08 etc.;Time when log file generated between 0 point to 1 point, operating time information it is corresponding number be the date+00,
Between 1 point to 2 points, the corresponding number of operating time information is the date+01, between 2 points to 3 points, operating time letter
Ceasing corresponding number is the date+02, remaining time, the rest may be inferred;Some account is to same feature operation within the same period
N times, then the corresponding number of n-th operation is n, and wherein n is natural number 001,002,003 ... etc..If some log in system
It is that business personnel opens * * in 09 point of 30 minutes or so the 5th operation * * insurance of on 06 23rd, 2018 morning that the log of file, which forms information,
The lower single function of business, at this point, can obtain the corresponding individual flow of the journal file according to preset independent serial number create-rule
Water number is 01A552018062309005.
It in some embodiments, after step 510 can also include step S520.Referring to Fig. 6, Fig. 6 is the present invention
The sub- journal file generated when executing the system function is associated with the system in the system log querying method that embodiment provides
The method flow schematic diagram for the corresponding independent serial number of journal file that function generates.
As shown in fig. 6, further comprising the steps of after the step 510:
S520: in the sub- journal file and the system generated when by account each in a system feature operation of every execution
Each account is every to execute the independent serial number association generated when a feature operation.
One account may need multiple steps that could complete when executing primary system function in systems, and should executing
Each step when system function can generate a corresponding sub- journal file, and the sub- journal file is stored in described default
System database in.According to preset independent serial number create-rule, to the every execution primary system of account each in system
The journal file generated when function carries out after generating corresponding independent serial number, each step when by this time execution system function
The sub- journal file generated is associated with the corresponding independent serial number of journal file of subsystem function generation.For example, business personnel
* * is opened in the lower single function of 09 point of 30 minutes or so the 5th operation insurance business of on 06 23rd, 2018 morning, is specifically performed
Car insurance set meal one choose operation and building insurance set meal two choose operation, i.e., this chooses that operation is corresponding to be generated twice
Two sub- journal files, then two sub- journal files are associated with independent serial number 01A552018062309005.
Further, all journal files in the system are shown in a number using the independent serial number as label
When according in list, and then the sub- log subfile of each generation is arranged in its log for being associated with independent serial number in chronological order
After file.
The embodiment of the present invention also provides a kind of system log inquiry unit to solve above-mentioned technical problem.Referring specifically to figure
7, Fig. 7 be system log inquiry unit basic structure block diagram provided in an embodiment of the present invention.
As shown in fig. 7, a kind of system log inquiry unit, the system log inquiry unit includes: the first acquisition module
10, first processing module 20 and the first execution module 30.Wherein, the first acquisition module 10 is for obtaining user terminal transmission
Inquiry request, include that the log of log to be checked generates information in the inquiry request.The first processing module 20 is used
The corresponding independent serial number of log to be checked is obtained in the inquiry request sent according to the user terminal.Described first executes mould
Block 30 is used to inquire all journal files relevant to the independent serial number according to the independent serial number.
The inquiry request that above system log query device is sent especially by user terminal is obtained, then according to the use
The log of log to be checked generates information in the inquiry request that family terminal is sent, and obtains according to preset independent serial number create-rule
The corresponding independent serial number of log to be checked is taken, inquires institute relevant to the independent serial number further according to the independent serial number
There is journal file.So, all correlation log files in system database can directly be inquired by independent serial number,
Moreover, user, which only needs to inquire, once can be obtained all correlation log files, so that the speed of system log inquiry is fast, operation
Simply, query result accuracy is high.
In some embodiments, the system log inquiry unit further include: the first acquisition submodule and the first processing
Submodule.Wherein, the log that first acquisition submodule is used to extract log to be checked in the inquiry request generates information;
The first processing submodule is used to generate the corresponding create-rule of information based on independent serial number and log, obtain described in
The log of inquiry log generates the corresponding independent serial number of information.
In some embodiments, the system log inquiry unit further include: the first judging submodule, second judge submodule
Block, third judging submodule and second processing submodule.Wherein, first judging submodule is for judging the individual flow
Water number the first character string characterization operation account information and the log to be checked generation when operation account information whether one
It causes;The second judgment submodule is used to judge operating function information and the institute of the second character string characterization of the independent serial number
Whether the operating function information stated when log to be checked generates is consistent;The third judging submodule is for judging the individual flow
Water number third character string characterization operating time information and the log to be checked generate when operating time information whether one
It causes;The second processing submodule is used to obtain the independent serial number as the log with the log to be checked and generates information
Corresponding independent serial number.
In some embodiments, the system log inquiry unit further include: second obtain module, Second processing module with
And second execution module.Wherein, described second module is obtained for all journal files in acquisition system;The second processing
Module is used for according to preset independent serial number create-rule, generates corresponding individual flow to the journal file of each acquisition
Water number;Second execution module is for showing all journal files in the system using the independent serial number as label
In a data list.
In some embodiments, the system log inquiry unit further include: third handles submodule.The third processing
Submodule is used for according to preset independent serial number create-rule, and when executions primary system function every to account each in system gives birth to
At journal file carry out generating corresponding independent serial number.
In some embodiments, the system log inquiry unit further include: fourth processing module.The fourth process mould
The sub- journal file and each account in the system that block generates when being used for account each in a system feature operation of every execution
Family is every to execute the independent serial number association generated when a feature operation.
In order to solve the above technical problems, the embodiment of the invention also provides a kind of computer equipments.Referring specifically to Fig. 8,
Fig. 8 is computer equipment basic structure block diagram provided in an embodiment of the present invention.
As shown in figure 8, the schematic diagram of internal structure of computer equipment.As shown in figure 8, the computer equipment includes passing through to be
Processor, non-volatile memory medium, memory and the network interface of bus of uniting connection.Wherein, the computer equipment is non-easy
The property lost storage medium is stored with operating system, database and computer-readable instruction, can be stored with control information sequence in database
Column, when which is executed by processor, may make processor to realize a kind of system log querying method.The calculating
The processor of machine equipment supports the operation of entire computer equipment for providing calculating and control ability.The computer equipment
It can be stored with computer-readable instruction in memory, when which is executed by processor, processor may make to hold
A kind of system log querying method of row.The network interface of the computer equipment is used for and terminal connection communication.Those skilled in the art
Member is appreciated that structure shown in Fig. 8, only the block diagram of part-structure relevant to application scheme, composition pair
The restriction for the computer equipment that application scheme is applied thereon, specific computer equipment may include than as shown in the figure more
More or less component perhaps combines certain components or with different component layouts.
In the present embodiment, the processor obtains module 10, first processing module 20 and for executing in Fig. 7 first
The concrete function of one execution module 30, and the memory is stored with program code and all kinds of numbers needed for executing above-mentioned module
According to.The network interface is used for the data transmission between user terminal or server.Memory in the present embodiment is stored with
Program code needed for executing all submodules in system log inquiry unit and data, server are capable of the journey of invoking server
Sequence code and data execute the function of all submodules.
The inquiry request that the computer equipment is sent by obtaining user terminal, then sends according to the user terminal
Inquiry request in the log of log to be checked generate information, obtain day to be checked according to preset independent serial number create-rule
The corresponding independent serial number of will inquires all logs texts relevant to the independent serial number further according to the independent serial number
Part.So, all correlation log files in system database can directly be inquired by independent serial number, moreover, with
Family only need inquire once can be obtained all correlation log files so that system log inquiry speed it is fast, it is easy to operate, look into
It is high to ask result accuracy.
The present invention also provides a kind of storage mediums for being stored with computer-readable instruction, and the computer-readable instruction is by one
When a or multiple processors execute, so that one or more processors execute system log issuer described in any of the above-described embodiment
The step of method.
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, which can be stored in a computer-readable storage and be situated between
In matter, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, storage medium above-mentioned can be
The non-volatile memory mediums such as magnetic disk, CD, read-only memory (Read-Only Memory, ROM) or random storage note
Recall body (Random Access Memory, RAM) etc..
It should be understood that although each step in the flow chart of attached drawing is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, can execute in the other order.Moreover, at least one in the flow chart of attached drawing
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, execution sequence, which is also not necessarily, successively to be carried out, but can be with other
At least part of the sub-step or stage of step or other steps executes in turn or alternately.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of system log querying method, which comprises the following steps:
The inquiry request that user terminal is sent is obtained, includes the log generation information of log to be checked in the inquiry request;
The corresponding independent serial number of log to be checked is obtained according to the inquiry request that the user terminal is sent;
All journal files relevant to the independent serial number are inquired according to the independent serial number.
2. system according to claim 1 log inquiring method, which is characterized in that described to be sent according to the user terminal
Inquiry request the step of obtaining the independent serial number of log to be checked, comprising:
The log for extracting log to be checked in the inquiry request generates information;
Based on independent serial number create-rule corresponding with log generation information, the log for obtaining the log to be checked is generated
The corresponding independent serial number of information.
3. system log querying method according to any one of claims 1 or 2, which is characterized in that the log generates
Information includes at least: operation account information, operating function information and operating time information when log generates.
4. system log querying method according to claim 3, which is characterized in that included at least in the independent serial number
There are the first character string for characterizing operation account information, the second character string for characterizing operating function information and for table
Levy the third character string of operating time information;It is described to be based on independent serial number rule searching corresponding with log generation information,
Obtain the step of log of the log to be checked generates information corresponding independent serial number, comprising:
When the operation account information and the log to be checked for judging the first character string characterization of the independent serial number generate
Whether consistent operate account information;
If so, judging that the operating function information of the second character string characterization of the independent serial number and the log to be checked generate
When operating function information it is whether consistent;
If so, judging that the operating time information of the third character string characterization of the independent serial number and the log to be checked generate
When operating time information it is whether consistent;
If so, obtaining the independent serial number as the log with the log to be checked generates the corresponding independent flowing water of information
Number.
5. system log querying method according to any one of claims 1 or 2, which is characterized in that described according to
Independent serial number inquired before the step of all journal files relevant to the independent serial number, further includes:
All journal files in acquisition system;
According to preset independent serial number create-rule, corresponding independent flowing water is generated to the journal file of each acquisition
Number;
All journal files in the system are shown in a data list using the independent serial number as label.
6. system log querying method according to claim 5, which is characterized in that described according to preset independent serial number
Create-rule, the step of generating the journal file corresponding independent serial number of the acquisition, comprising:
According to preset independent serial number create-rule, day for generating when executing primary system function every to account each in system
Will file carries out generating corresponding independent serial number.
7. system log querying method according to claim 6, which is characterized in that described raw according to preset independent serial number
At rule, the journal file generated when a feature operation that executes every to account each in system carries out generating corresponding individual flow
After the step of water, further includes:
Each account in the sub- journal file generated when by account each in a system feature operation of every execution and the system
It is every to execute the independent serial number association generated when a feature operation.
8. a kind of system log inquiry unit characterized by comprising
First obtains module, includes day to be checked in the inquiry request for obtaining the inquiry request of user terminal transmission
The log of will generates information;
First processing module, the inquiry request for being sent according to the user terminal obtain the corresponding individual flow of log to be checked
Water number;
First execution module, for inquiring all log texts relevant to the independent serial number according to the independent serial number
Part.
9. a kind of computer equipment, including memory and processor, it is stored with computer-readable instruction in the memory, it is described
When computer-readable instruction is executed by the processor, so that the processor executes 1 to 7 any one institute of the claims
The system log querying method stated.
10. a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction is handled by one or more
When device executes, so that one or more processors execute system described in any one of the claims 1 to 7 claim
Log inquiring method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810988927.9A CN109388628A (en) | 2018-08-28 | 2018-08-28 | System log querying method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810988927.9A CN109388628A (en) | 2018-08-28 | 2018-08-28 | System log querying method, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109388628A true CN109388628A (en) | 2019-02-26 |
Family
ID=65418460
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810988927.9A Pending CN109388628A (en) | 2018-08-28 | 2018-08-28 | System log querying method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109388628A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110134576A (en) * | 2019-04-30 | 2019-08-16 | 平安科技(深圳)有限公司 | A kind of batch processing log inquiring method, terminal and computer readable storage medium |
CN111045848A (en) * | 2019-12-19 | 2020-04-21 | 广州唯品会信息科技有限公司 | Log analysis method, terminal device and computer-readable storage medium |
CN111078657A (en) * | 2019-12-26 | 2020-04-28 | 北京思特奇信息技术股份有限公司 | Service log query method, system, medium and equipment of distributed system |
CN111177081A (en) * | 2019-12-31 | 2020-05-19 | 广州极尚网络技术有限公司 | Game log content query method and device, computer equipment and storage medium |
CN114168672A (en) * | 2021-12-13 | 2022-03-11 | 明觉科技(北京)有限公司 | Log data processing method, device, system and medium |
CN115629951A (en) * | 2022-12-20 | 2023-01-20 | 北京蔚领时代科技有限公司 | Task full-link tracking method, first node, link system and medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090265780A1 (en) * | 2008-04-21 | 2009-10-22 | Varonis Systems Inc. | Access event collection |
US8311989B1 (en) * | 2008-12-29 | 2012-11-13 | Teradata Us, Inc. | Query logging in a multi-database system |
CN103810529A (en) * | 2012-11-15 | 2014-05-21 | 金蝶软件(中国)有限公司 | Cross-receipt process log generating method and querying method and device |
CN104239443A (en) * | 2014-09-01 | 2014-12-24 | 英方软件(上海)有限公司 | Serialization data operation log storage method |
CN106055621A (en) * | 2016-05-26 | 2016-10-26 | 浪潮电子信息产业股份有限公司 | Log retrieval method and device |
CN106209455A (en) * | 2016-07-11 | 2016-12-07 | 税友软件集团股份有限公司 | The associated services Fault Locating Method of a kind of cross-system weak coupling and system |
CN106470229A (en) * | 2015-08-19 | 2017-03-01 | 阿里巴巴集团控股有限公司 | A kind of service related information processing method and processing device |
CN106484819A (en) * | 2016-09-26 | 2017-03-08 | 天脉聚源(北京)科技有限公司 | A kind of method and device of counting user amount |
CN107644017A (en) * | 2016-07-20 | 2018-01-30 | 平安科技(深圳)有限公司 | The querying method and device of journal file |
CN108197200A (en) * | 2017-12-27 | 2018-06-22 | 金蝶软件(中国)有限公司 | Daily record method for tracing, device, computer equipment and storage medium |
-
2018
- 2018-08-28 CN CN201810988927.9A patent/CN109388628A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090265780A1 (en) * | 2008-04-21 | 2009-10-22 | Varonis Systems Inc. | Access event collection |
US8311989B1 (en) * | 2008-12-29 | 2012-11-13 | Teradata Us, Inc. | Query logging in a multi-database system |
CN103810529A (en) * | 2012-11-15 | 2014-05-21 | 金蝶软件(中国)有限公司 | Cross-receipt process log generating method and querying method and device |
CN104239443A (en) * | 2014-09-01 | 2014-12-24 | 英方软件(上海)有限公司 | Serialization data operation log storage method |
CN106470229A (en) * | 2015-08-19 | 2017-03-01 | 阿里巴巴集团控股有限公司 | A kind of service related information processing method and processing device |
CN106055621A (en) * | 2016-05-26 | 2016-10-26 | 浪潮电子信息产业股份有限公司 | Log retrieval method and device |
CN106209455A (en) * | 2016-07-11 | 2016-12-07 | 税友软件集团股份有限公司 | The associated services Fault Locating Method of a kind of cross-system weak coupling and system |
CN107644017A (en) * | 2016-07-20 | 2018-01-30 | 平安科技(深圳)有限公司 | The querying method and device of journal file |
CN106484819A (en) * | 2016-09-26 | 2017-03-08 | 天脉聚源(北京)科技有限公司 | A kind of method and device of counting user amount |
CN108197200A (en) * | 2017-12-27 | 2018-06-22 | 金蝶软件(中国)有限公司 | Daily record method for tracing, device, computer equipment and storage medium |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110134576A (en) * | 2019-04-30 | 2019-08-16 | 平安科技(深圳)有限公司 | A kind of batch processing log inquiring method, terminal and computer readable storage medium |
CN110134576B (en) * | 2019-04-30 | 2023-01-17 | 平安科技(深圳)有限公司 | Batch log query method, terminal and computer readable storage medium |
CN111045848A (en) * | 2019-12-19 | 2020-04-21 | 广州唯品会信息科技有限公司 | Log analysis method, terminal device and computer-readable storage medium |
CN111045848B (en) * | 2019-12-19 | 2024-04-19 | 广州唯品会信息科技有限公司 | Log analysis method, terminal device and computer readable storage medium |
CN111078657A (en) * | 2019-12-26 | 2020-04-28 | 北京思特奇信息技术股份有限公司 | Service log query method, system, medium and equipment of distributed system |
CN111177081A (en) * | 2019-12-31 | 2020-05-19 | 广州极尚网络技术有限公司 | Game log content query method and device, computer equipment and storage medium |
CN111177081B (en) * | 2019-12-31 | 2023-11-14 | 广州极尚网络技术有限公司 | Game log content query method, device, computer equipment and storage medium |
CN114168672A (en) * | 2021-12-13 | 2022-03-11 | 明觉科技(北京)有限公司 | Log data processing method, device, system and medium |
CN115629951A (en) * | 2022-12-20 | 2023-01-20 | 北京蔚领时代科技有限公司 | Task full-link tracking method, first node, link system and medium |
CN115629951B (en) * | 2022-12-20 | 2023-03-28 | 北京蔚领时代科技有限公司 | Task full-link tracking method, first node, link system and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109388628A (en) | System log querying method, device, computer equipment and storage medium | |
US7814088B2 (en) | System for identifying word patterns in text | |
US20140379750A1 (en) | Action alignment for event planning, project management and process structuring | |
US20150088852A1 (en) | Accessing deep web informaiton using a search engine | |
US20030101083A1 (en) | Web-based method and system for providing expert information on selected matters | |
CN105593836B (en) | Based on user action operable content is provided to computing device | |
US20070094268A1 (en) | Broadband centralized transportation communication vehicle for extracting transportation topics of information and monitoring terrorist data | |
US20020124009A1 (en) | Web based resource distribution system | |
CN110929094B (en) | Video title processing method and device | |
GB2390928A (en) | Interactive learning and career management system | |
US20080228488A1 (en) | Computer-Implemented Voice Application Indexing WEB Site | |
WO1999048088A1 (en) | Voice controlled web browser | |
US20040100498A1 (en) | Annotating received world wide web/internet document pages without changing the hypertext markup language content of the pages | |
US20070079128A1 (en) | Electronic signature system and method | |
WO2006036782B1 (en) | Progressive reference system, method and apparatus | |
US20090119293A1 (en) | Computer Method and System for Determining Individual Priorities of Shared Activities | |
JP2003504703A (en) | Method and apparatus for monitoring and maintaining the integrity of a distribution document | |
US20060075332A1 (en) | System and method for information collation | |
CN109389967A (en) | Voice broadcast method, device, computer equipment and storage medium | |
CN106649033A (en) | Web system health check method and device | |
CN112836018A (en) | Method and device for processing emergency plan | |
CN109558605A (en) | Method and apparatus for translating sentence | |
CN112632139A (en) | Information pushing method and device based on PMIS system, computer equipment and medium | |
CN110738055A (en) | Text entity identification method, text entity identification equipment and storage medium | |
CN108140055A (en) | Trigger application message |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190226 |
|
RJ01 | Rejection of invention patent application after publication |