Click here to expand

    Custom log parsing

    EventLog Analyzer's custom log parsing enables users to extract additional fields from logs by defining parser rules. This feature also allows the creation of custom formats and the definition of parser rules for the newly created formats.

    1. Creating custom log formats

    Navigate to Settings > Admin Settings > Custom Log Format.

    Custom log parsing
    • To create a new format, click Add Log Format.
    • A dialog box will appear; enter the new custom format name in the Format Name text box.
    • This will create a new log format based on the syslog type. File import type is also supported.
    • Custom log parsing
    • After creating the custom log format, a confirmation box will appear, providing options to create parser rules for the newly created format or navigate to "Manage Parser Rules" for creating new parser rules.
    • Custom log parsing
    • The newly created "Syslog" based format can be assigned to any syslog devices. This can be done by navigating to Settings > Devices > Syslog devices > Update > Device Type and update to newly created format.
    • Custom log parsing
    • The newly created "File import" based format can be assigned during file import.
    • Custom log parsing

    2. Creating parser rules for log formats

    • To create a parser rule, click on Add Parser Rule.
    • Custom log parsing
    • There are two methods available to extract the field: Regex and Delimiter.
    • Paste the log, click Save Changes, and select the field values to be extracted.
    • Provide a rule name and field name for the parser rule.
    • Custom log parsing
    • Utilize the 'Auto Identify' icon to recognize common fields and choose from appropriate working fields.
    • By clicking Add Open Attribute, you can enter both the field name and its value, making it easier for future searches.
    • A regular expression (regex) pattern will be generated, and this pattern is used to extract the field from the log.
    • The option Choose Another Pattern shows a different pattern generated to extract the given field.
    • Specify "apply this pattern only when" criteria for when to apply this parser rule.
    • Custom log parsing
    • Verify whether the generated pattern is extracting the field correctly by clicking Validate this pattern.
    • Clicking Validate this pattern opens a new window to verify the generated pattern with the recently collected 50 logs, matching it. If the pattern does not match, the logs will be categorized as unmatched. If the pattern proves ineffective, select a different pattern by clicking Choose another pattern and attempt to validate the pattern.
    • Custom log parsing Custom log parsing
    • Click Save Rule to save the rule.
    • Custom log parsing
    • Fields can also be extracted by changing the method to Delimiter. Users can specify the delimiter between each word, such as space, comma, tab, pipe, or enter a custom delimiter to extract the fields. Custom delimiter should be entered as symbols and not words. If the extracted fields work well for the log, users can provide a field name and save the rule.
    • Custom log parsing
    • View the fields and open attributes associated with a specific parser rule, along with the option to disable or enable that rule. Edit the parser rule as needed and delete it if necessary.
    • To add a parser rule for the predefined format, navigate to Settings > Custom Log Format > Predefined log format.
    • Custom log parsing

    3. Extracting fields by creating custom parser rules from the search tab

    • Extract additional fields directly from the search tab. Locate the Create Additional Fields icon on the right side of each log and click it.
    • Custom log parsing
    • The details of the log are displayed, and then select Extract Additional Fields.
    • Custom log parsing
    • Follow the steps mentioned in the above section for creating a parser rule.
    • Custom log parsing
    • The created parser rule can be viewed from the settings page.
    • Custom log parsing

    Note: Fields can be extracted using two ways for both predefined and custom formats: via search and via settings.

    Don't see what you're looking for?

    •  

      Visit our community

      Post your questions in the forum.

       
    •  

      Request additional resources

      Send us your requirements.

       
    •  

      Need implementation assistance?

      Try onboarding

       
    Get download link