CN105988917A - Method and device for obtaining abnormal information - Google Patents
Method and device for obtaining abnormal information Download PDFInfo
- Publication number
- CN105988917A CN105988917A CN201510088039.8A CN201510088039A CN105988917A CN 105988917 A CN105988917 A CN 105988917A CN 201510088039 A CN201510088039 A CN 201510088039A CN 105988917 A CN105988917 A CN 105988917A
- Authority
- CN
- China
- Prior art keywords
- request
- line
- abnormal
- user
- network request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method and device for obtaining abnormal information, and belongs to the technical field of computers. The method comprises the steps as follows: a service log of an online service system is obtained; an abnormal network request is resolved from the service log; the abnormal network request is a user request executed when the online service system is abnormal; the abnormal network request is transmitted to an offline playback system; the offline playback system comprises an execution code which is consistent with that of the online service system and is used for executing the user request; and abnormal information when the offline playback system executes the abnormal network request is obtained. The network request with an error during execution of the online service system is put into the offline playback system which is consistent with the online service system to be re-executed, and the abnormal information is obtained, so that the influence on an online service environment is reduced; and the service quality of the online service system is improved.
Description
Technical field
It relates to field of computer technology, particularly to a kind of abnormal information acquisition methods and device.
Background technology
In any case leak, program properly functioning during test can be there is the most unavoidably in perfect network service system
Code when actually used it can also happen that exception, it is therefore necessary to obtain network service system at actual motion
During abnormal information, in order to it is carried out improving and upgrading by developer.
In the related, main abnormal by Sentry platform acquisition operating network service system generation
Time abnormal information.Wherein, Sentry platform includes Sentry client and Sentry server, exploit person
Member can be susceptible to insert at abnormal code the code of Sentry client in network service system, when
When code in network service system performs abnormal, Sentry client i.e. can be collected abnormal information and be sent to
Sentry server, developer can check the abnormal information collected in Sentry server.
Summary of the invention
Present disclose provides a kind of abnormal information acquisition methods and device.Described technical scheme is as follows:
First aspect, it is provided that a kind of abnormal information acquisition methods, described method includes:
Obtain the serve log of online service system;
Parsing abnormal network request from described serve log, described abnormal network request is described line
User's request that upper service system is performed when occurring abnormal;
Described abnormal network request is sent to playback system under line;Under described line, playback system comprises and institute
State online service systems compliant, for performing the execution code of user's request;
Obtain abnormal information when playback system under described line performs described abnormal network request.
Optionally, error code and described execution code during described abnormal information includes described execution code return
At least one in the error result returned.
Optionally, the serve log of described acquisition online service system, including:
Obtain the described serve log that section to schedule carries out splitting.
Optionally, described serve log comprises each user request that described online service system receives with
And described each user asks each self-corresponding return result, described from described serve log, parse exception
Network request, including:
Resolve each user described and ask the type of each self-corresponding return result;
It is described abnormal network request by the user's acquisition request corresponding to return result that type is error.
Second aspect, it is provided that a kind of abnormal information acquisition methods, described method includes:
The serve log of service system on call wire;
The described serve log of record is supplied to server under line, and described serve log is used for making under described line
Server parses abnormal network request from described serve log, is sent by described abnormal network request
To playback system under line, and obtain exception when playback system under described line performs described abnormal network request
Information;
Wherein, under described line, playback system comprises and described online service systems compliant, is used for performing user
The execution code of request.
Optionally, described serve log comprises each user request that described online service system receives with
And described each user asks each self-corresponding return result, described return result includes and described returns knot
The type of fruit.
Optionally, described method also includes:
Described serve log is split by section to schedule.
The third aspect, it is provided that a kind of abnormal information acquisition device, described device includes:
Log acquisition module, for obtaining the serve log of online service system;
Request analysis module, for parsing abnormal network request, described exception from described serve log
Network request be the user's request performed when occurring abnormal of described online service system;
Request sending module, for being sent to playback system under line by described abnormal network request;Described line
Lower playback system comprises and described online service systems compliant, for performing the execution code of user's request;
Abnormal information acquisition module, performs described abnormal network request for obtaining playback system under described line
Time abnormal information.
Optionally, error code and described execution code during described abnormal information includes described execution code return
At least one in the error result returned.
Optionally, described log acquisition module, for obtaining the described clothes that section to schedule carries out splitting
Business daily record.
Optionally, described request analysis module, including:
Analyzing sub-module, asks the type of each self-corresponding return result for resolving each user;
Obtain submodule, for being described by the user's acquisition request corresponding to return result that type is error
Abnormal network request;
Wherein, described serve log comprises each user described request that described online service system receives
And described each user asks each self-corresponding return result.
Fourth aspect, it is provided that a kind of abnormal information acquisition device, described device includes:
Logger module, the serve log of service system on call wire;
Daily record provides module, for the described serve log of record is supplied to server under line, described service
Daily record is for making server under described line parse abnormal network request from described serve log, by described
Abnormal network request is sent to playback system under line, and obtains the described exception of playback system execution under described line
Network request time abnormal information;
Wherein, under described line, playback system comprises and described online service systems compliant, is used for performing user
The execution code of request.
Optionally, described serve log comprises each user request that described online service system receives with
And described each user asks each self-corresponding return result, described return result includes and described returns knot
The type of fruit.
Optionally, described device also includes:
Daily record segmentation module, splits described serve log for section to schedule.
5th aspect, it is provided that a kind of abnormal information acquisition device, described device includes:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Obtain the serve log of online service system;
Parsing abnormal network request from described serve log, described abnormal network request is described line
User's request that upper service system is performed when occurring abnormal;
Described abnormal network request is sent to playback system under line;Under described line, playback system comprises and institute
State online service systems compliant, for performing the execution code of user's request;
Obtain abnormal information when playback system under described line performs described abnormal network request.
6th aspect, it is provided that a kind of abnormal information acquisition device, described device includes:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
The serve log of service system on call wire;
The described serve log of record is supplied to server under line, and described serve log is used for making under described line
Server parses abnormal network request from described serve log, is sent by described abnormal network request
To playback system under line, and obtain exception when playback system under described line performs described abnormal network request
Information;
Wherein, under described line, playback system comprises and described online service systems compliant, is used for performing user
The execution code of request.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect:
By obtaining the serve log of online service system, parsing abnormal network from this serve log please
Ask, be sent to the network request of this exception comprise and this online service systems compliant, be used for performing user
Playback system under the line performing code of request, obtains playback system under this line and performs the network request of this exception
Time abnormal information, online service system is performed the network request made mistakes and is put into and online service systems compliant
Line under playback system re-execute and obtain abnormal information, it is not necessary on line service system is easily sent out
Insert the code of Sentry client at raw abnormal code, reduce the impact on online service environment, carry
The service quality of high online service system.
It should be appreciated that it is only exemplary that above general description and details hereinafter describe, can not
Limit the disclosure.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet the present invention
Embodiment, and in description together for explaining the principle of the present invention.
Fig. 1 is according to the enforcement involved by a kind of abnormal information acquisition methods shown in exemplary partial embodiment
The schematic diagram of environment;
Fig. 2 is the flow chart according to a kind of abnormal information acquisition methods shown in an exemplary embodiment;
Fig. 3 is the flow chart according to a kind of abnormal information acquisition methods shown in an exemplary embodiment;
Fig. 4 is the flow chart according to a kind of abnormal information acquisition methods shown in an exemplary embodiment;
Fig. 5 is according to data flowchart during acquisition abnormal information shown in an exemplary embodiment;
Fig. 6 is the block diagram according to a kind of abnormal information acquisition device shown in an exemplary embodiment;
Fig. 7 is the block diagram according to a kind of abnormal information acquisition device shown in another exemplary embodiment;
Fig. 8 is the block diagram according to a kind of abnormal information acquisition device shown in an exemplary embodiment;
Fig. 9 is the block diagram according to a kind of abnormal information acquisition device shown in another exemplary embodiment;
Figure 10 is the block diagram according to a kind of abnormal information acquisition device shown in an exemplary embodiment.
Detailed description of the invention
Here in detail exemplary embodiment will be performed explanation, its example represents in the accompanying drawings.Following retouches
Stating when relating to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.
Embodiment described in following exemplary embodiment does not represent all embodiment party consistent with the present invention
Formula.On the contrary, they only with describe in detail in appended claims, the present invention some in terms of mutually one
The example of the apparatus and method caused.
Fig. 1 is according to involved by a kind of abnormal information acquisition methods shown in disclosure exemplary partial embodiment
The schematic diagram of implementation environment.This implementation environment includes: server 120 under line, aol server 140 and
At least one user terminal 160.
Under line, server 120 and aol server 140 can be a station server respectively, or by some
The server cluster of server composition, or a cloud computing service center.
Aol server 140 carries the online service system of the service that provides a user with, this online service system
Can receive and perform user's request that user terminal 160 sends, and perform knot to user terminal 160 return
Really.
Carrying wired place system next time under line in server 120, under this line, playback system comprises and online service
Systems compliant, for performing the execution code of user's request.
User terminal 160 can be smart mobile phone, panel computer, E-book reader or PC etc.
There is the terminal of network accessibility.
Aol server 140 by preferential or wireless network respectively with server under line 120 and at least
Individual terminal 160 is connected.
Optionally, in alternatively possible system environments, server 120 and aol server 140 under line
Can merge into same server entity (Fig. 1 is not shown), disclosure embodiment is to server 120 under line
With the deployment relation between aol server 140 does not limits.
Fig. 2 is the flow chart according to a kind of abnormal information acquisition methods shown in an exemplary embodiment.This is different
Often information getting method is under the line of implementation environment as shown in Figure 1 in server 120.As in figure 2 it is shown,
This abnormal information acquisition methods may comprise steps of.
In step 202., the serve log of online service system is obtained.
In step 204, parsing abnormal network request from this serve log, the network of this exception please
Ask user's request performed when occurring abnormal for this online service system.
In step 206, the network request of this exception is sent to playback system under line;Playback system under this line
System comprises and this online service systems compliant, for performing the execution code of user's request.
In a step 208, abnormal information when playback system under this line performs the network request of this exception is obtained.
Optionally, the mistake that the error code during this abnormal information includes this execution code and this execution code return
At least one in result by mistake.
Optionally, the serve log of this acquisition online service system, including:
Obtain this serve log that section to schedule carries out splitting.
Optionally, this serve log comprises each user request that this online service system receives and should
Each user asks each self-corresponding return result, should parse abnormal network request from this serve log,
Including:
Resolve this each user and ask the type of each self-corresponding return result;
By the network request that user's acquisition request is this exception corresponding to return result that type is error.
In sum, the abnormal information acquisition methods provided in disclosure embodiment, by obtaining online service
The serve log of system, parses abnormal network request from this serve log, please by the network of this exception
Ask and be sent to comprise and this online service systems compliant, under the line performing code performing user's request
Playback system, obtains abnormal information when playback system under this line performs the network request of this exception, by line
Service system perform the network request made mistakes be put into playback system under the line of online service systems compliant in again
Perform and obtain abnormal information, it is not necessary on line service system being susceptible at abnormal code insert
The code of Sentry client, reduces the impact on online service environment, improves the service of online service system
Quality.
Fig. 3 is the flow chart according to a kind of abnormal information acquisition methods shown in an exemplary embodiment.This is different
Often information getting method is in the aol server 140 of implementation environment as shown in Figure 1.As it is shown on figure 3,
This abnormal information acquisition methods may comprise steps of.
In step 302, the serve log of service system on call wire.
In step 304, this serve log of record being supplied to server under line, this serve log is used for
Server under this line is made to parse abnormal network request from this serve log, by the network request of this exception
It is sent to playback system under line, and obtains exception when playback system under this line performs the network request of this exception
Information, under this line, playback system comprises and this online service systems compliant, for performing holding of user's request
Line code.
Optionally, this serve log comprises each user request that this online service system receives and should
Each user asks each self-corresponding return result, includes the type of this return result in this return result.
Optionally, the method also includes:
This serve log is split by section to schedule.
In sum, the abnormal information acquisition methods provided in disclosure embodiment, by record online service
The serve log of system, and serve log is supplied to server under line, by server under line from this service day
Will parses abnormal network request, is sent to the network request of this exception comprise and this online service system
Unified cause, playback system under the line performing code performing user's request, obtaining playback under this line is
System performs the abnormal information during network request of this exception, and online service system performs the network request made mistakes
It is put into and re-executes and obtain abnormal information in playback system under the line of online service systems compliant, it is not necessary to
Being susceptible to insert at abnormal code the code of Sentry client on line in service system, it is right to reduce
The impact of online service environment, improves the service quality of online service system.
Fig. 4 is the flow chart according to a kind of abnormal information acquisition methods shown in an exemplary embodiment.This is different
Often information getting method is in implementation environment as shown in Figure 1.As shown in Figure 4, this abnormal information obtains
Method may comprise steps of.
In step 402, the serve log of service system on aol server call wire.
Aol server is disposed wired upper service system, the code of this online service system need not insert
Obtaining the code of abnormal information, aol server has only to add up the serve log of online service system.
Wherein, the serve log of aol server record comprises each user that online service system receives
Request and each user ask each self-corresponding return result, and aol server also distinguishes the class returning result
Type, and the type returning result is added in return result.Such as, user is performed when online service system
When asking normal, the type that can arrange return result is info, sends out when online service system performs user's request
During raw exception, the type that can arrange return result is error.
In step 404, this serve log is split by aol server section to schedule.
For the fastest exception found in online service system, do not affect record online service system simultaneously
The serve log of system, aol server, can be according to certain period of time (such as 1 when recording serve log
Individual hour) by serve log record in different files, the filename of serve log can according to start note
The time of record is named.
In a step 406, the serve log after segmentation is supplied to server under line by aol server.
The most recorded serve log completed actively can be sent to server under line by aol server, or,
Under line, server can also read the most recorded serve log completed from aol server.
In a step 408, under line, in the daily record of server analysis service, each user asks each self-corresponding return
The type of result, is that abnormal network please by the user's acquisition request corresponding to return result that type is error
Ask.
After under line, server obtains serve log, in analysis service daily record, each returns the result type of result,
If some result type is error, then it is abnormal network by user's acquisition request corresponding for this result type
Request.
In step 410, under line, the network request of this exception is sent to playback system under line by server, obtains
Take abnormal information when playback system under this line performs the network request of this exception.
Wherein, the mistake that the error code during this abnormal information includes this execution code and this execution code return
At least one in result.
Under this line, playback system comprises and this online service systems compliant, for performing the execution of user's request
Code.Unlike online service system, under line, the execution code in playback system is susceptible to mistake
Or the place of exception has also been previously inserted the code obtaining abnormal information, to obtain playback system execution under line
The abnormal information that abnormal network request is.
Refer to the data flowchart during acquisition abnormal information shown in Fig. 5, with holding of online lower playback system
As a example by line code inserts the code of Sentry client, aol server is arranged each provide a user with and ask
Seeking the N group online service system of service, aol server records each line according to certain time interval segmentation
The serve log of upper service system, each online service system in server extracts a upper time interval under line
Serve log, and from the serve log extracted, parse abnormal user request, and by abnormal user
Request is sent to playback system under line, playback system under the Sentry client capture line in playback system under line
Perform abnormal information when abnormal user asks, and the abnormal information captured is sent to Sentry service
Device, the developer of online service system can log in Sentry server, checks this in Sentry interface
A little abnormal informations.
Disclosure embodiment is carried out as a example by only under aol server and line, server is respectively independent server
Illustrating, in actual applications, under aol server and line, server can also be same server entity,
This is not limited by disclosure embodiment.
In sum, the abnormal information acquisition methods provided in disclosure embodiment, by obtaining online service
The serve log of system, parses abnormal network request from this serve log, please by the network of this exception
Ask and be sent to comprise and this online service systems compliant, under the line performing code performing user's request
Playback system, obtains abnormal information when playback system under this line performs the network request of this exception, by line
Service system perform the network request made mistakes be put into playback system under the line of online service systems compliant in again
Perform and obtain abnormal information, it is not necessary on line service system being susceptible at abnormal code insert
The code of Sentry client, reduces the impact on online service environment, improves the service of online service system
Quality.
Meanwhile, the abnormal information acquisition methods provided in disclosure embodiment, by playback system under line again
Perform abnormal user's request and obtain abnormal information, step and the online service system of abnormal information will be obtained
Decoupling, even if making a mistake or fault when obtaining abnormal information, also will not impact online service system,
Ensure that the reliability of online service.
Following for disclosure device embodiment, may be used for performing method of disclosure embodiment.For the disclosure
The details not disclosed in device embodiment, refer to method of disclosure embodiment.
Fig. 6 is the block diagram according to a kind of abnormal information acquisition device shown in an exemplary embodiment, and this is abnormal
Information acquisition device may be used for, under the line of implementation environment as shown in Figure 1 in server 120, performing such as 2 institutes
The step that under line in the method shown or as shown in Figure 4 method, server is corresponding.As shown in Figure 6, this is different
Often information acquisition device includes but not limited to: log acquisition module 601, request analysis module 602, request are sent out
Send module 603 and abnormal information acquisition module 604;
Described log acquisition module 601, for obtaining the serve log of online service system;
Described request analysis module 602, for parsing abnormal network request, institute from described serve log
State user's request performed when abnormal network request is described online service system generation exception;
Described request sending module 603, for being sent to playback system under line by described abnormal network request;
Under described line, playback system comprises and described online service systems compliant, for performing the execution of user's request
Code;
Described abnormal information acquisition module 604, performs described abnormal net for obtaining playback system under described line
Abnormal information during network request.
In sum, the abnormal information acquisition device provided in disclosure embodiment, by obtaining online service
The serve log of system, parses abnormal network request from this serve log, please by the network of this exception
Ask and be sent to comprise and this online service systems compliant, under the line performing code performing user's request
Playback system, obtains abnormal information when playback system under this line performs the network request of this exception, by line
Service system perform the network request made mistakes be put into playback system under the line of online service systems compliant in again
Perform and obtain abnormal information, it is not necessary on line service system being susceptible at abnormal code insert
The code of Sentry client, reduces the impact on online service environment, improves the service of online service system
Quality.
Fig. 7 is the block diagram according to a kind of abnormal information acquisition device shown in another exemplary embodiment, and this is different
Under often information acquisition device may be used for the line of implementation environment as shown in Figure 1 in server 120, perform such as 2
The step that under line in shown method or as shown in Figure 4 method, server is corresponding.As it is shown in fig. 7, should
Abnormal information acquisition device includes but not limited to: log acquisition module 601, request analysis module 602, request
Sending module 603 and abnormal information acquisition module 604;
Described log acquisition module 601 is arranged to be used for obtaining the serve log of online service system;
Described request analysis module 602 is arranged to be used for parsing abnormal network from described serve log
Request, user's request that described abnormal network request is performed when being described online service system generation exception;
Described request sending module 603 is arranged to be used for described abnormal network request is sent to line next time
Place system;Under described line, playback system comprises and described online service systems compliant, and being used for performing user please
The execution code asked;
Described abnormal information acquisition module 604 is arranged to be used for obtaining playback system under described line and performs described
Abnormal information during abnormal network request.
Optionally, error code and described execution code during described abnormal information includes described execution code return
At least one in the error result returned.
Optionally, described log acquisition module 601 is arranged to be used for obtaining section to schedule and carries out point
The described serve log cut.
Optionally, described request analysis module 602, including: analyzing sub-module 602a and acquisition submodule 602b;
Described analyzing sub-module is arranged to be used for resolving each user and asks the class of each self-corresponding return result
Type;
Described acquisition submodule is arranged to be used for the user's request corresponding to return result that type is error
It is retrieved as described abnormal network request;
Wherein, described serve log comprises each user described request that described online service system receives
And described each user asks each self-corresponding return result.
In sum, the abnormal information acquisition device provided in disclosure embodiment, by obtaining online service
The serve log of system, parses abnormal network request from this serve log, please by the network of this exception
Ask and be sent to comprise and this online service systems compliant, under the line performing code performing user's request
Playback system, obtains abnormal information when playback system under this line performs the network request of this exception, by line
Service system perform the network request made mistakes be put into playback system under the line of online service systems compliant in again
Perform and obtain abnormal information, it is not necessary on line service system being susceptible at abnormal code insert
The code of Sentry client, reduces the impact on online service environment, improves the service of online service system
Quality.
Meanwhile, the abnormal information acquisition device provided in disclosure embodiment, by playback system under line again
Perform abnormal user's request and obtain abnormal information, step and the online service system of abnormal information will be obtained
Decoupling, even if making a mistake or fault when obtaining abnormal information, also will not impact online service system,
Ensure that the reliability of online service.
Fig. 8 is the block diagram according to a kind of abnormal information acquisition device shown in an exemplary embodiment, and this is abnormal
Information acquisition device may be used in the aol server 140 of implementation environment as shown in Figure 1, performs such as 3 institutes
The step that aol server in the method shown or as shown in Figure 4 method is corresponding.As shown in Figure 8, this is different
Often information acquisition device includes but not limited to: logger module 801 and daily record provide module 802;
Described logger module 801 is arranged to be used for the serve log of service system on call wire;
Described daily record provides module 802 to be arranged to be used for the described serve log of record and is supplied under line clothes
Business device, described serve log is for making server under described line parse abnormal net from described serve log
Network is asked, and described abnormal network request is sent to playback system under line, and obtains playback system under described line
System performs abnormal information during described abnormal network request;
Wherein, under described line, playback system comprises and described online service systems compliant, is used for performing user
The execution code of request.
In sum, the abnormal information acquisition device provided in disclosure embodiment, by record online service
The serve log of system, and serve log is supplied to server under line, by server under line from this service day
Will parses abnormal network request, is sent to the network request of this exception comprise and this online service system
Unified cause, playback system under the line performing code performing user's request, obtaining playback under this line is
System performs the abnormal information during network request of this exception, and online service system performs the network request made mistakes
It is put into and re-executes and obtain abnormal information in playback system under the line of online service systems compliant, it is not necessary to
Being susceptible to insert at abnormal code the code of Sentry client on line in service system, it is right to reduce
The impact of online service environment, improves the service quality of online service system.
Fig. 9 is the block diagram according to a kind of abnormal information acquisition device shown in another exemplary embodiment, and this is different
During often information acquisition device may be used for the aol server 140 of implementation environment as shown in Figure 1, perform such as 3
The step that aol server in shown method or as shown in Figure 4 method is corresponding.As it is shown in figure 9, should
Abnormal information acquisition device includes but not limited to: logger module 801 and daily record provide module 802;
Described logger module 801 is arranged to be used for the serve log of service system on call wire;
Described daily record provides module 802 to be arranged to be used for the described serve log of record and is supplied under line clothes
Business device, described serve log is for making server under described line parse abnormal net from described serve log
Network is asked, and described abnormal network request is sent to playback system under line, and obtains playback system under described line
System performs abnormal information during described abnormal network request;
Wherein, under described line, playback system comprises and described online service systems compliant, is used for performing user
The execution code of request.
Optionally, described serve log comprises each user request that described online service system receives with
And described each user asks each self-corresponding return result, described return result includes and described returns knot
The type of fruit.
Optionally, described device also includes: daily record segmentation module 803;
Described daily record segmentation module 803 is arranged to be used for section to schedule and carries out described serve log
Segmentation.
In sum, the abnormal information acquisition device provided in disclosure embodiment, by record online service
The serve log of system, and serve log is supplied to server under line, by server under line from this service day
Will parses abnormal network request, is sent to the network request of this exception comprise and this online service system
Unified cause, playback system under the line performing code performing user's request, obtaining playback under this line is
System performs the abnormal information during network request of this exception, and online service system performs the network request made mistakes
It is put into and re-executes and obtain abnormal information in playback system under the line of online service systems compliant, it is not necessary to
Being susceptible to insert at abnormal code the code of Sentry client on line in service system, it is right to reduce
The impact of online service environment, improves the service quality of online service system.
Meanwhile, the abnormal information acquisition device provided in disclosure embodiment, by playback system under line again
Perform abnormal user's request and obtain abnormal information, step and the online service system of abnormal information will be obtained
Decoupling, even if making a mistake or fault when obtaining abnormal information, also will not impact online service system,
Ensure that the reliability of online service.
Figure 10 is the block diagram according to a kind of abnormal information acquisition device 1000 shown in an exemplary embodiment.
This device 1000 can be different and produce bigger difference because of configuration or performance, can include one or one with
Upper central processing unit (central processing units, CPU) 1022 is (such as, at one or more
Reason device) and memorizer 1032, one or more storage application program 1042 or storages of data 1044
Medium 1030 (such as one or more mass memory units).Wherein, memorizer 1032 and storage are situated between
Matter 1030 can be of short duration storage or persistently store.The program being stored in storage medium 1030 can include one
Individual or more than one module (diagram does not marks), each module can include a series of instruction behaviour in device
Making, this series of command operating may be used for realizing all or part of step of method as shown in figures 2 and 3,
Or, whole for realize under aol server in method as shown in Figure 4 or line performed by server
Or part steps.Further, central processing unit 1022 could be arranged to communicate with storage medium 1030,
Device 1000 performs a series of command operatings in storage medium 1030.
Device 1000 can also include one or more power supplys 1026, one or more wired or nothings
Wired network interface 1050, one or more input/output interfaces 1058, one or more keyboards
1056, and/or, one or more operating systems 1041, such as Windows ServerTM, Mac OS
XTM, UnixTM, LinuxTM, FreeBSDTM etc..
About the device in above-described embodiment, wherein modules performs the concrete mode of operation relevant
The embodiment of the method performs detailed description, explanation will be not set forth in detail herein.
It should be appreciated that the invention is not limited in accurate knot described above and illustrated in the accompanying drawings
Structure, and various modifications and changes can performed without departing from the scope.The scope of the present invention is only by appended
Claim limits.
Claims (16)
1. an abnormal information acquisition methods, it is characterised in that described method includes:
Obtain the serve log of online service system;
Parsing abnormal network request from described serve log, described abnormal network request is described line
User's request that upper service system is performed when occurring abnormal;
Described abnormal network request is sent to playback system under line;Under described line, playback system comprises and institute
State online service systems compliant, for performing the execution code of user's request;
Obtain abnormal information when playback system under described line performs described abnormal network request.
Method the most according to claim 1, it is characterised in that described abnormal information includes described execution
Error code in code and at least one in the error result of described execution code return.
Method the most according to claim 1, it is characterised in that the clothes of described acquisition online service system
Business daily record, including:
Obtain the described serve log that section to schedule carries out splitting.
Method the most according to claim 1, it is characterised in that comprise described line in described serve log
Each user request and each user described that upper service system receives ask each self-corresponding return to be tied
Really, described from described serve log, parse abnormal network request, including:
Resolve each user described and ask the type of each self-corresponding return result;
It is described abnormal network request by the user's acquisition request corresponding to return result that type is error.
5. an abnormal information acquisition methods, it is characterised in that described method includes:
The serve log of service system on call wire;
The described serve log of record is supplied to server under line, and described serve log is used for making under described line
Server parses abnormal network request from described serve log, is sent by described abnormal network request
To playback system under line, and obtain exception when playback system under described line performs described abnormal network request
Information;
Wherein, under described line, playback system comprises and described online service systems compliant, is used for performing user
The execution code of request.
Method the most according to claim 5, it is characterised in that comprise described line in described serve log
Each user request and each user described that upper service system receives ask each self-corresponding return to be tied
Really, described return result includes the type of described return result.
Method the most according to claim 5, it is characterised in that described method also includes:
Described serve log is split by section to schedule.
8. an abnormal information acquisition device, it is characterised in that described device includes:
Log acquisition module, for obtaining the serve log of online service system;
Request analysis module, for parsing abnormal network request, described exception from described serve log
Network request be the user's request performed when occurring abnormal of described online service system;
Request sending module, for being sent to playback system under line by described abnormal network request;Described line
Lower playback system comprises and described online service systems compliant, for performing the execution code of user's request;
Abnormal information acquisition module, performs described abnormal network request for obtaining playback system under described line
Time abnormal information.
Device the most according to claim 8, it is characterised in that described abnormal information includes described execution
Error code in code and at least one in the error result of described execution code return.
Device the most according to claim 8, it is characterised in that
Described log acquisition module, for obtaining the described serve log that section to schedule carries out splitting.
11. devices according to claim 8, it is characterised in that described request analysis module, including:
Analyzing sub-module, asks the type of each self-corresponding return result for resolving each user;
Obtain submodule, for being described by the user's acquisition request corresponding to return result that type is error
Abnormal network request;
Wherein, described serve log comprises each user described request that described online service system receives
And described each user asks each self-corresponding return result.
12. 1 kinds of abnormal information acquisition device, it is characterised in that described device includes:
Logger module, the serve log of service system on call wire;
Daily record provides module, for the described serve log of record is supplied to server under line, described service
Daily record is for making server under described line parse abnormal network request from described serve log, by described
Abnormal network request is sent to playback system under line, and obtains the described exception of playback system execution under described line
Network request time abnormal information;
Wherein, under described line, playback system comprises and described online service systems compliant, is used for performing user
The execution code of request.
13. devices according to claim 12, it is characterised in that comprise described in described serve log
Each user request and each user described that online service system receives ask each self-corresponding return to be tied
Really, described return result includes the type of described return result.
14. devices according to claim 12, it is characterised in that described device also includes:
Daily record segmentation module, splits described serve log for section to schedule.
15. 1 kinds of abnormal information acquisition device, it is characterised in that described device includes:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Obtain the serve log of online service system;
Parsing abnormal network request from described serve log, described abnormal network request is described line
User's request that upper service system is performed when occurring abnormal;
Described abnormal network request is sent to playback system under line;Under described line, playback system comprises and institute
State online service systems compliant, for performing the execution code of user's request;
Obtain abnormal information when playback system under described line performs described abnormal network request.
16. 1 kinds of abnormal information acquisition device, it is characterised in that described device includes:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
The serve log of service system on call wire;
The described serve log of record is supplied to server under line, and described serve log is used for making under described line
Server parses abnormal network request from described serve log, is sent by described abnormal network request
To playback system under line, and obtain exception when playback system under described line performs described abnormal network request
Information;
Wherein, under described line, playback system comprises and described online service systems compliant, is used for performing user
The execution code of request.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510088039.8A CN105988917B (en) | 2015-02-26 | 2015-02-26 | Abnormal information acquisition method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510088039.8A CN105988917B (en) | 2015-02-26 | 2015-02-26 | Abnormal information acquisition method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105988917A true CN105988917A (en) | 2016-10-05 |
| CN105988917B CN105988917B (en) | 2020-08-04 |
Family
ID=57038712
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510088039.8A Active CN105988917B (en) | 2015-02-26 | 2015-02-26 | Abnormal information acquisition method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105988917B (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107580050A (en) * | 2017-09-05 | 2018-01-12 | 成都知道创宇信息技术有限公司 | A kind of server rolls back method during generation server 500 |
| CN107678914A (en) * | 2017-09-13 | 2018-02-09 | 咪咕音乐有限公司 | A kind of log processing method and device, storage medium |
| CN115098378A (en) * | 2022-06-28 | 2022-09-23 | 平安银行股份有限公司 | Method and device for classifying and aggregating log segments based on abnormal breakpoints |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060098622A1 (en) * | 2004-11-05 | 2006-05-11 | Vicotel, Inc. | Architecture for a multi-media session controlled network |
| CN101438255A (en) * | 2004-12-07 | 2009-05-20 | 思科技术公司 | Network and application attack protection based on application layer message inspection |
| CN103034578A (en) * | 2011-09-29 | 2013-04-10 | 北京新媒传信科技有限公司 | Application data monitoring method and device |
| CN103795762A (en) * | 2012-11-01 | 2014-05-14 | 百度在线网络技术(北京)有限公司 | Reverse agent test system and method |
-
2015
- 2015-02-26 CN CN201510088039.8A patent/CN105988917B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060098622A1 (en) * | 2004-11-05 | 2006-05-11 | Vicotel, Inc. | Architecture for a multi-media session controlled network |
| CN101438255A (en) * | 2004-12-07 | 2009-05-20 | 思科技术公司 | Network and application attack protection based on application layer message inspection |
| CN103034578A (en) * | 2011-09-29 | 2013-04-10 | 北京新媒传信科技有限公司 | Application data monitoring method and device |
| CN103795762A (en) * | 2012-11-01 | 2014-05-14 | 百度在线网络技术(北京)有限公司 | Reverse agent test system and method |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107580050A (en) * | 2017-09-05 | 2018-01-12 | 成都知道创宇信息技术有限公司 | A kind of server rolls back method during generation server 500 |
| CN107678914A (en) * | 2017-09-13 | 2018-02-09 | 咪咕音乐有限公司 | A kind of log processing method and device, storage medium |
| CN115098378A (en) * | 2022-06-28 | 2022-09-23 | 平安银行股份有限公司 | Method and device for classifying and aggregating log segments based on abnormal breakpoints |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105988917B (en) | 2020-08-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111522922B (en) | Log information query method and device, storage medium and computer equipment | |
| US9026853B2 (en) | Enhancing test scripts | |
| CN113505082B (en) | Application program testing method and device | |
| CN109309596B (en) | Pressure testing method and device and server | |
| US20180173617A1 (en) | System and method for testing program using user interaction replay | |
| CN108228444B (en) | Test method and device | |
| CN107526676B (en) | Cross-system test method and device | |
| CN112269744A (en) | System abnormity testing method and device, computer equipment and storage medium | |
| CN117370203B (en) | Automatic test method, system, electronic equipment and storage medium | |
| CN109408361A (en) | Monkey tests restored method, device, electronic equipment and computer readable storage medium | |
| CN114546814A (en) | Recording playback method, recording playback device and storage medium | |
| CN113590372A (en) | Log-based link tracking method and device, computer equipment and storage medium | |
| CN106713011A (en) | Method and system for obtaining test data | |
| CN116932347A (en) | Link tracking method, device and computer readable medium | |
| CN105988917A (en) | Method and device for obtaining abnormal information | |
| CN111552872A (en) | Method and system for restoring user behavior, electronic device and storage medium | |
| CN113836037B (en) | Interface interaction testing method, device, equipment and storage medium | |
| CN116860644A (en) | Automatic test method, device, computer equipment and storage medium | |
| CN118503075A (en) | Test case generation method, device, equipment and medium | |
| CN112256564B (en) | Application program running method and device and electronic equipment | |
| CN115509925A (en) | Automatic interface testing method and related device | |
| CN113742240A (en) | User interface testing method and device, storage medium and electronic equipment | |
| CN115495557A (en) | Question and answer processing method and equipment | |
| CN111262727A (en) | Service capacity expansion method, device, equipment and storage medium | |
| US9779011B2 (en) | Testing system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |