CN109617726A - Error log acquisition method and server - Google Patents

Error log acquisition method and server Download PDF

Info

Publication number
CN109617726A
CN109617726A CN201811531028.2A CN201811531028A CN109617726A CN 109617726 A CN109617726 A CN 109617726A CN 201811531028 A CN201811531028 A CN 201811531028A CN 109617726 A CN109617726 A CN 109617726A
Authority
CN
China
Prior art keywords
error log
terminal
goal systems
instruction
log
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
CN201811531028.2A
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201811531028.2A priority Critical patent/CN109617726A/en
Publication of CN109617726A publication Critical patent/CN109617726A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

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

Abstract

The invention discloses a kind of error log acquisition methods, this method comprises: error log acquisition instruction is sent to each goal systems/terminal according to default connection client information after receiving error log inquiry request;Then error log inquiry instruction is sent to each goal systems/terminal, and obtains the error log of each goal systems/terminal according to the path list of preset error log file store path.The present invention also provides a kind of device, server and computer readable storage mediums.Error log acquisition instruction is sent to each goal systems/terminal according to connection client information by error log acquisition method, device, server and computer readable storage medium provided by the invention, the error-logging information for inquiring the goal systems/terminal by error log inquiry instruction after each goal systems/terminal gets itself error log, to conveniently and efficiently inquire the error log of each goal systems/terminal.

Description

Error log acquisition method and server
Technical field
The present invention relates to the field of test technology more particularly to a kind of error log acquisition method, device, server and calculating Machine readable storage medium storing program for executing.
Background technique
In test process, the acquisition of error log is often carried out to test object, then passes through the wrong day of acquisition again Will information analysis goes out the problem or the root for tracing problem in test process.The process of existing acquisition error log The log information of the test object is typically acquired by the interactive interface input journal inquiry instruction of test object, then Error log is filtered out in log information.However, when test object be include multiple systems or terminal when, existing mistake Log collection method can not effectively execute the multiple system or terminal in the test process with test assignment Error log is accurately screened and is exported.
Summary of the invention
In view of this, the present invention proposes a kind of user's error log acquisition method, device, server and computer-readable deposits Storage media, can be according to system/end message inventory of the preset connection client information including all system/terminals by wrong day Will acquisition instruction is sent to each goal systems/terminal, gets itself error log in each goal systems/terminal Afterwards, pass through each target described in the path list list query of error log inquiry instruction and error log file store path System/terminal error-logging information, so that conveniently and efficiently inquiry is performed in unison with all goal systems/terminals of test assignment Error log.
Firstly, to achieve the above object, the present invention provides a kind of error log acquisition method, this method is applied to service Device, which comprises
Receive the error log inquiry request of user's input;According to the preset connecting pin letter including all system/terminals Error log inquiry instruction is sent respectively to each goal systems/terminal by the system of breath/end message inventory;According to default The error log file store path including all system/terminals path list and the error log inquiry instruction obtain Take the error log of each goal systems/terminal;The error log of each goal systems/terminal is sent to default Contact person.
Optionally, the connecting pin information includes: IP address, log listening port, username and password.
Optionally, the error log inquiry instruction include: time conditions inquiry instruction, instruction condition inquiry instruction and Identification condition inquiry instruction.
Optionally, it before described " error log inquiry instruction to be sent respectively to each goal systems/terminal ", also wraps It includes step: sending error log acquisition instruction to each goal systems/terminal;Receive each goal systems/terminal The error log of feedback obtains the message completed.
In addition, to achieve the above object, the present invention also provides a kind of error log acquisition device, described device includes:
Receiving module, for receiving the error log inquiry request of user's input;Sending module, for according to preset packet System/end message the inventory for including the connection client information of all system/terminals, error log inquiry instruction is sent respectively to often A goal systems/terminal;Module is obtained, for storing road according to the preset error log file including all system/terminals The path list of diameter and the error log inquiry instruction obtain the error log of each goal systems/terminal;It is described Sending module is also used to the error log of each goal systems/terminal being sent to preset contact person.
Optionally, the connecting pin information includes: IP address, log listening port, username and password.
Optionally, the error log inquiry instruction include: time conditions inquiry instruction, instruction condition inquiry instruction and Identification condition inquiry instruction.
Optionally, the sending module is also used to send error log acquisition instruction to each goal systems/end End;The receiving module is also used to receive each goal systems/terminal feedback error log and obtains the message completed.
Further, the present invention also proposes that a kind of server, the server include memory, processor, the storage The error log capture program that can be run on the processor is stored on device, the error log capture program is by the place It manages when device executes and realizes such as the step of above-mentioned error log acquisition method.
Further, to achieve the above object, the present invention also provides a kind of computer readable storage medium, the computers Readable storage medium storing program for executing is stored with error log capture program, and the error log capture program can be held by least one processor Row, so that at least one described processor is executed such as the step of above-mentioned error log acquisition method.
Compared to the prior art, error log acquisition method proposed by the invention, device, server and computer-readable Storage medium, can be according to system/end message inventory of the preset connection client information including all system/terminals by mistake Log acquisition instructions are sent to each goal systems/terminal, get itself error log in each goal systems/terminal Afterwards, pass through each target described in the path list list query of error log inquiry instruction and error log file store path System/terminal error-logging information, so that conveniently and efficiently inquiry is performed in unison with all goal systems/terminals of test assignment Error log.
Detailed description of the invention
Fig. 1 is the schematic diagram of the optional hardware structure of server one of the present invention;
Fig. 2 is the program module schematic diagram of one embodiment of error log capture program of the present invention;
Fig. 3 is the flow diagram of one embodiment of error log acquisition method of the present invention.
Appended drawing reference:
Testing service device 1
Memory 11
Processor 12
Network interface 13
Receiving module 201
Sending module 202
Obtain module 203
The object of the invention is realized, the embodiments will be further described with reference to the accompanying drawings for functional characteristics and advantage.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot It is interpreted as its relative importance of indication or suggestion or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment Art scheme can be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when technical solution Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims Protection scope within.
As shown in fig.1, being the schematic diagram of the optional hardware structure of testing service device 1 one of the present invention.
The testing service device 1 can be rack-mount server, blade server, tower server or cabinet-type service Device etc. calculates equipment, which can be independent server, be also possible to server composed by multiple servers Cluster.
In the present embodiment, the testing service device 1 may include, but be not limited only to, and company can be in communication with each other by system bus Connect memory 11, processor 12, network interface 13.
The testing service device 1 connects network (Fig. 1 is not marked) by network interface 13, passes through network connection to other clothes Business device or terminal such as database server or the end PC etc..The network can be intranet (Intranet), internet (Internet), global system for mobile communications (Global System of Mobile communication, GSM), broadband code Divide multiple access (Wideband Code Division Multiple Access, WCDMA), 4G network, 5G network, bluetooth (Bluetooth), the wirelessly or non-wirelessly network such as Wi-Fi, speech path network.
It should be pointed out that Fig. 1 illustrates only the testing service device 1 with component 11-13, it should be understood that simultaneously All components shown realistic are not applied, the implementation that can be substituted is more or less component.
Wherein, the memory 11 includes at least a type of readable storage medium storing program for executing, and the readable storage medium storing program for executing includes Flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), it is static with Machine accesses memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable Read memory (PROM), magnetic storage, disk, CD etc..In some embodiments, the memory 11 can be the survey Try the internal storage unit of server 1, such as the hard disk or memory of the testing service device 1.In further embodiments, described to deposit Reservoir 11 is also possible to the External memory equipment of the testing service device 1, such as the plug-in type that the testing service device 1 is equipped with is hard Disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, the memory 11 can also both include the internal storage unit of the testing service device 1 or wrap Include its External memory equipment.In the present embodiment, the memory 11 is installed on the behaviour of the testing service device 1 commonly used in storage Make system and types of applications software, such as the program code of error log capture program etc..In addition, the memory 11 can be with For temporarily storing the Various types of data that has exported or will export.
The processor 12 can be in some embodiments central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips.The processor 12 is commonly used in the control survey The overall operation of server 1 is tried, such as executes data interaction or the relevant control of communication and processing etc..In the present embodiment, institute It states processor 12 and is used to run the program code stored in the memory 11 or processing data, such as run the mistake Log collection program etc..
The network interface 13 may include radio network interface or wired network interface, which is commonly used in Communication connection is established between the testing service device 1 and other servers or terminal such as database server or the end PC.
In the present embodiment, when being installed in the testing service device 1 and running wrong log collection program, when the mistake Accidentally when the operation of log collection program, the testing service device 1 can be believed according to the preset connecting pin including all system/terminals Error log acquisition instruction is sent to each goal systems/terminal by the system of breath/end message inventory, in each target After system/terminal gets itself error log, pass through error log inquiry instruction and error log file store path The error-logging information of each goal systems/terminal described in path list list query, so that conveniently and efficiently inquiry collaboration is held The error log of all goal systems/terminals of row test assignment.
So far, oneself is through describing the application environment of each embodiment of the present invention and the hardware configuration and function of relevant device in detail Energy.In the following, above-mentioned application environment and relevant device will be based on, each embodiment of the invention is proposed.
Firstly, the present invention proposes a kind of error log capture program.
As shown in fig.2, being the Program modual graph of one embodiment of error log capture program of the present invention.
In the present embodiment, the error log capture program includes a series of computer journey being stored on memory 11 Sequence instruction, when the computer program instructions are executed by processor 12, the error log that various embodiments of the present invention may be implemented is adopted Collection operation.In some embodiments, the specific operation realized based on the computer program instructions each section, error log are adopted Collection program can be divided into one or more modules.For example, the error log capture program can be divided in Fig. 2 At receiving module 201, sending module 202 and obtain module 203.Wherein:
The receiving module 201, for receiving the error log inquiry request of user's input.
Due in the test assignment of some complexity, it usually needs testing service device 1 passes through mutual with multiple system/terminals Connection, then controls the multiple system/terminal and executes the same task jointly cooperatively.Accordingly for multiple The test of system/terminal, that is, detect whether normally synergistically execute certain function between each system/terminal of the entirety Energy or task.In the present embodiment, the testing service device 1 is provided the user with the multiple for controlling by interactive interface System/terminal, the interactive interface can be any system/terminal application software such as mobile phone in the multiple system/terminal App or web page etc., the control being also possible on other terminals being connect with the multisystem/terminal or testing service device Interface.When the multisystem/terminal executes test assignment and Bug the problems such as (defect, flaw, loophole) occurs, user is then needed Goal systems/the terminal for navigating to mistake generation, then obtains specific error-logging information.
Therefore, the receiving module 201 can directly receive user's input by the interactive interface of the testing service device 1 Error log inquiry request.Alternatively, when other terminals such as end PC that user is connected by the testing service device 1 makes requests When information input, the receiving module 201 then can receive the error log inquiry for being obtained and being sended over by the end PC Request.Such as: the scene of certain part article is bought in test on a mobile phone shopping APP, does not generate order after placing an order.Entirely placed an order The system that journey is related to includes product systems, acquiring system, ordering system, payment system etc..Therefore, these systems association is being tested When with executing shopping function, when user has found that test result is wrong, need to navigate to the specific system and mistake that mistake occurs Information needs that error log inquiry request can be sent to the testing service device 1, and then the receiving module 201 receives this and asks It asks.
The sending module 202, for system/end according to the preset connection client information including all system/terminals Error log inquiry instruction is sent respectively to each goal systems/terminal by client information inventory.
Specifically, after user sends error log inquiry request to the testing service device 1, the sending module 202 Before error log inquiry instruction is sent respectively to each goal systems/terminal, the sending module 202 can also be according to default Include all system/terminals connection client information system/end message inventory, send error log acquisition instruction to described Each goal systems/terminal, then, the receiving module 201 receive each goal systems/terminal feedback error log Obtain the message completed.Wherein, the connecting pin information includes: IP address, log listening port, username and password.
The IP address is that unique identifier, other equipment can be accurate according to the IP address in a network for the equipment Find out the equipment in ground;And the log listening port is then the interface for reading the log information of the equipment.In the present embodiment, Any equipment in more device systems is all respectively arranged with unique IP address and log listening port in advance.Example Such as: the IP address of the A equipment in multiple system/terminals is arranged to 10.1.1.82, and log listening port is arranged to 80;B is set Standby IP address is arranged to 10.1.1.83, and log listening port is arranged to 92;The IP address of C equipment is arranged to 10.1.1.84, log listening port is arranged to 56.Therefore, the testing service device 1 can be according to the IP address of each equipment And the log listening port of the corresponding IP address is directly targeted to corresponding system/terminal.Certainly, in other embodiments, The log listening port of A, B, C equipment may be set to be identical port, and unique identification of the IP address as equipment only passes through IP address just can recognize that corresponding equipment, and the port of every equipment can be it is identical, for example, every equipment can be set It is set to 0~65535 either end slogan.
In the present embodiment, error log acquisition instruction is sent to goal systems/terminal and is used for by the sending module 202 The acquisition that the goal systems/terminal carries out error log is controlled, therefore, the goal systems/terminal then may require that and be weighed Limit verifying.Such as, it is desirable that input username and password.Therefore, the testing service device 1 is previously provided with including including all systems System/terminal connects system/end message inventory of client information, and wherein connecting pin information includes: IP address, log monitoring end Mouth, username and password.Error log acquisition is sent according to the system/end message inventory in the sending module 202 to refer to It enables to each goal systems/terminal, the goal systems/terminal can then be obtained according to the error log acquisition instruction All error logs and storage are taken, then the receiving module 201 receives each goal systems/terminal feedback mistake The message that log acquisition is completed.
Specifically, the sending module 202 is according to the connection client information in the system/end message inventory by wrong day Will acquisition instruction is sent to goal systems/terminal, and the goal systems/terminal verifies the connection client information, works as institute It states in the correct situation of username and password in connection client information, then can execute corresponding error log and obtain, and obtain Error log is sent after the completion of taking and obtains the feedback message completed to the testing service device 1, and the receiving module 201 then receives The error log obtains the feedback message completed.Then, the sending module 202 is sent out to each goal systems/terminal Send error log inquiry instruction.
The acquisition module 203, for according to the preset error log file store path including all system/terminals Path list and the error log inquiry instruction obtain the error log of each goal systems/terminal.
Specifically, the completion that each goal systems/terminal is sent is received in the receiving module 201 obtain mistake After the feedback information of log information, error log inquiry instruction can also further be sent to described by the sending module 202 Each goal systems/terminal.Wherein, the error log inquiry instruction includes: time conditions inquiry instruction, instruction condition inquiry Instruction and identification condition inquiry instruction.The acquisition module 203 then can be according to the preset mistake including all system/terminals The path list of journal file store path and the error log inquiry instruction obtain each goal systems/terminal Error log.
In the present embodiment, the sending module 202 sends error log inquiry to each goal systems/terminal and refers to It enables, the target journaling look-up command includes time conditions inquiry instruction, instruction condition inquiry instruction and identification condition inquiry Instruction.Wherein, time conditions inquiry instruction refers to the instruction that log lookup is carried out according to time conditions, such as: user wants to look into Look for each goal systems/terminal such as 10:10-11:10 in some time range in the period for executing test Error-logging information, then user can input the look-up command such as " 10:10-11:10- log information ", then each mesh Mark system/terminal can search respectively the log letter of 10:10-11:10 period in the log information of all devices got Breath, is then sent to the testing service device 1 for the log information of the period.Instruction condition inquiry instruction refers to according to certain The coverage of one instruction carries out the instruction of log lookup as condition, such as: user wants to look up during the test, described When each goal systems/terminal log information caused by each equipment after executing M instruction, this can be inputted such as " M instruction- The look-up command of log information ", then each goal systems/terminal then searches M in all log informations got (wherein, log information will record each goal systems/terminal and execute survey for the initial position of instruction execution and end position Everything in trial business, also, the starting and ending position of each movement can with specific symbol, such as start and End), all log informations that M instructs initial position to end position are then found out, and by the start bit of M instruction execution It sets and is sent to the testing service device 1 with the log information generated in end position.Identification condition inquiry instruction refer to according to The unique identifier of family input carries out the instruction (including mistake, general to alert, grave warning) of log lookup as search criterion, Such as: when user wants to look up error-logging information, the look-up command such as " error- log information " can be inputted, it is then described Each goal systems/terminal can search respectively the log information including " error " field in all log informations got, Then select the log information of preset field range (such as 100 characters before and after " error " field) as error-logging information It is sent to the testing service device 1.
Certainly, the acquisition module 203 is according to the preset error log file store path including all system/terminals Path list and the error log inquiry instruction obtain the error log of each goal systems/terminal.Therefore, institute Testing service device 1 is stated in advance to be configured the goal systems/terminal progress error log store path.For example, wherein one The error log store path of a goal systems/terminal is preset as cd/data/tomacat/log/.Therefore, in the transmission mould After the error log inquiry instruction is sent to the goal systems/terminal by block 202, the goal systems/terminal is by corresponding mistake Accidentally log information is saved under the error log store path cd/data/tomacat/log/, then, the acquisition module 203 inquiry instructions sent according to goal systems/terminal store path and the sending module 202 are from the target system System/terminal directly acquires corresponding error log.
The sending module 202 is also used to for the error log of each goal systems/terminal being sent to preset It is people.
Specifically, the testing service device 1 is also previously provided with the contact method of specific contact person, for example, leader or The email address of person supervisor, phone number etc..Then, when the acquisition module 203 has got each goal systems/end After the error log at end, the sending module 202 then by the error log be sent to the contact person mailbox or with Short message mode is sent to the mobile phone of the contact person to remind.
It will be recalled from above that the testing service device 1 can be according to the preset connection client information including all system/terminals System/end message inventory error log acquisition instruction is sent to each goal systems/terminal, in each target system After system/terminal gets itself error log, pass through the road of error log inquiry instruction and error log file store path Diameter exception list inquires the error-logging information of each goal systems/terminal, so that conveniently and efficiently inquiry is performed in unison with The error log of all goal systems/terminals of test assignment.
Certainly, in other embodiments, an error log acquisition also can be set into the error log capture program Device, the device include the one-to-one functional module of all program modules of the error log capture program.The mistake Log acquisition apparatus can be used as independent functional unit and be attached on testing service device, in order to when executing software test to more A system/terminal carries out error log acquisition.
In addition, the present invention also proposes a kind of error log acquisition method, the method is applied to testing service device.
As shown in fig.3, being the flow diagram of one embodiment of error log acquisition method of the present invention.In the present embodiment In, the execution sequence of the step in flow chart shown in Fig. 3 can change according to different requirements, and certain steps can be omitted.
Step S500 receives the error log inquiry request of user's input.
Due in the test assignment of some complexity, it usually needs testing service device passes through mutual with multiple system/terminals Connection, then controls the multiple system/terminal and executes the same task jointly cooperatively.Accordingly for multiple The test of system/terminal, that is, detect whether normally synergistically execute certain function between each system/terminal of the entirety Energy or task.In the present embodiment, the testing service device is provided the user with the multiple for controlling by interactive interface System/terminal, the interactive interface can be any system/terminal application software such as mobile phone in the multiple system/terminal App or web page etc., the control being also possible on other terminals being connect with the multisystem/terminal or testing service device Interface.When the multisystem/terminal executes test assignment and Bug the problems such as (defect, flaw, loophole) occurs, user is then needed Goal systems/the terminal for navigating to mistake generation, then obtains specific error-logging information.
Therefore, the error log inquiry that user's input can be directly received by the interactive interface of the testing service device is asked It asks.It, then can be with alternatively, when for example the end PC makes requests information input to other terminals that user is connected by the testing service device Receive the error log inquiry request for being obtained and being sended over by the end PC.Such as: purchase is tested on a mobile phone shopping APP The scene for buying certain part article, does not generate order after placing an order.The system that entire lower single process is related to includes product systems, receives monosystem System, ordering system, payment system etc..Therefore, when testing these systematic collaborations execution shopping function, when user has found to test As a result wrong, it needs to navigate to the specific system and error message that mistake occurs, needs to send to the testing service device Error log inquiry request, then the testing service device then receives the request.
Step S502, according to it is preset including all system/terminals connection client information system/end message inventory, Error log inquiry instruction is sent respectively to each goal systems/terminal.
Specifically, after user sends error log inquiry request to the testing service device, the testing service device will Error log inquiry instruction is sent respectively to before each goal systems/terminal, can also be according to preset including all system/ends System/end message inventory of the connection client information at end, sends error log acquisition instruction to each goal systems/end Then end receives each goal systems/terminal feedback error log and obtains the message completed.Wherein, the connecting pin Information includes: IP address, log listening port, username and password.
The IP address is that unique identifier, other equipment can be accurate according to the IP address in a network for the equipment Find out the equipment in ground;And the log listening port is then the interface for reading the log information of the equipment.In the present embodiment, Any equipment in more device systems is all respectively arranged with unique IP address and log listening port in advance.Example Such as: the IP address of the A equipment in multiple system/terminals is arranged to 10.1.1.82, and log listening port is arranged to 80;B is set Standby IP address is arranged to 10.1.1.83, and log listening port is arranged to 92;The IP address of C equipment is arranged to 10.1.1.84, log listening port is arranged to 56.Therefore, the testing service device can be according to the IP address of each equipment And the log listening port of the corresponding IP address is directly targeted to corresponding system/terminal.Certainly, in other embodiments, The log listening port of A, B, C equipment may be set to be identical port, and unique identification of the IP address as equipment only passes through IP address just can recognize that corresponding equipment, and the port of every equipment can be it is identical, for example, every equipment can be set It is set to 0~65535 either end slogan.
In the present embodiment, error log acquisition instruction is sent to goal systems/terminal and is used for by the testing service device The acquisition that the goal systems/terminal carries out error log is controlled, therefore, the goal systems/terminal then may require that and be weighed Limit verifying.Such as, it is desirable that input username and password.Therefore, the testing service device is previously provided with including including all systems System/terminal connects system/end message inventory of client information, and wherein connecting pin information includes: IP address, log monitoring end Mouth, username and password.Error log acquisition instruction is sent according to the system/end message inventory in the testing service device After to each goal systems/terminal, the goal systems/terminal can then be obtained according to the error log acquisition instruction All error log and storage, then the testing service device receives each goal systems/terminal feedback wrong day Will obtains the message completed.
Specifically, the testing service device is according to the connection client information in the system/end message inventory by wrong day Will acquisition instruction is sent to goal systems/terminal, and the goal systems/terminal verifies the connection client information, works as institute It states in the correct situation of username and password in connection client information, then can execute corresponding error log and obtain, and obtain Error log is sent after the completion of taking obtains the feedback message completed to the testing service device.
Step S504, according to the path list of the preset error log file store path including all system/terminals And the error log inquiry instruction obtains the error log of each goal systems/terminal.
Specifically, the testing service device then receives each goal systems/terminal transmission error log and has obtained At feedback message, then error log inquiry instruction is further sent to each goal systems/terminal.Wherein, described Error log inquiry instruction includes: time conditions inquiry instruction, instruction condition inquiry instruction and identification condition inquiry instruction.Institute State path list and institute of the testing service device according to the preset error log file store path including all system/terminals State the error log that error log inquiry instruction obtains each goal systems/terminal.
In the present embodiment, the testing service device sends error log inquiry to each goal systems/terminal and refers to It enables, the target journaling look-up command includes time conditions inquiry instruction, instruction condition inquiry instruction and identification condition inquiry Instruction.Wherein, time conditions inquiry instruction refers to the instruction that log lookup is carried out according to time conditions, such as: user wants to look into Look for each goal systems/terminal such as 10:10-11:10 in some time range in the period for executing test Error-logging information, then user can input the look-up command such as " 10:10-11:10- log information ", then each mesh Mark system/terminal can search respectively the log letter of 10:10-11:10 period in the log information of all devices got Breath, is then sent to the testing service device for the log information of the period.Instruction condition inquiry instruction refers to according to certain The coverage of one instruction carries out the instruction of log lookup as condition, such as: user wants to look up during the test, described When each goal systems/terminal log information caused by each equipment after executing M instruction, this can be inputted such as " M instruction- The look-up command of log information ", then each goal systems/terminal then searches M in all log informations got (wherein, log information will record each goal systems/terminal and execute survey for the initial position of instruction execution and end position Everything in trial business, also, the starting and ending position of each movement can with specific symbol, such as start and End), all log informations that M instructs initial position to end position are then found out, and by the start bit of M instruction execution It sets and is sent to the testing service device with the log information generated in end position.Identification condition inquiry instruction refers to according to user The unique identifier of input carries out the instruction (including mistake, general to alert, grave warning) of log lookup, example as search criterion Such as: when user wants to look up error-logging information, the look-up command such as " error- log information " can be inputted, it is then described every A goal systems/terminal can search respectively the log information including " error " field in all log informations got, so The log information of preset field range (such as 100 characters before and after " error " field) is selected to send out as error-logging information afterwards It send to the testing service device.
Certainly, the testing service device is according to the preset error log file store path including all system/terminals Path list and the error log inquiry instruction obtain the error log of each goal systems/terminal.Therefore, institute Testing service device is stated in advance to be configured the goal systems/terminal progress error log store path.For example, one of them Goal systems/terminal error log store path is preset as cd/data/tomacat/log/.Therefore, the testing service device After the error log inquiry instruction is sent to the goal systems/terminal, the goal systems/terminal is by corresponding error log Under information preservation to the error log store path cd/data/tomacat/log/, then, the testing service device according to The store path and the inquiry instruction directly acquire corresponding error log from the goal systems/terminal.
The error log of each goal systems/terminal is sent to preset contact person by step S506.
Specifically, the testing service device is also previously provided with the contact method of specific contact person, for example, leader or The email address of supervisor, phone number etc..Then, when the testing service device has got each goal systems/terminal Error log after, then send the mailbox of the contact person for the error log or be sent to short message mode described The mobile phone of contact person is to remind.
The error log acquisition method that the present embodiment is proposed, can be according to the preset company including all system/terminals Error log acquisition instruction is sent to each goal systems/terminal by the system/end message inventory for connecing client information, described every After a goal systems/terminal gets itself error log, stored by error log inquiry instruction and error log file The error-logging information of each goal systems/terminal described in the path list list query in path, to conveniently and efficiently inquire It is performed in unison with the error log of all goal systems/terminals of test assignment.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of error log acquisition method is applied to testing service device, which is characterized in that the testing service device and multiple systems System/terminal communication connection, the method includes the steps:
Receive the error log inquiry request of user's input;
According to system/end message inventory of the preset connection client information including all system/terminals, error log is inquired Instruction is sent respectively to each goal systems/terminal;
According to the path list of the preset error log file store path including all system/terminals and the wrong day Will inquiry instruction obtains the error log of each goal systems/terminal;
The error log of each goal systems/terminal is sent to preset contact person.
2. error log acquisition method as described in claim 1, which is characterized in that the connecting pin information include: IP address, Log listening port, username and password.
3. error log acquisition method as described in claim 1, which is characterized in that the error log inquiry instruction includes: Time conditions inquiry instruction, instruction condition inquiry instruction and identification condition inquiry instruction.
4. error log acquisition method as described in claim 1, which is characterized in that described " by error log inquiry instruction It is sent respectively to each goal systems/terminal " before, it further comprises the steps of:
Error log acquisition instruction is sent to each goal systems/terminal;
It receives each goal systems/terminal feedback error log and obtains the message completed.
5. a kind of error log acquisition device, which is characterized in that described device includes:
Receiving module, for receiving the error log inquiry request of user's input;
Sending module, for according to it is preset including all system/terminals connection client information system/end message inventory, Error log inquiry instruction is sent respectively to each goal systems/terminal;
Module is obtained, for the path list according to the preset error log file store path including all system/terminals And the error log inquiry instruction obtains the error log of each goal systems/terminal;
The sending module is also used to the error log of each goal systems/terminal being sent to preset contact person.
6. error log acquisition device as claimed in claim 5, which is characterized in that the connecting pin information include: IP address, Log listening port, username and password.
7. error log acquisition device as claimed in claim 5, which is characterized in that the error log inquiry instruction includes: Time conditions inquiry instruction, instruction condition inquiry instruction and identification condition inquiry instruction.
8. error log acquisition device as claimed in claim 5, which is characterized in that
The sending module is also used to send error log acquisition instruction to each goal systems/terminal;
The receiving module is also used to receive each goal systems/terminal feedback error log and obtains the message completed.
9. a kind of server, which is characterized in that the server includes memory, processor, and being stored on the memory can The error log capture program run on the processor, it is real when the error log capture program is executed by the processor The step of existing error log acquisition method according to any one of claims 1-4.
10. a kind of computer readable storage medium, which is characterized in that the wrong log of computer-readable recording medium storage Capture program, the error log capture program can be executed by least one processor, so that at least one described processor is held Row is such as the step of error log acquisition method of any of claims 1-4.
CN201811531028.2A 2018-12-14 2018-12-14 Error log acquisition method and server Pending CN109617726A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811531028.2A CN109617726A (en) 2018-12-14 2018-12-14 Error log acquisition method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811531028.2A CN109617726A (en) 2018-12-14 2018-12-14 Error log acquisition method and server

Publications (1)

Publication Number Publication Date
CN109617726A true CN109617726A (en) 2019-04-12

Family

ID=66009419

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811531028.2A Pending CN109617726A (en) 2018-12-14 2018-12-14 Error log acquisition method and server

Country Status (1)

Country Link
CN (1) CN109617726A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110737707A (en) * 2019-09-06 2020-01-31 深圳前海金融资产交易所有限公司 Multi-system log searching method and device and computer readable storage medium
CN110740447A (en) * 2019-10-22 2020-01-31 福州汇思博信息技术有限公司 remote log grabbing method for Android terminal
CN110825741A (en) * 2019-10-30 2020-02-21 北京蜜莱坞网络科技有限公司 Quick query method and device for tracking log
CN111835562A (en) * 2020-07-01 2020-10-27 北京爱笔科技有限公司 Log uploading method, log query method and log query system
CN112199266A (en) * 2020-10-23 2021-01-08 中国第一汽车股份有限公司 Log transmission method and system for vehicle-mounted machine system, vehicle and storage medium
CN112422345A (en) * 2020-11-18 2021-02-26 青岛海尔科技有限公司 Log transmission method and device, storage medium and electronic device
CN114598694A (en) * 2022-02-10 2022-06-07 宝德计算机系统股份有限公司 File transmission method and BMC log collection system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060048004A1 (en) * 2004-08-30 2006-03-02 Norimi Kawashima Log collecting apparatus, image forming apparatus and computer-readable storage medium
JP2010122925A (en) * 2008-11-20 2010-06-03 Brother Ind Ltd Node device, node processing program, and log collecting method
CN105100128A (en) * 2014-04-24 2015-11-25 北京金山网络科技有限公司 Server cluster log acquiring and providing methods, log server and node server
CN107025166A (en) * 2017-04-27 2017-08-08 上海联影医疗科技有限公司 A kind of log collecting method and system
CN107451034A (en) * 2017-08-17 2017-12-08 浪潮软件股份有限公司 A kind of big data cluster log management apparatus, method and system
CN108365985A (en) * 2018-02-07 2018-08-03 深圳壹账通智能科技有限公司 A kind of cluster management method, device, terminal device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060048004A1 (en) * 2004-08-30 2006-03-02 Norimi Kawashima Log collecting apparatus, image forming apparatus and computer-readable storage medium
JP2010122925A (en) * 2008-11-20 2010-06-03 Brother Ind Ltd Node device, node processing program, and log collecting method
CN105100128A (en) * 2014-04-24 2015-11-25 北京金山网络科技有限公司 Server cluster log acquiring and providing methods, log server and node server
CN107025166A (en) * 2017-04-27 2017-08-08 上海联影医疗科技有限公司 A kind of log collecting method and system
CN107451034A (en) * 2017-08-17 2017-12-08 浪潮软件股份有限公司 A kind of big data cluster log management apparatus, method and system
CN108365985A (en) * 2018-02-07 2018-08-03 深圳壹账通智能科技有限公司 A kind of cluster management method, device, terminal device and storage medium

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110737707A (en) * 2019-09-06 2020-01-31 深圳前海金融资产交易所有限公司 Multi-system log searching method and device and computer readable storage medium
CN110740447A (en) * 2019-10-22 2020-01-31 福州汇思博信息技术有限公司 remote log grabbing method for Android terminal
CN110825741A (en) * 2019-10-30 2020-02-21 北京蜜莱坞网络科技有限公司 Quick query method and device for tracking log
CN110825741B (en) * 2019-10-30 2022-09-20 北京蜜莱坞网络科技有限公司 Quick query method and device for tracking log
CN111835562A (en) * 2020-07-01 2020-10-27 北京爱笔科技有限公司 Log uploading method, log query method and log query system
CN111835562B (en) * 2020-07-01 2023-10-17 北京爱笔科技有限公司 Log uploading method, log inquiring method and system
CN112199266A (en) * 2020-10-23 2021-01-08 中国第一汽车股份有限公司 Log transmission method and system for vehicle-mounted machine system, vehicle and storage medium
CN112199266B (en) * 2020-10-23 2022-11-29 中国第一汽车股份有限公司 Log transmission method and system for vehicle-mounted machine system, vehicle and storage medium
CN112422345A (en) * 2020-11-18 2021-02-26 青岛海尔科技有限公司 Log transmission method and device, storage medium and electronic device
CN114598694A (en) * 2022-02-10 2022-06-07 宝德计算机系统股份有限公司 File transmission method and BMC log collection system

Similar Documents

Publication Publication Date Title
CN109617726A (en) Error log acquisition method and server
US11201929B2 (en) On-line browsing preference management
CN106202117B (en) Data processing method and device and server
CN111835582B (en) Configuration method and device of Internet of things inspection equipment and computer equipment
US10120030B2 (en) Trace data recording system, trace data recording server, trace data recording method, and information storage medium
CN109391699B (en) Equipment network configuration method and device and server
CN108428099A (en) Field personnel staff attendance management-control method, application server and computer readable storage medium
CN108416485A (en) Method for identifying ID, electronic device and computer readable storage medium
CN109800639A (en) Insurance checking method and server based on big data
CN108681504A (en) Automated testing method, test server and computer readable storage medium
CN111199353B (en) Test method and test system
CN106961361A (en) From detection/processing method, apparatus and system
CN111092851A (en) Data verification method and device of Internet of things temperature detection equipment based on block chain
CN106330880A (en) Management method for address book and home gateway
CN111371645B (en) Method, system, computer equipment and storage medium for testing service connectivity
CN108616966B (en) Wireless networking method and device of air conditioning system
CN111835583B (en) Attribute inspection method and device for products of Internet of things and computer equipment
CN112416648A (en) Data verification method and device
CN108428097A (en) Independently enter department's method, application server and computer readable storage medium
CN109598531B (en) Monitoring code generation method and verification method
CN110069445A (en) Face image processing process, server and computer readable storage medium
CN112445504A (en) Equipment firmware upgrading method, device and system
CN108600296A (en) Merchant information processing method, device, electronic equipment and storage medium
CN113179181B (en) Data acquisition method, device and system, data processing device and electronic equipment
CN111633642B (en) Robot management method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190412

WD01 Invention patent application deemed withdrawn after publication