CN107678914A - A kind of log processing method and device, storage medium - Google Patents
A kind of log processing method and device, storage medium Download PDFInfo
- Publication number
- CN107678914A CN107678914A CN201710824214.4A CN201710824214A CN107678914A CN 107678914 A CN107678914 A CN 107678914A CN 201710824214 A CN201710824214 A CN 201710824214A CN 107678914 A CN107678914 A CN 107678914A
- Authority
- CN
- China
- Prior art keywords
- daily record
- parameter
- request
- url
- returning
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
- G06F11/3068—Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data format conversion
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9566—URL specific, e.g. using aliases, detecting broken or misspelled links
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Quality & Reliability (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of log processing method, including:In the data message of the selected daily record of extraction;According to the data message of selected daily record, following operate is performed:Extract the parameter corresponding to the returning an object value information in the daily record;After the parameter extracted is added into uniform resource position mark URL corresponding with the returning an object value information;The URL with the URL of the parameter corresponding to the returning an object value information as network request corresponding with selected daily record will be carried;Or, extract the parameter corresponding to the request object information in the daily record, based on the parameter generation extracted parameter form corresponding with the request object, the URL using the parameter form as network request corresponding to selected daily record corresponding with the request object information;Network request corresponding to daily record based on the selection, initiate request operation.The invention also discloses a kind of log processing device and storage medium.
Description
Technical field
The present invention relates to the communication technology, more particularly to a kind of log processing method and device, storage medium.
Background technology
In the prior art, user generally captures backstage daily record, then the daily record to grabbing first in Check System problem
Progress daily record printing, the information that the daily record grabbed is converted into being made up of message header and message body, and then by message header
It is reconstructed with message body, realizes and reappear network request, and initiate to ask according to the network request of reproduction by instrument or script
Operation is asked, to reach the effect for reappearing scene process, but by the way that message header and message body are reconstructed, realizes processing network
The process of request needs to be manually completed by user, not only less efficient, and influences the usage experience of user.
Invention chapters and sections
In view of this, the embodiment of the present invention it is expected to provide a kind of log processing method and device, storage medium, can be automatic
The daily record grabbed is converted into network request, without user's manual switch.
To reach above-mentioned purpose, what the technical scheme of the embodiment of the present invention was realized in:
The embodiments of the invention provide a kind of log processing method, including:
At least one daily record is selected in daily record;
The data message of the selected daily record of extraction;
According to the data message of selected daily record, following operate is performed:
The parameter corresponding to the returning an object value information in the daily record is extracted, the parameter extracted is added and the return
After URL corresponding to object information (URL Uniform Resource Locator), it will carry and returned with described
Return URLs of the URL of the parameter corresponding to object information as network request corresponding with selected daily record;
Or
The parameter corresponding to the request object information in the daily record is extracted, is asked based on the parameter generation extracted with described
Parameter form corresponding to object is sought, using the parameter form as selected daily record pair corresponding with the request object information
The URL for the network request answered;
Network request corresponding to daily record based on the selection, initiate request operation.
In such scheme, methods described also includes:
Receive network request and set journal format to limit instruction, limited and instructed according to the journal format, generated and protect
Deposit daily record corresponding with the network request;
The reception network request simultaneously sets journal format to limit instruction, including:
When invoking server interface is set, at least one following operation is performed according to the network request:
The conversion instruction that the request object is converted to corresponding string format is set;
The conversion instruction that the returning an object value is converted to corresponding string format is set.
In such scheme, described limited according to the journal format instructs, and generates and preserves corresponding with the network request
Daily record, including:
According to the conversion instruction that the request object is converted to corresponding string format, by the request object
Parameter corresponding to URL is stored in daily record corresponding with the request object.
In such scheme, described limited according to the journal format instructs, and generates and preserves corresponding with the network request
Daily record, including:
According to the conversion instruction that returning an object value is converted to corresponding string format, extract the returning an object value URL pairs
Parameter in the parameter form answered, the parameter extracted are stored in daily record corresponding with the returning an object value.
In such scheme, methods described also includes:
The result that the request of the initiation is operated, sends to the initiation page of the network request.
The embodiment of the present invention additionally provides a kind of log processing device, including:
Information extraction modules, for selecting at least one daily record in daily record;
Message processing module, for extracting the data message of selected daily record;
Described information processing module, for extracting the parameter corresponding to the returning an object value information in the daily record;It will be carried
After the parameter taken adds uniform resource position mark URL corresponding with the returning an object value information;
Described information processing module, for will carry with the URL of the parameter corresponding to the returning an object value information as
The URL of network request corresponding with selected daily record;
Described information processing module, for extracting the parameter corresponding to the request object information in the daily record, based on institute
The parameter generation of extraction parameter form corresponding with the request object;
Described information processing module, for using the parameter form as corresponding selected with the request object information
Daily record corresponding to network request URL;
Initiation module is asked, for network request corresponding to the daily record based on the selection, initiates request operation.
In such scheme, described device also includes:
Information receiving module, for receiving network request;
Daily record generation module, for setting journal format to limit instruction;
The daily record generation module, for generating and preserving daily record corresponding with the network request;
The daily record generation module includes:
Setting unit is instructed, the request object is converted to the conversion instruction of corresponding string format for setting;
The instruction setting unit, the conversion that the returning an object value is converted to corresponding string format for setting refer to
Order.
In such scheme,
The daily record generation module is additionally operable to:
Parameter corresponding to the URL of the request object is stored in daily record corresponding with the request object.
In such scheme,
The daily record generation module is additionally operable to:
Extract the parameter in parameter form corresponding to the URL of the returning an object value, the parameter extracted be stored in it is described
In daily record corresponding to returning an object value.
In such scheme, described device also includes:
Signal dispatcher module, for the result for operating the request of the initiation, send to the initiation of the network request
The page.
The embodiment of the present invention additionally provides a kind of log processing device, including:
Processor and the memory for storing the computer program that can be run on a processor,
Wherein, when the processor is used to run the computer program, following operate is performed:
At least one daily record is selected in daily record;
The data message of the selected daily record of extraction;
According to the data message of selected daily record, following operate is performed:
The parameter corresponding to the returning an object value information in the daily record is extracted, the parameter extracted is added and the return
After uniform resource position mark URL corresponding to object information, the URL with the parameter corresponding to the returning an object value information will be carried
URL as network request corresponding with selected daily record;
Or
The parameter corresponding to the request object information in the daily record is extracted, is asked based on the parameter generation extracted with described
Parameter form corresponding to object is sought, using the parameter form as selected daily record pair corresponding with the request object information
The URL for the network request answered;
Network request corresponding to daily record based on the selection, initiate request operation.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, is stored thereon with computer program, and it is special
Sign is that the computer program is executed by processor:At least one daily record is selected in daily record;
The data message of the selected daily record of extraction;
According to the data message of selected daily record, following operate is performed:
The parameter corresponding to the returning an object value information in the daily record is extracted, the parameter extracted is added and the return
After uniform resource position mark URL corresponding to object information, the URL with the parameter corresponding to the returning an object value information will be carried
URL as network request corresponding with selected daily record;
Or
The parameter corresponding to the request object information in the daily record is extracted, is asked based on the parameter generation extracted with described
Parameter form corresponding to object is sought, using the parameter form as selected daily record pair corresponding with the request object information
The URL for the network request answered;
Network request corresponding to daily record based on the selection, initiate request operation.
In the embodiment of the present invention, when needing to reappear network request processing, it is only necessary at least one is selected in the daily record
Bar daily record, the data message of selected daily record can be extracted;The daily record of the selection is converted into corresponding network request;And
Network request corresponding to daily record based on the selection, request operation is initiated, obtain the result of the request operation;
It can both avoid user manually to extract the network request of information generation extraction in this way, and improve the place of system
Manage efficiency;It can also avoid due to artificial incorrect operation, cause the network request of the extraction of generation error, more can be according to user's
It is required that the daily record of generation specific format, while this programme need not limit use environment, realize simple and applied widely.
Brief description of the drawings
Fig. 1 is one optional schematic flow sheet of log processing method provided in an embodiment of the present invention;
Fig. 2 is another optional schematic flow sheet of log processing method provided in an embodiment of the present invention;
Fig. 3 is one optional composition schematic diagram of log processing device provided in an embodiment of the present invention;
Fig. 4 is another optional composition schematic diagram of log processing device provided in an embodiment of the present invention.
Embodiment
The characteristics of in order to more fully hereinafter understand the embodiment of the present invention and technology chapter, below in conjunction with the accompanying drawings to this hair
The realization of bright embodiment is described in detail, appended accompanying drawing purposes of discussion only for reference, is not used for limiting the present invention.
Before the present invention will be described in further detail, the noun and term being related in the embodiment of the present invention are said
Bright, the noun and term being related in the embodiment of the present invention are applied to following explanation.
Network request:Operation (GET) is including but not limited to obtained, renewal operation (PUT), newly-built operation (POST), is deleted
(DELETE) four kinds of manifestation modes are operated, wherein, GET is used for Uniform Resource Identifier (the URI Uniform to acquisition
Resource Identifier) resource be shown, GET operation should not have any influence on service end;PUT is used to update
A resource on URI, if service end allows, PUT can be used for a newly-built resource;POST is used for newly-built resource, clothes
Business end creates a new object on specified URI, is returned the address of new resources as a part for response message;
DELETE is used to delete the URI resources specified.
Journal format limits instruction:Can when can be invoking server interface by character conversion method (to String),
All logical values by the server interface are converted to character string, and returning result.
The daily record of specific format:The daily record including but not limited to serialized.
Fig. 1 is one optional schematic flow sheet of log processing method provided in an embodiment of the present invention, as shown in figure 1, this
The optional flow of log processing method one that inventive embodiments provide comprises the following steps:
Step 101:Journal format is set to limit instruction in the server;
Specifically, when can call the server interface by setting, request object is converted into corresponding character string lattice
The conversion instruction of formula, and returning an object value is converted to the conversion instruction for corresponding to string format so that each invoking server connects
When mouth, the daily record of the server background generation is all comprising request header and request object information;
Step 102:Server receives network request;
Specifically, the network request includes but is not limited to front end request;
Step 103:Server according to the conversion instruction that object will be asked to be converted to corresponding string format, and/or
According to the conversion instruction that returning an object value is converted to corresponding string format, generate and preserve corresponding with the network request
Daily record;
Optionally, when the request of user is:
“/unlockGiftList.doVersion=0.8&ua=H5_migu&albumId=
When 600927015009000011/ ",
The journal format of server background generation is:
“/ReqU:GetUnlockedGiftListUrl [serviceId=600927015009000013ua=
Android_migu, version=1.0/ ";
By said procedure, can be referred to according to the conversion that the request object is converted into corresponding string format
Order, parameter corresponding to the URL of the request object is stored in daily record corresponding with the request object;
Further, additionally it is possible to according to the conversion instruction that returning an object value is converted to corresponding string format, described in extraction
Parameter in parameter form corresponding to the URL of returning an object value, the parameter extracted are stored in day corresponding with the returning an object value
In will.
Step 104:At least one daily record is selected in the daily record;
Step 105:Extract the data message of the daily record of the selection;
Step 106:According to the data message for the daily record extracted, the daily record of the selection is converted into corresponding net
Network is asked;
Specifically, the daily record of the selection is converted into corresponding network request includes:
The data message for the daily record extracted is formed to the URL character string corresponding with the network request;
Based on the URL character strings, network request corresponding with the URL character strings is generated;
In actual applications, when handling returning an object value information, extract corresponding to the returning an object value information in the daily record
Parameter;After the parameter extracted is added into uniform resource position mark URL corresponding with the returning an object value information;
The URL with the parameter corresponding to the returning an object value information will be carried as net corresponding with selected daily record
The URL of network request;
When object information is asked in processing, the parameter corresponding to the request object information in the daily record is extracted, based on institute
The parameter generation of extraction parameter form corresponding with the request object, believe using the parameter form as with the request object
The URL of network request corresponding to selected daily record corresponding to breath;
Optionally, can be according to the following Program Generating URL character string corresponding with the network request:
“/unlockGiftList.doVersion=0.8&ua=H5_migu&albumId=
600927015009000011/”;
After generating the URL character strings, for the URL character strings generated, secondary volume can be carried out by following procedure
Volume:
“/unlockGiftList.doVersion=0.8&ua=H5_migu&albumId=
600927015009000123/”;
Optionally, when the selection daily record more than one when, can batch each selection of generation daily record corresponding to
URL character strings, be first stored in the server, the network request corresponding with each URL character strings of generation afterwards;
Step 107:Based on network request corresponding to selected daily record, request operation is initiated;
Step 108:The result that the request of the initiation is operated, sends to the initiation page of the network request.
It can both avoid user manually to extract the network request of information generation extraction in this way, and improve the place of system
Manage efficiency;It can also avoid due to artificial incorrect operation, cause the network request of the extraction of generation error, user is by handling network
Request, it is possible to achieve to the investigation of system problem.
Fig. 2 is another optional schematic flow sheet of log processing method provided in an embodiment of the present invention, as shown in Fig. 2
Another optional flow of log processing method provided in an embodiment of the present invention comprises the following steps:
Step 201:Create log analysis Web platforms;
Specifically, when creating the log analysis Web platforms, when can call the server interface by setting,
The conversion instruction that object will be asked to be converted to corresponding string format, and returning an object value is converted into turning for corresponding string format
Change instruction so that when each invoking server interface, the daily record of the server background generation all comprising request header and is asked
Seek object information;
Optionally, the log analysis Web platforms can be created by following procedure:
||property__1487660548716||/v1.0/property/unlockGiftList.do||SIp:
10.25.150.73||AIp:218.200.160.82||ReqH:BaseHeader [channel=014000D, subchannel
=014000D, mgm_user_agent=null, IMSI=5R7CS8FW72, IMEI=
6f801dd8b0d55ccd393fe803448addd3, mgm_Network_type=03, mgm_Network_standard=
03, location_data=30.6698676660,104.1229614820, location_info=, logId=, uid=,
Msisdn=ip=218.200.160.82, ext_acc=null, ext_acc_type=null, idfa=null, cookie
=null, os=null, brand=null, mac=null, verify=null, timeStamp=null] | | ReqU:
GetUnlockedGiftListUrl [serviceId=600927015009000013, ua=Android_migu, version
=1.0];
Step 202:Select at least one daily record;
Step 203:Daily record to the selection parses, and Reseals into new request string;
Specifically, can be realized by following procedure by the message header in daily record, message body content changes into a http
The message header of request and message body:
GET
http://c.musicapp.migu.cn/MIGUM2.0/v1.0/property/unlockGiftList.do
Version=0.8&ua=H5_migu&albumId=600927015009000011
[no cookies]
Request Headers:
Connection:keep-alive
channel:014002C
subchannel:0140003
mgm-user-agent:HUAWEI G750
IMEI:865168022564842
IMSI:5R7CS8FW72
mgm-Network-type:03
mgm-Network-standard:03
uid:04d92431-699a-463c-8fc5-7c71001c3075
logId:ws2342
msisdn:18280083167
location-data:30.6698676660,104.1229614820
location-info:Southern branch road 4 is built in Chenghua District, Chengdu City, Sichuan Province
mgm-network-operators:02
mode:1
timestamp:11111
randkey:123
ipAddress:203.210.112.0
randomsessionkey:323232
Host:c.musicapp.migu.cn
User-Agent:Apache-HttpClient/
By said procedure, when handling returning an object value information, extract corresponding to the returning an object value information in the daily record
Parameter;After the parameter extracted is added into uniform resource position mark URL corresponding with the returning an object value information;
The URL with the parameter corresponding to the returning an object value information will be carried as net corresponding with selected daily record
The URL of network request;
When object information is asked in processing, the parameter corresponding to the request object information in the daily record is extracted, based on institute
The parameter generation of extraction parameter form corresponding with the request object, believe using the parameter form as with the request object
The URL of network request corresponding to selected daily record corresponding to breath;
Step 204:Network request is initiated according to the request string Resealed;
Step 205:The result of the request is sent to the initiation page of the request.
It can both avoid user manually to extract the network request of information generation extraction in this way, and improve the place of system
Manage efficiency;It can also avoid due to artificial incorrect operation, cause the network request of the extraction of generation error, user is by handling network
Request, it is possible to achieve to the investigation of system problem.
Fig. 3 is one optional composition schematic diagram of log processing device provided in an embodiment of the present invention, as shown in figure 3, this
The optional composition of log processing device one that inventive embodiments provide, including:
Information extraction modules 301, for selecting at least one daily record in daily record;
Message processing module 302, for extracting the data message of selected daily record;
Described information processing module 302, for extracting the parameter corresponding to the returning an object value information in the daily record;By institute
After the parameter of extraction adds uniform resource position mark URL corresponding with the returning an object value information;
Described information processing module 302, make for that will carry with the URL of the parameter corresponding to the returning an object value information
For the URL of network request corresponding with selected daily record;
Described information processing module 302, for extracting the parameter corresponding to the request object information in the daily record, it is based on
The parameter generation extracted parameter form corresponding with the request object;
Described information processing module 302, for using the parameter form as institute corresponding with the request object information
The URL of network request corresponding to the daily record of selection;
Initiation module 303 is asked, for network request corresponding to the daily record based on the selection, initiates request operation.
In practical application, described device also includes:
Information receiving module, for receiving network request;
Daily record generation module, for setting journal format to limit instruction;
The daily record generation module, for generating and preserving daily record corresponding with the network request;
The daily record generation module includes:
Setting unit is instructed, the request object is converted to the conversion instruction of corresponding string format for setting;
The instruction setting unit, the conversion that the returning an object value is converted to corresponding string format for setting refer to
Order.
Further, the daily record generation module includes:
Journal processing unit, for parameter corresponding to the URL of the request object to be stored in and the request object pair
In the daily record answered.
Journal processing unit, for extracting the parameter in parameter form corresponding to the URL of the returning an object value, extracted
Parameter is stored in daily record corresponding with the returning an object value.
Optionally, when the request of user is:
“/unlockGiftList.doVersion=0.8&ua=H5_migu&albumId=
When 600927015009000011/ ",
The journal format of server background generation is:
“/ReqU:GetUnlockedGiftListUrl [serviceId=600927015009000013ua=
Android_migu, version=1.0/ ";
By said procedure, the request object can be converted to corresponding character by the journal processing unit according to described
The conversion instruction of string format, parameter corresponding to the URL of the request object is stored in daily record corresponding with the request object
In;
Further, the journal processing unit can also be converted to turning for corresponding string format according to by returning an object value
Instruction is changed, extracts the parameter in parameter form corresponding to the URL of the returning an object value, the parameter extracted is stored in be returned with described
Return in daily record corresponding to object.
Described device also includes:
Signal dispatcher module, for the result for operating the request of the initiation, send to the initiation of the network request
The page.
Fig. 4 is another optional composition schematic diagram of log processing device provided in an embodiment of the present invention.As illustrated, day
Will processing unit 400 can be mobile phone, computer, digital broadcast terminal, information transceiving equipment, game console, flat board
Equipment, Medical Devices, body-building equipment, personal digital assistant etc..Log processing device 400 shown in Fig. 4 includes:At least one place
Manage device 401, memory 402, at least one network interface 404 and user interface 403.Each group in log processing device 400
Part is coupled by bus system 405.It is understood that bus system 405 is used to realize the connection communication between these components.
Bus system 405 is in addition to including data/address bus, in addition to power bus, controlling bus and status signal bus in addition.But in order to
For the sake of clear explanation, various buses are all designated as bus system 405 in Fig. 4.
Wherein, user interface 403 can include display, keyboard, mouse, trace ball, click wheel, button, button, sense of touch
Plate or touch-screen etc..
It is appreciated that memory 402 can be volatile memory or nonvolatile memory, may also comprise volatibility and
Both nonvolatile memories.Wherein, nonvolatile memory can be read-only storage (ROM, Read Only Memory),
Programmable read only memory (PROM, Programmable Read-Only Memory), Erasable Programmable Read Only Memory EPROM
(EPROM, Erasable Programmable Read-Only Memory), Electrically Erasable Read Only Memory
(EEPROM, Electrically Erasable Programmable Read-Only Memory), magnetic random access store
Device (FRAM, ferromagnetic random access memory), flash memory (Flash Memory), magnetic surface are deposited
Reservoir, CD or read-only optical disc (CD-ROM, Compact Disc Read-Only Memory);Magnetic surface storage can be
Magnetic disk storage or magnetic tape storage.Volatile memory can be random access memory (RAM, Random Access
Memory), it is used as External Cache.By exemplary but be not restricted explanation, the RAM of many forms can use, such as
Static RAM (SRAM, Static Random Access Memory), synchronous static RAM
(SSRAM, Synchronous Static Random Access Memory), dynamic random access memory (DRAM,
Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous
Dynamic Random Access Memory), double data speed synchronous dynamic RAM (DDRSDRAM,
Double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random
Access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronized links
Dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct rambus
Random access memory (DRRAM, Direct Rambus Random Access Memory).Description of the embodiment of the present invention is deposited
Reservoir 402 is intended to include these memories with any other suitable type.
Memory 402 in the embodiment of the present invention is used to store various types of data to support log processing device 400
Operation.The example of these data includes:For any computer program operated on log processing device 400, such as operate
System 4021 and application program 4022;Contact data;Telephone book data;Message;Picture;Video etc..Wherein, operating system
4021 include various system programs, such as ccf layer, core library layer, driving layer etc., for realizing various basic businesses and place
Manage hardware based task.Application program 4022 can include various application programs, such as media player (Media
Player), browser (Browser) etc., for realizing various applied business.Realize log processing method of the embodiment of the present invention
Program may be embodied in application program 4022.
The method that the embodiments of the present invention disclose can apply in processor 401, or be realized by processor 401.
Processor 401 is probably a kind of IC chip, has the disposal ability of signal.In implementation process, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 401 or the instruction of software form.Above-mentioned processing
Device 401 can be general processor, digital signal processor (DSP, Digital Signal Processor), or other can
Programmed logic device, discrete gate or transistor logic, discrete hardware components etc..Processor 401 can be realized or held
Disclosed each method, step and logic diagram in the row embodiment of the present invention.General processor can be microprocessor or appoint
What conventional processor etc..The step of method with reference to disclosed in the embodiment of the present invention, it can be embodied directly at hardware decoding
Reason device performs completion, or performs completion with the hardware in decoding processor and software module combination.Software module can be located at
In storage medium, the storage medium is located at memory 402, and processor 401 reads the information in memory 402, with reference to its hardware
The step of completing preceding method.
In the exemplary embodiment, log processing device 400 can be by one or more application specific integrated circuits
(ASIC, Application Specific Integrated Circuit), DSP, PLD (PLD,
Programmable Logic Device), CPLD (CPLD, Complex Programmable Logic
Device), field programmable gate array (FPGA, Field-Programmable Gate Array), general processor, control
Device, microcontroller (MCU, Micro Controller Unit), microprocessor (Microprocessor) or other electronics member
Part is realized, for performing the log processing method.
In the exemplary embodiment, the embodiment of the present invention additionally provides a kind of computer-readable recording medium, such as including
The memory 402 of computer program, above computer program can be performed by the processor 401 of log processing device 400, to complete
Step described in preceding method.Computer-readable recording medium can be FRAM, ROM, PROM, EPROM, EEPROM, Flash
The memories such as Memory, magnetic surface storage, CD or CD-ROM;Can also include one of above-mentioned memory or any group
The various equipment closed, such as mobile phone, computer, tablet device, personal digital assistant.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, is stored thereon with computer program, the meter
When calculation machine program is run by processor, perform:
At least one daily record is selected in daily record;
The data message of the selected daily record of extraction;
According to the data message of selected daily record, following operate is performed:
The parameter corresponding to the returning an object value information in the daily record is extracted, the parameter extracted is added and the return
After uniform resource position mark URL corresponding to object information, the URL with the parameter corresponding to the returning an object value information will be carried
URL as network request corresponding with selected daily record;
Or
The parameter corresponding to the request object information in the daily record is extracted, is asked based on the parameter generation extracted with described
Parameter form corresponding to object is sought, using the parameter form as selected daily record pair corresponding with the request object information
The URL for the network request answered;
Network request corresponding to daily record based on the selection, initiate request operation.
Receive network request and set journal format to limit instruction, limited and instructed according to the journal format, generated and protect
Deposit daily record corresponding with the network request;
The reception network request simultaneously sets journal format to limit instruction, including:
When invoking server interface is set, at least one following operation is performed according to the network request:
The conversion instruction that the request object is converted to corresponding string format is set;
The conversion instruction that the returning an object value is converted to corresponding string format is set.
According to the conversion instruction that the request object is converted to corresponding string format, by the request object
Parameter corresponding to URL is stored in daily record corresponding with the request object.
According to the conversion instruction that returning an object value is converted to corresponding string format, extract the returning an object value URL pairs
Parameter in the parameter form answered, the parameter extracted are stored in daily record corresponding with the returning an object value.
The result that the request of the initiation is operated, sends to the initiation page of the network request.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program production
Product.Therefore, the embodiment of the present invention can use the embodiment in terms of hardware embodiment, software implementation or combination software and hardware
Form.Moreover, the embodiment of the present invention can use the calculating for wherein including computer usable program code in one or more
The form for the computer program product implemented in machine usable storage medium (including magnetic disk storage and optical memory etc.).
The embodiment of the present invention is with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Flow chart and/or block diagram describe.It should be understood that can be by computer program instructions implementation process figure and/or block diagram
Each flow and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These calculating can be provided
Processing of the machine programmed instruction to all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices
Device is to produce a machine so that the instruction for passing through computer or the computing device of other programmable data processing devices produces
For realizing the function of being specified in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames
Device.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention, it is all
All any modification, equivalent and improvement made within the spirit and principles in the present invention etc., it should be included in the protection of the present invention
Within the scope of.
Claims (12)
1. a kind of log processing method, it is characterised in that methods described includes:
At least one daily record is selected in daily record;
The data message of the selected daily record of extraction;
According to the data message of selected daily record, following operate is performed:
The parameter corresponding to the returning an object value information in the daily record is extracted, the parameter extracted is added and the returning an object value
After uniform resource position mark URL corresponding to information, will carry with the URL of the parameter corresponding to the returning an object value information as
The URL of network request corresponding with selected daily record;
Or
The parameter corresponding to the request object information in the daily record is extracted, based on the parameter generation extracted and the request pair
As corresponding parameter form, using the parameter form as corresponding to selected daily record corresponding with the request object information
The URL of network request;
Network request corresponding to daily record based on the selection, initiate request operation.
2. according to the method for claim 1, it is characterised in that methods described also includes:
Receive network request simultaneously set journal format limit instruction, according to the journal format limit instruct, generate and preserve with
Daily record corresponding to the network request;
The reception network request simultaneously sets journal format to limit instruction, including:
When invoking server interface is set, at least one following operation is performed according to the network request:
The conversion instruction that the request object is converted to corresponding string format is set;
The conversion instruction that the returning an object value is converted to corresponding string format is set.
3. according to the method for claim 2, it is characterised in that described limited according to the journal format instructs, and generation is simultaneously
Daily record corresponding with the network request is preserved, including:
According to the conversion instruction that the request object is converted to corresponding string format, by the URL of the request object
Corresponding parameter is stored in daily record corresponding with the request object.
4. according to the method for claim 2, it is characterised in that described limited according to the journal format instructs, and generation is simultaneously
Daily record corresponding with the network request is preserved, including:
According to the conversion instruction that returning an object value is converted to corresponding string format, corresponding to the URL for extracting the returning an object value
Parameter in parameter form, the parameter extracted are stored in daily record corresponding with the returning an object value.
5. according to the method for claim 1, it is characterised in that methods described also includes:
The result that the request of the initiation is operated, sends to the initiation page of the network request.
6. a kind of log processing device, it is characterised in that described device includes:
Information extraction modules, for selecting at least one daily record in daily record;
Message processing module, for extracting the data message of selected daily record;
Described information processing module, for extracting the parameter corresponding to the returning an object value information in the daily record;By what is extracted
After parameter adds uniform resource position mark URL corresponding with the returning an object value information;
Described information processing module, for will carry with the URL of the parameter corresponding to the returning an object value information as with institute
The URL of network request corresponding to the daily record of selection;
Described information processing module, for extracting the parameter corresponding to the request object information in the daily record, based on being extracted
Parameter generation ask the corresponding parameter form of object with described;
Described information processing module, for using the parameter form as selected day corresponding with the request object information
The URL of network request corresponding to will;
Initiation module is asked, for network request corresponding to the daily record based on the selection, initiates request operation.
7. device according to claim 6, it is characterised in that described device also includes:
Information receiving module, for receiving network request;
Daily record generation module, for setting journal format to limit instruction;
The daily record generation module, for generating and preserving daily record corresponding with the network request;
The daily record generation module includes:
Setting unit is instructed, the request object is converted to the conversion instruction of corresponding string format for setting;
The instruction setting unit, the returning an object value is converted to the conversion instruction of corresponding string format for setting.
8. device according to claim 7, it is characterised in that
The daily record generation module is additionally operable to:
Parameter corresponding to the URL of the request object is stored in daily record corresponding with the request object.
9. device according to claim 7, it is characterised in that
The daily record generation module is additionally operable to:
The parameter in parameter form corresponding to the URL of the returning an object value is extracted, the parameter extracted is stored in and the return
In daily record corresponding to object.
10. device according to claim 6, it is characterised in that described device also includes:
Signal dispatcher module, for the result for operating the request of the initiation, send to the initiation page of the network request.
11. a kind of log processing device, it is characterised in that described device includes:
Processor and the memory for storing the computer program that can be run on a processor,
Wherein, when the processor is used to run the computer program, following operate is performed:
At least one daily record is selected in daily record;
The data message of the selected daily record of extraction;
According to the data message of selected daily record, following operate is performed:
The parameter corresponding to the returning an object value information in the daily record is extracted, the parameter extracted is added and the returning an object value
After uniform resource position mark URL corresponding to information, will carry with the URL of the parameter corresponding to the returning an object value information as
The URL of network request corresponding with selected daily record;
Or
The parameter corresponding to the request object information in the daily record is extracted, based on the parameter generation extracted and the request pair
As corresponding parameter form, using the parameter form as corresponding to selected daily record corresponding with the request object information
The URL of network request;
Network request corresponding to daily record based on the selection, initiate request operation.
12. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program quilt
Computing device:At least one daily record is selected in daily record;
The data message of the selected daily record of extraction;
According to the data message of selected daily record, following operate is performed:
The parameter corresponding to the returning an object value information in the daily record is extracted, the parameter extracted is added and the returning an object value
After uniform resource position mark URL corresponding to information, will carry with the URL of the parameter corresponding to the returning an object value information as
The URL of network request corresponding with selected daily record;
Or
The parameter corresponding to the request object information in the daily record is extracted, based on the parameter generation extracted and the request pair
As corresponding parameter form, using the parameter form as corresponding to selected daily record corresponding with the request object information
The URL of network request;
Network request corresponding to daily record based on the selection, initiate request operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710824214.4A CN107678914A (en) | 2017-09-13 | 2017-09-13 | A kind of log processing method and device, storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710824214.4A CN107678914A (en) | 2017-09-13 | 2017-09-13 | A kind of log processing method and device, storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107678914A true CN107678914A (en) | 2018-02-09 |
Family
ID=61135735
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710824214.4A Pending CN107678914A (en) | 2017-09-13 | 2017-09-13 | A kind of log processing method and device, storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107678914A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090222736A1 (en) * | 2008-02-29 | 2009-09-03 | Clark Bryan William | Systems and methods for a filter module for a browser history |
CN105530127A (en) * | 2015-12-10 | 2016-04-27 | 北京奇虎科技有限公司 | Method for processing network access request by proxy server and proxy server |
CN105988917A (en) * | 2015-02-26 | 2016-10-05 | 小米科技有限责任公司 | Method and device for obtaining abnormal information |
CN106126648A (en) * | 2016-06-23 | 2016-11-16 | 华南理工大学 | A kind of based on the distributed merchandise news reptile method redo log |
CN106254145A (en) * | 2016-09-06 | 2016-12-21 | 腾讯科技(深圳)有限公司 | network request tracking processing method and device |
-
2017
- 2017-09-13 CN CN201710824214.4A patent/CN107678914A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090222736A1 (en) * | 2008-02-29 | 2009-09-03 | Clark Bryan William | Systems and methods for a filter module for a browser history |
CN105988917A (en) * | 2015-02-26 | 2016-10-05 | 小米科技有限责任公司 | Method and device for obtaining abnormal information |
CN105530127A (en) * | 2015-12-10 | 2016-04-27 | 北京奇虎科技有限公司 | Method for processing network access request by proxy server and proxy server |
CN106126648A (en) * | 2016-06-23 | 2016-11-16 | 华南理工大学 | A kind of based on the distributed merchandise news reptile method redo log |
CN106254145A (en) * | 2016-09-06 | 2016-12-21 | 腾讯科技(深圳)有限公司 | network request tracking processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103607427B (en) | Method and device for information display | |
CN112182473B (en) | Page operation behavior playback method and device, computer equipment and storage medium | |
CN106874389A (en) | The moving method and device of data | |
US20160261699A1 (en) | Transferring cookie data to another domain | |
CN103927356B (en) | Ad blocking method and device | |
CN110196715A (en) | A kind of code generating system and method | |
CN104598232B (en) | A kind of Web applications striding equipment catches back method | |
CN101909207A (en) | Video playing method and device | |
CN107846426A (en) | The tracking and device of user trajectory in page access | |
CN106559289A (en) | The concurrent testing method and device of SSLVPN gateways | |
CN109670135A (en) | Multi-platform article publishing method and device and electronic equipment | |
CN109639719A (en) | A kind of auth method and device based on temporary identifier | |
CN107577622A (en) | Back end interface analogy method, equipment and storage medium | |
CN107589894A (en) | A kind of page turning method, device and storage medium | |
CN105519072A (en) | Multi-user conference system | |
CN107872713A (en) | Short processing system for video, method and device | |
CN107105103A (en) | A kind of information solicitation method and information solicitation device | |
CN109933742A (en) | Content of pages rearranges a volume method and device in a kind of process | |
CN105656979A (en) | Method for processing unstructured message, client, server, and platform | |
JP2006293455A (en) | Invalid data confirmation system | |
CN103747423B (en) | A kind of register method of terminal applies, device and system | |
CN103139049B (en) | Information interacting method | |
CN107678914A (en) | A kind of log processing method and device, storage medium | |
CN107770377A (en) | A kind of method of the establishment interactive voice mobile phone news client based on HTML5 | |
CN106504057A (en) | A kind of display methods of electronic gift and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180209 |
|
RJ01 | Rejection of invention patent application after publication |