Interface log configuration and structured storage method and system
A structured storage and structured technology, applied in the computer field, can solve problems such as difficulties in finding logs, downloading and opening, and finding problems, so as to reduce the workload of code development, facilitate quick location of problems, and ensure uniqueness.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0036] see figure 1 , figure 1 A schematic diagram of the steps of an interface log configuration and structured storage method provided by the embodiment of the present invention is as follows:
[0037] Step S100, receiving and analyzing the interface log storage request;
[0038] Specifically, the first preset rule may be a log filter condition, the second preset rule may be a structural rule, and the third preset rule may be a storage field rule.
[0039] In some implementations, the request information is received and stored in the interface log and analyzed. When the data size is relatively small, for example: tens of MB or hundreds of MB, etc., when the stand-alone processing is still tolerable, you can use awk, grep, sort , join, etc. for log parsing. If there is a slightly complicated logic, use a scripting language, such as perl, to solve it with regular expressions.
[0040] Step S110, according to the first preset rule of the interface log, it is judged whether t...
Embodiment 2
[0055] see figure 2 , figure 2 A schematic diagram of the detailed steps of an interface log configuration and structured storage method provided by the embodiment of the present invention is as follows:
[0056] Step S200, initiate an interface log storage request instruction.
[0057] Step S210, receiving and parsing the interface log storage request, receiving the log filter condition, structured rule and storage field rule of the interface log.
[0058] Step S220, according to the log filtering condition of the interface log, it is judged whether the interface log storage request satisfies the condition corresponding to the log filtering condition.
[0059] Step S230, acquiring structured information stored in the interface log according to the structure of the interface log.
[0060] Step S240, store the log information in the target database according to the interface log storage field rule.
[0061] Step S250, after saving the interface log information, judge whet...
Embodiment 3
[0064] see image 3 , image 3 A schematic diagram of an interface log configuration and structured storage system module provided by the embodiment of the present invention is as follows:
[0065] The interface processing module 10 is configured to initiate an interface log storage request instruction.
[0066] The interface log storage request receiving module 20 receives and parses the interface log storage request;
[0067] The interface log stores the first processing module 30, judges whether the interface log storage request satisfies the filter condition according to the first preset rule of the interface log, if it ends otherwise, if it is then proceed to the next step;
[0068] The interface log storage second processing module 40 converts the filtered interface log into structured information stored in the interface log according to the second preset rule of the interface log;
[0069] The interface log storage third processing module 50 stores the log informatio...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


