CN108268353A - The method and apparatus for checking error log - Google Patents

The method and apparatus for checking error log Download PDF

Info

Publication number
CN108268353A
CN108268353A CN201611264051.0A CN201611264051A CN108268353A CN 108268353 A CN108268353 A CN 108268353A CN 201611264051 A CN201611264051 A CN 201611264051A CN 108268353 A CN108268353 A CN 108268353A
Authority
CN
China
Prior art keywords
server
error log
under
output
directory
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
Application number
CN201611264051.0A
Other languages
Chinese (zh)
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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology 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 Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201611264051.0A priority Critical patent/CN108268353A/en
Publication of CN108268353A publication Critical patent/CN108268353A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • G06F11/3072Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • G06F11/3086Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves the use of self describing data formats, i.e. metadata, markup languages, human readable formats

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of method and apparatus for checking error log.Wherein, this method includes:Obtain the output directory of at least one output journal of at least one first server;At least one error log under output directory is extracted, wherein, error log includes the output journal of spcial character for title;It stores under at least one error log to the specified directory of second server, wherein, second server is used to check at least one error log under specified directory.The present invention solves the existing method for checking server error log so that the workload of staff's safeguard service device becomes larger and ineffective technical problem.

Description

The method and apparatus for checking error log
Technical field
The present invention relates to computer network field, in particular to a kind of method and apparatus for checking error log.
Background technology
During the processing routine for performing intranet server, processing routine is it is possible that mistake, in processing routine In the case of there is mistake, which can generate relevant error log, and for server, maintenance staff checks, because This, server maintenance staff can be by checking whether the method for generation error daily record judges the service to the processing routine Whether the processing routine of device reports an error.Since mail or other type of alarms in intranet environment, can not be configured to processing routine Mistake reminded, so server maintenance staff need server is logged on on remote desktop, enter processing The storing directory of program output journal, which is gone down, has checked whether error information.Go out although the above method can find processing routine The server of existing mistake, but in the case where server is relatively more, maintenance personnel is needed to log on to every server and is checked up, Therefore, the method that whether the existing processing routine for checking intranet server malfunctions not only consumes a large amount of maintenance staffs' Time, and maintenance efficiency is also than relatively low.
Cause heavy workload and the work of maintenance personnel for the above-mentioned existing method for checking server error log The problem of efficiency is low, currently no effective solution has been proposed.
Invention content
An embodiment of the present invention provides a kind of method and apparatus for checking error log, at least to solve existing to check clothes The method of business device error log so that the workload of staff's safeguard service device becomes larger and ineffective technology is asked Topic.
One side according to embodiments of the present invention provides a kind of method for checking error log, including:It obtains at least The output directory of at least one output journal of one first server;Extract at least one wrong day under output directory Will, wherein, error log includes the output journal of spcial character for title;At least one error log is stored to second server Specified directory under, wherein, second server under specified directory for checking at least one error log.
Another aspect according to embodiments of the present invention additionally provides a kind of device for checking error log, including:Obtain mould Block, for obtaining the output directory of at least one output journal of at least one first server;Extraction module, for extracting At least one error log under output directory, wherein, error log includes the output journal of spcial character for title;Store mould Block, for storing under at least one error log to the specified directory of second server, wherein, second server is used for specified At least one error log is checked under catalogue.
In embodiments of the present invention, by the way of the file comprising spcial character is searched, by obtaining at least one the Then the output directory of at least one output journal of one server extracts at least one error log under output directory, Wherein, error log includes the output journal of spcial character for title, finally stores at least one error log to second service Under the specified directory of device, wherein, second server has reached quick for checking at least one error log under specified directory The purpose of the output journal of server process program is obtained, it is achieved thereby that reducing the workload of server maintenance personnel, is improved The technique effect of working efficiency, and then solve the existing method for checking server error log and staff is caused to safeguard clothes The workload of business device becomes larger and ineffective technical problem.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and forms the part of the application, this hair Bright illustrative embodiments and their description do not constitute improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is a kind of method flow diagram for checking error log according to embodiments of the present invention;
Fig. 2 is a kind of optional method flow diagram for checking error log according to embodiments of the present invention;
Fig. 3 is a kind of optional method flow diagram for checking error log according to embodiments of the present invention;
Fig. 4 is a kind of optional method flow diagram for checking error log according to embodiments of the present invention;
Fig. 5 is a kind of optional method flow diagram for checking error log according to embodiments of the present invention;
Fig. 6 is a kind of schematic diagram at optional data storage interface according to embodiments of the present invention;And
Fig. 7 is a kind of apparatus structure schematic diagram for checking error log according to embodiments of the present invention.
Specific embodiment
In order to which those skilled in the art is made to more fully understand the present invention program, below in conjunction in the embodiment of the present invention The technical solution in the embodiment of the present invention is clearly and completely described in attached drawing, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people Member's all other embodiments obtained without making creative work should all belong to the model that the present invention protects It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, " Two " etc. be the object for distinguishing similar, and specific sequence or precedence are described without being used for.It should be appreciated that it uses in this way Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment Those steps or unit clearly listed, but may include not listing clearly or for these processes, method, product Or the intrinsic other steps of equipment or unit.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of the method for checking error log is provided.
Fig. 1 is the method flow diagram for checking error log according to embodiments of the present invention, as shown in Figure 1, this method includes Following steps:
Step S102 obtains the output directory of at least one output journal of at least one first server.
In above-mentioned steps S102, above-mentioned first server is intranet server, i.e., passes through routing in a LAN Multiple servers are connected to, are all performing corresponding processing routine in every server, therefore, above-mentioned first server can also claim For processing server.
Specifically, include the processing routine appearance mistake in server in the script of the processing routine of every processing server Accidentally in the case of generation error daily record program code, when the processing routine in server when the error occurs, just trigger above-mentioned life Into the execution of the program code of error log, and the error log is generated under specified output directory.
It should be noted that it can obtain including at least one output in an at least server by above-mentioned steps S102 The file of daily record, and the output journal of at least one server is got in being pressed from both sides from this document, wherein, above-mentioned output journal can The day for thinking but being not limited to the daily record generated due to processing routine malfunctions, being generated due to generation warning in the processing procedure in program Will and the daily record that is normally generated during processing routine normally performs etc..
Step S104 extracts at least one error log under output directory, wherein, error log includes spy for title The output journal of different character.
In a kind of optional embodiment, processing server can generate output journal during handling program, and Result according to processing routine is performed carries out output journal different names, for example, the process normally performed in processing routine In the daily record that normally generates can only be named with the time or be added before the title of the output journal and can be used for characterizing the output Daily record be normal daily record character, for example, the normal output journal title can be " 20161102111412 ", Ke Yiming Entitled " Normal_20161102111412 " when processing server accesses the output journal under output directory, can be inquired first The title of each output journal, if the title for inquiring the output journal includes " Normal_ " or the title in addition to the time not Include other spcial characters, then it is assumed that the output journal of current accessed is normal daily record.Equally, it is because processing routine performs mistake The title of the daily record accidentally generated and the title of daily record generated due to generation warning in the processing procedure in program add area Not in the character of other kinds of daily record, whether then judge in the name of output journal comprising specific character, you can judge Whether the output journal is normal.
It should be noted that it is above-mentioned because processing routine perform mistake due to generation daily record and because of the processing procedure in program The middle daily record that warning occurs and generates is error log, and after error log is inquired, processing server can create one File, and the error log inquired is stored into this document folder, wherein, this document is pressed from both sides with the name of present treatment server Name.
Every server generated error log in program process is performed can be got by above-mentioned steps S104, Due to having the symbol of difference and other types daily record in the title of the error log, server can be inquired faster Error log under daily record output directory.
Step S106 is stored under at least one error log to the specified directory of second server, wherein, second server For checking at least one error log under specified directory.
In above-mentioned steps S106, error log will be acquired in step S104 and will be put into the name of first server life In the file of name, and this document folder is sent to second server.Wherein, second server is ftp server.FTP service Device (File Transfer Protocol Server) transmits text protocol server, is to provide file on the internet to deposit Storage and the computer for accessing service can provide service according to File Transfer Protocol.Error log is stored to file in first server After in folder, and this document folder is sent to second server, second server receives this document folder, and by this document fold up in Under specified directory, wherein, it is named under the specified directory comprising multiple files, each file with the date, for example, “20161212”.After the file for receiving first server transmission in second server, current date is arrived into this document storage In file.When whether server maintenance personnel needs the processing routine checked in each first server to report an error, Ke Yideng It records in the ftp server, searches this document folder, open the lower file for including corresponding server title of this document folder, dimension Shield personnel can inquire the server generated error log during processing routine is performed.
In a kind of optional embodiment, if first server generates error log, first server is to second Server sends message instruction, and second server receives message instruction, and establishment file is pressed from both sides under specified directory, Ran Hou Daily fixed time, first server is by the portfolios to second server comprising error log, second server The file that the first server received is sent is copied under the file created.Wherein, above-mentioned message instruction Second server establishment file under specified directory is used to indicate to press from both sides.
It should be noted that when there are during more first servers, any one first server generation error daily record is equal Message instruction can be sent to second server, but second server only receives a message instruction daily.Wherein, second server The message instruction that the message instruction received is sent for the first server of earliest generation error daily record.
By above-mentioned steps S106, server maintenance personnel can check more first services by a second server The error log of device does not need to log on to the error log that every first server checks every first server up, and then Reduce the workload of server maintenance personnel, improve the working efficiency of server maintenance staff.
Based on the scheme disclosed in above-described embodiment step S102 to step S106, can know by obtaining at least one Then the output directory of at least one output journal of first server extracts at least one wrong day under output directory Will, wherein, error log includes the output journal of spcial character for title, finally stores at least one error log to the second clothes It is engaged under the specified directory of device, wherein, second server easily pays attention to for checking at least one error log under specified directory To obtaining the error log of more first servers as a result of second server and checked in second server more Whether the processing routine in platform first server malfunctions, therefore, in the case where the quantity of first server is relatively more, above-mentioned side Method can greatly improve the working efficiency of server maintenance personnel, reach the output journal of quick obtaining server process program Purpose, it is achieved thereby that reduce server maintenance personnel workload, improve the technique effect of working efficiency, and then solve The existing method for checking server error log is so that the workload of staff's safeguard service device becomes larger and working efficiency The technical issues of low.
Optionally, Fig. 2 shows the output directories at least one output journal for obtaining at least one first server Before, the method flow diagram of output journal is generated, as shown in Fig. 2, this method comprises the following steps:
Step S202 performs the processing routine of at least one first server;
Step S204 generates at least one output journal according to processing routine;
Step S206 in the case where exception occurs in processing routine, exports at least one error log, wherein, mistake day Spcial character is included in the title of will.
In a kind of optional embodiment, processing server can generate output journal during processing routine is performed. When processing routine occurs abnormal, for example, during processing routine performs, in case of mistake, generation error can be triggered The relative program of daily record, and generation error daily record, the title of the error log includes spcial character, for example, " DEG C Error ";Such as Fruit is alerted during processing routine performs, also can generation error daily record, but the spy that error log at this time includes Different character is different from the spcial character included in above-mentioned error log name, for example, the spcial character can be " Warn № ".
It, can be with it should be noted that carry out different name to output journal according to the Different Results that processing routine performs Processing server is made to find the journal file required to look up more quickly.
Optionally, Fig. 3 shows a kind of optional method flow diagram for checking error log, as shown in figure 3, this method can To extract at least one error log under output directory, specifically comprise the following steps:
Whether step S302 judges the title of at least one output journal comprising spcial character;
Step S304 in the case where the title of at least one output journal includes spcial character, is extracted at least one Output journal.
In a kind of optional embodiment, in daily fixed time, first server extracts the file of output journal Middle title includes the output journal of spcial character, and the output journal extracted is stored in and is ordered with the host name of the first server In the file of name, wherein, it is included in the title for the error log that said extracted goes out and is used to indicate the daily record as error log Spcial character, for example, " DEG C Error ", " Warn № ", spcial character can be in the stems of the title of above-mentioned error log.
It should be noted that in daily fixed time, the daily record extracted is stored in the server by first server While the file of host name name, the previous day is deleted equally with the file of server host name name.In above-mentioned text In the case of host name and current date that server is included in the title of part folder, in the given time (for example, one week, one A month) retain above-mentioned file, it is more than pre- when the date in above-mentioned folder name and the difference of the current date of first server During definite value, above-mentioned file is deleted.By the above method can ensure server maintenance staff generation error daily record it The error log can be still inquired in period afterwards.
In an alternative embodiment, second server can also obtain the host name of more first servers, and The file named with first server host name is created under the file of specified directory, and the first server will be got Error log be deposited under corresponding file, for example, second server gets the entitled A1 of host of first server A, Under the file named with current date then created in second server, for example, in the text that folder name is " 20161212 " The file of entitled " A1 " is created in part folder, and will be in the error log deposit A1 files of the generation in first server A.
Optionally, Fig. 4 shows a kind of optional method flow diagram for checking error log, as shown in figure 4, this method can To create the file of the error log at least one first server of storage in second server, specifically include as follows Step:
Step S402 obtains the current date of second server;
Step S404, according to current date, establishment file is pressed from both sides under specified directory.
In a kind of optional embodiment, second server daily fixed time under specified catalogue to work as the day before yesterday Phase establishment file is pressed from both sides, i.e., this document clip pack contains temporal information.
It should be noted that second server is received with the time of file that current date creates earlier than second server The time for the error log that first server is sent.
In addition it is also necessary to explanation, by running processing routine on second server, establishment data store interface, Selection needs the date inquired and first server on the surface, and can view first on data storage interface The error log of server output.
Optionally, Fig. 5 shows a kind of optional method flow diagram for checking error log, as shown in figure 5, this method can To check at least one error log under the specified directory of second server, specifically comprise the following steps:
Step S502, according to the file under the specified directory of date inquiries second server;
Step S504 checks at least one wrong day that an at least first server generates in the date under file Will.
In a kind of optional embodiment, server maintenance personnel as shown in Figure 6 passes through browser access second service The schematic diagram at the data storage interface in device.On the surface, server maintenance personnel select to need Start Date for inquiring and The title of server and the type of output journal that Close Date and needs are inquired, wherein, Log Types on the surface It can include but is not limited to error log and warning daily record.When server maintenance personnel click interface on " inquiry " button it Afterwards, query result can be shown in the display area that data are stored on interface.
It should be noted that when server maintenance personnel on data storage interface after " inquiry " button is clicked, second Execution routine access title in server includes the file of Query Dates, and goes inquiry should according to the first server of selection The file identical with the first server title under file, finally according to the type of daily record with first server title phase The output journal being consistent with Log Types is filtered out under same file.In an alternative embodiment, if selection Log Types are " error log ", then the output journal that Log Names include " DEG C Error " is searched in file;If selection Log Types be " warning daily record ", then the output journal that Log Names include " Warn № " is searched in file.
Embodiment 2
According to embodiments of the present invention, a kind of device embodiment for checking error log is provided, wherein, above-described embodiment 1 In the device that can be provided in the present embodiment of method in run.
Fig. 7 is a kind of apparatus structure schematic diagram for checking error log according to embodiments of the present invention, as shown in fig. 7, should Device includes:Acquisition module 701, extraction module 703 and memory module 705.
Acquisition module 701, for obtaining the output directory of at least one output journal of at least one first server.
In above-mentioned acquisition module 701, above-mentioned first server is intranet server, i.e., passes through road in a LAN By being connected to multiple servers, corresponding processing routine all is being performed in every server, therefore, above-mentioned first server also may be used Referred to as processing server.
Specifically, in the script of the processing routine of every processing server, addition occurs when the processing routine of server Just the program code of generation error daily record in the case of mistake, when the processing routine in server when the error occurs, just in triggering The execution of the program code of generation error daily record is stated, and the error log is generated under specified output directory.
It should be noted that it can be obtained in an at least server comprising at least one by above-mentioned acquisition module 701 The file of output journal, and the output journal of at least one server is got in being pressed from both sides from this document, wherein, above-mentioned output day Will can be but be not limited to the daily record generated due to processing routine malfunctions, be generated due to generation warning in the processing procedure in program Daily record and the daily record that is normally generated during processing routine normally performs etc..
Extraction module 703, for extracting at least one error log under output directory, wherein, error log is run after fame Claim the output journal for including spcial character.
In a kind of optional embodiment, processing server can generate output journal during handling program, and Result according to processing routine is performed carries out output journal different names, for example, the process normally performed in processing routine In the daily record that normally generates can only be named with the time or be added before the title of the output journal and can be used for characterizing the output Daily record be normal daily record character, for example, the normal output journal title can be " 20161102111412 ", Ke Yiming Entitled " Normal_20161102111412 " when processing server accesses the output journal under output directory, can be inquired first The title of each output journal, if the title for inquiring the output journal includes " Normal_ " or the title in addition to the time not Include other spcial characters, then it is assumed that the output journal of current accessed is normal daily record.Equally, it is because processing routine performs mistake The title of the daily record accidentally generated and the title of daily record generated due to generation warning in the processing procedure in program add area Not in the character of other kinds of daily record, whether then judge in the name of output journal comprising specific character, you can judge Whether the output journal is normal.
It should be noted that it is above-mentioned because processing routine perform mistake due to generation daily record and because of the processing procedure in program The middle daily record that warning occurs and generates is error log, and after error log is inquired, processing server can create one File, and the error log inquired is stored into this document folder, wherein, this document is pressed from both sides with the name of present treatment server Name.
Every server generated mistake day in program process is performed can be got by said extracted module 703 Will, due to having the symbol of difference and other types daily record in the title of the error log, server can be looked into faster Ask the error log under daily record output directory.
Memory module 705, for storing under at least one error log to the specified directory of second server, wherein, the Two servers are used to check at least one error log under specified directory.
In above-mentioned memory module 705, it is put into error log is acquired in extraction module 703 with first server In the file of naming, and this document folder is sent to second server.Wherein, second server is ftp server. Ftp server (File Transfer Protocol Server) transmits text protocol server, is to carry on the internet The computer of service is stored and accessed for file, can provide service according to File Transfer Protocol.Error log is deposited in first server After storing up in file, and this document folder is sent to second server, second server receives this document folder, and by this article Part is folded up under specified directory, wherein, it is named under the specified directory comprising multiple files, each file with the date, example Such as, " 20161212 ".After the file for receiving first server transmission in second server, by this document storage to current date File in.It, can be with when whether server maintenance personnel needs the processing routine checked in each first server to report an error Log on in the ftp server, search this document folder, open the lower file for including corresponding server title of this document folder, Maintenance personnel can inquire the server generated error log during processing routine is performed.
In a kind of optional embodiment, if first server generates error log, first server is to second Server sends message instruction, and second server receives message instruction, and establishment file is pressed from both sides under specified directory, Ran Hou Daily fixed time, first server is by the portfolios to second server comprising error log, second server The file that the first server received is sent is copied under the file created.Wherein, above-mentioned message instruction Second server establishment file under specified directory is used to indicate to press from both sides.
It should be noted that when there are during more first servers, any one first server generation error daily record is equal Message instruction can be sent to second server, but second server only receives a message instruction daily.Wherein, second server The message instruction that the message instruction received is sent for the first server of earliest generation error daily record.
Above-mentioned memory module 705 can check the error log of more first servers by second server, so as to subtract Lack the workload of server maintenance personnel, improve the working efficiency of server maintenance staff.
From the foregoing, it will be observed that the output directory of at least one output journal by obtaining at least one first server, then At least one error log under output directory is extracted, wherein, at least one error log includes spcial character for title At least one output journal is finally stored under at least one error log to the specified directory of second server, wherein, the second clothes Business device is easily noted that, for checking at least one error log under specified directory as a result of second server The processing routine for obtaining the error log of more first servers and being checked in second server in multiple first servers is No error, therefore, in the case where the quantity of first server is relatively more, the above method can greatly improve server and safeguard people The working efficiency of member, has achieved the purpose that the output journal of quick obtaining server process program, it is achieved thereby that reducing service The workload of device maintenance personnel, improves the technique effect of working efficiency, and then solves and existing check server error log Method so that the workload of staff's safeguard service device becomes larger and ineffective technical problem.
It should be noted that above-mentioned acquisition module 701, extraction module 703 and memory module 705 correspond to embodiment 1 In step S102 to step S106, the example and application scenarios that three modules and corresponding step are realized be identical but unlimited In 1 disclosure of that of above-described embodiment.
Optionally, the above-mentioned device for checking error log includes:Execution module, generation module and output module.Wherein, Execution module is used to perform the processing routine of at least one first server;Generation module is used for according to processing routine generation at least One output journal;Output module is used in the case where exception occurs in processing routine, exports at least one error log, In, spcial character is included in the title of error log.
It should be noted that above-mentioned execution module, generation module and output module correspond to the step in embodiment 1 S202 to step S206, three modules are identical with example and application scenarios that corresponding step is realized, but are not limited to above-mentioned reality Apply 1 disclosure of that of example.
Optionally, said extracted module includes:Judgment module and file extraction module.Wherein, judgment module is used to sentence Whether the title of disconnected at least one output journal includes spcial character;File extraction module is used at least one output journal In the case that title includes spcial character, at least one output journal is extracted.
It should be noted that above-mentioned judgment module and file extraction module correspond to step S302 in embodiment 1 extremely Step S304, two modules are identical with example and application scenarios that corresponding step is realized, but are not limited to the above embodiments 1 institute Disclosure.
Optionally, the above-mentioned device for checking error log further includes:Date acquisition module and creation module.Wherein, day Phase acquisition module is used to obtain the current date of second server;Creation module is used to be created under specified directory according to current date Build file.
It should be noted that above-mentioned date acquisition module and creation module correspond to step S402 in embodiment 1 extremely Step S404, two modules are identical with example and application scenarios that corresponding step is realized, but are not limited to the above embodiments 1 institute Disclosure.
Optionally, the above-mentioned device for checking error log further includes:File polling module and log query module.Its In, file polling module, for the file under the specified directory according to date inquiries second server;Log query module, For checking at least a first server generates in the date under file at least one error log.
It should be noted that above-mentioned file polling module and log query module correspond to the step in embodiment 1 S502 to step S504, two modules are identical with example and application scenarios that corresponding step is realized, but are not limited to above-mentioned reality Apply 1 disclosure of that of example.
Check that the device of error log includes acquisition module, extraction module, memory module, execution module, generation module, defeated Go out module, judgment module, file extraction module, date acquisition module, creation module, file polling module and log query mould Block etc. in memory, above procedure unit stored in memory is performed by processor as program unit storage.
Comprising kernel in processor, gone in memory to transfer corresponding program unit by kernel.Kernel can set one Or more, parse content of text by adjusting kernel parameter.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (f lash RAM), memory includes at least one deposit Store up chip.
Present invention also provides a kind of embodiment of computer program product, when being performed on the device for check error log When, it is adapted for carrying out the program code of initialization there are as below methods step:Obtain at least one defeated of at least first server Go out the output directory of daily record;At least one error log under output directory is extracted, wherein, at least one error log is run after fame Claim at least one output journal for including spcial character;At least one error log is stored to the specified directory of second server Under, wherein, second server is used to check at least one error log under specified directory.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
In the above embodiment of the present invention, all emphasize particularly on different fields to the description of each embodiment, do not have in some embodiment The part of detailed description may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei A kind of division of logic function, can there is an other dividing mode in actual implementation, for example, multiple units or component can combine or Person is desirably integrated into another system or some features can be ignored or does not perform.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module It connects, can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple On unit.Some or all of unit therein can be selected according to the actual needs to realize the purpose of this embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also That each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is independent product sale or uses When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products It embodies, which is stored in a storage medium, is used including some instructions so that a computer Equipment (can be personal computer, server or network equipment etc.) perform each embodiment the method for the present invention whole or Part steps.And aforementioned storage medium includes:USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can to store program code Medium.
The above is only the preferred embodiment of the present 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 also should It is considered as protection scope of the present invention.

Claims (10)

  1. A kind of 1. method for checking error log, which is characterized in that including:
    Obtain the output directory of at least one output journal of at least one first server;
    At least one error log under the output directory is extracted, wherein, the error log includes special word for title The output journal of symbol;
    It stores under at least one error log to the specified directory of second server, wherein, the second server is used for At least one error log is checked under the specified directory.
  2. 2. according to the method described in claim 1, it is characterized in that, obtaining at least one defeated of at least first server Go out before the output directory of daily record, the method further includes:
    The processing routine of at least one first server described in performing;
    At least one output journal is generated according to the processing routine;
    In the case where exception occurs in the processing routine, at least one error log is exported, wherein, the error log Title in include the spcial character.
  3. 3. according to the method described in claim 1, it is characterized in that, extract at least one wrong day under the output directory Will includes:
    Judge the title of at least one output journal whether comprising the spcial character;
    In the case where the title of at least one output journal includes the spcial character, extract described at least one defeated Go out daily record.
  4. 4. according to the method described in claim 1, it is characterized in that, storing at least one error log to second service It is further included before under the specified directory of device:
    Obtain the current date of the second server;
    According to the current date, establishment file is pressed from both sides under the specified directory.
  5. 5. according to the method described in claim 4, it is characterized in that, at least one error log is stored to second server Specified directory under, wherein, the second server under the specified directory for checking at least one error log Including:
    File under the specified directory of second server according to date inquiries;
    Check at least one error log that at least a first server generates in the date under the file.
  6. 6. a kind of device for checking error log, which is characterized in that including:
    Acquisition module, for obtaining the output directory of at least one output journal of at least one first server;
    Extraction module, for extracting at least one error log under the output directory, wherein, the error log is run after fame Claim the output journal for including spcial character;
    Memory module, for storing under at least one error log to the specified directory of second server, wherein, described Two servers are used to check at least one error log under the specified directory.
  7. 7. device according to claim 6, which is characterized in that described device further includes:
    Execution module, for performing the processing routine of at least one first server;
    Generation module, for generating at least one output journal according to the processing routine;
    Output module in the case of there is exception in the processing routine, exports at least one error log, In, the spcial character is included in the title of the error log.
  8. 8. device according to claim 6, which is characterized in that the extraction module includes:
    Judgment module, for judging the title of at least one output journal whether comprising the spcial character;
    File extraction module in the case of including the spcial character in the title of at least one output journal, carries Take out at least one output journal.
  9. 9. device according to claim 6, which is characterized in that described device further includes:
    Date acquisition module, for obtaining the current date of the second server;
    Creation module, for establishment file to be pressed from both sides under the specified directory according to the current date.
  10. 10. device according to claim 9, which is characterized in that the memory module includes:
    File polling module, for the file under the specified directory of second server according to date inquiries;
    Log query module is generated in the date for checking under the file an at least first server At least one error log.
CN201611264051.0A 2016-12-30 2016-12-30 The method and apparatus for checking error log Pending CN108268353A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611264051.0A CN108268353A (en) 2016-12-30 2016-12-30 The method and apparatus for checking error log

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611264051.0A CN108268353A (en) 2016-12-30 2016-12-30 The method and apparatus for checking error log

Publications (1)

Publication Number Publication Date
CN108268353A true CN108268353A (en) 2018-07-10

Family

ID=62755350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611264051.0A Pending CN108268353A (en) 2016-12-30 2016-12-30 The method and apparatus for checking error log

Country Status (1)

Country Link
CN (1) CN108268353A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681929A (en) * 2011-03-15 2012-09-19 腾讯科技(深圳)有限公司 Webpage script error monitoring method and system
CN102780726A (en) * 2011-05-13 2012-11-14 中兴通讯股份有限公司 Log analysis method and log analysis system based on WEB platform
US8495430B2 (en) * 2008-09-22 2013-07-23 International Business Machines Corporation Generate diagnostic data for overdue thread in a data processing system
CN103473169A (en) * 2013-09-24 2013-12-25 北京京东尚科信息技术有限公司 Log file collection method and device
CN103488558A (en) * 2013-09-17 2014-01-01 北京思特奇信息技术股份有限公司 Device and method of automatically acquiring application anomalies based on LOG4J logging framework
CN104050075A (en) * 2013-03-11 2014-09-17 百度国际科技(深圳)有限公司 Test method and device for Andriod application program
CN105183625A (en) * 2015-08-31 2015-12-23 北京奇虎科技有限公司 Log data processing method and apparatus
CN105630650A (en) * 2015-12-25 2016-06-01 北京奇虎科技有限公司 Log processing method, device and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8495430B2 (en) * 2008-09-22 2013-07-23 International Business Machines Corporation Generate diagnostic data for overdue thread in a data processing system
CN102681929A (en) * 2011-03-15 2012-09-19 腾讯科技(深圳)有限公司 Webpage script error monitoring method and system
CN102780726A (en) * 2011-05-13 2012-11-14 中兴通讯股份有限公司 Log analysis method and log analysis system based on WEB platform
CN104050075A (en) * 2013-03-11 2014-09-17 百度国际科技(深圳)有限公司 Test method and device for Andriod application program
CN103488558A (en) * 2013-09-17 2014-01-01 北京思特奇信息技术股份有限公司 Device and method of automatically acquiring application anomalies based on LOG4J logging framework
CN103473169A (en) * 2013-09-24 2013-12-25 北京京东尚科信息技术有限公司 Log file collection method and device
CN105183625A (en) * 2015-08-31 2015-12-23 北京奇虎科技有限公司 Log data processing method and apparatus
CN105630650A (en) * 2015-12-25 2016-06-01 北京奇虎科技有限公司 Log processing method, device and system

Similar Documents

Publication Publication Date Title
US11971898B2 (en) Method and system for implementing machine learning classifications
US11196756B2 (en) Identifying notable events based on execution of correlation searches
CN110099059B (en) Domain name identification method and device and storage medium
CN109040252A (en) Document transmission method, system, computer equipment and storage medium
CN109328335A (en) Intelligence configuration discovery technique
CN106156289A (en) The method of the data in a kind of read-write object storage system and device
CN104424287B (en) Data query method and apparatus
CN101378396A (en) Phishing notification service
CN107147748A (en) File uploading method and device
CN103095530A (en) Method and system for sensitive information monitoring and leakage prevention based on front-end gateway
CN106484742A (en) Log processing method and device
CN106776851A (en) File structure method and apparatus
Park et al. Improving tor hidden service crawler performance
CN115333966A (en) Nginx log analysis method, system and equipment based on topology
CN105488191A (en) Data acquisition processing method and device based on big data information safety management operation and maintenance service platform
CN108876314B (en) Career professional ability traceable method and platform
CN110008462A (en) A kind of command sequence detection method and command sequence processing method
CN110417741A (en) A kind of method and apparatus of filtering safe group
CN110188291A (en) Document process based on proxy log
CN108228616A (en) Log information processing method, system and device
CN106933903A (en) It is applied to the storage method and device of distributed storage
CN109189681A (en) Data simulation method, client and system based on ajax
Vidya et al. Web mining-concepts and application
CN112714118A (en) Network flow detection method and device
CN108268353A (en) The method and apparatus for checking error log

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20180710

RJ01 Rejection of invention patent application after publication