Log analysis method and system based on dynamic field template
A field template and parsing method technology, applied in the field of computer information, can solve the problems of the log identification mechanism being blunt, rigid, and unable to adapt to the change of log format, so as to achieve the effect of lowering the threshold of project implementation and improving the robustness.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0057] It mainly includes the following steps:
[0058] S001: From the existing set of dynamic field templates, search for the template with the highest degree of matching with the log to be parsed in terms of field name and position order and meet the threshold requirements, wherein the dynamic field template is used to record the fields contained in the log file name and positional order, to indicate the format of the log;
[0059] S002: Based on the matching position of the fields in the found template in the log to be parsed, perform field segmentation and content extraction on the log to be parsed;
[0060] S003: If the content length of the segmented field is greater than the threshold value, update the current template by adding new fields into the current template through human-computer interaction, and use the updated template to further analyze the log to be parsed;
[0061] S004: If no template whose matching degree satisfies the threshold requirement is found, ent...
Embodiment 2
[0063] Such as figure 1 As shown, Embodiment 2 first uses the traditional method to try to parse the log:
[0064] (1) S01: Use the traditional log parsing template based on regular expressions to match and identify the entire log format;
[0065] (2) S02: If the matching and recognition is successful, the log is parsed directly based on the template with a regular expression;
[0066] If the matching identification fails, the log parsing method based on the dynamic field template described in this disclosure is used instead for parsing, and the specific steps are as follows:
[0067] (3) S1: From the existing set of dynamic field templates, find the template with the highest matching degree with the log to be parsed in terms of field name and position order and meet the threshold requirements, wherein the dynamic field template is used to record the log file Included field names and positional order to indicate the format of the log.
[0068] An exemplary dynamic field tem...
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