A log parsing template and a log parsing method based on the template
A technology for parsing templates and logs. It is applied in the field of network log parsing. It can solve problems such as high maintenance costs, huge workload, and complex coding, and achieve the effects of reducing operation and maintenance costs, reducing workload, and improving work efficiency.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] refer to Figure 1~3 As shown, Embodiment 1 of the present invention provides a log parsing template for device log standardization.
[0047] A log will be generated during the use of each device, and the manufacturer of the device will provide a parameter correspondence table corresponding to the log.
example 1
[0048] Example 1: The log information is:
[0049] 192.168.179.1--[02 / Jul / 2018:18:24:17+0800]"GET / static / image / common / forum.gif HTTP / 1.1"304 0"http: / / 192.168.179.142 / forum.php ""Mozilla / 5.0(Windows NT 6.1;Win64;x64;rv:60.0)Gecko / 20100101Firefox / 60.0"
[0050] The parameter correspondence table of example 1 is as follows figure 2 shown.
example 2
[0051] Example 2: devid=0date="2017 / 09 / 12 12:02:47" dname=bangong logtype=9pri=5mod=logserver act=set ip=10.0.5.56port=514protocol=udp result=0fwlog=0
[0052] The log of each device corresponds to a parameter correspondence table, the parameter correspondence table includes the name of the parameter, the meaning of the parameter and the content of the parameter, and the log includes one or both of the name of the parameter and the content of the parameter , as in the above example 1, the log only includes the content of the parameter, and in example 2, the log includes the name of the parameter and the content of the parameter.
[0053]Since each log includes the IP address of the device, such as "192.168.179.1" in Example 1 and "10.0.5.56" in Example 2, the log of the device can be identified through the IP address in the log, so , the log parsing template corresponds to the IP address of the device, that is, corresponds to the device, and the log parsing template is used to...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com