
This document outlines a process to enhance log management by parsing unformatted logs using OTTL rules in Groundcover. The steps leverage an AI agent to automatically generate parsing rules, facilitating efficient log search, dashboard creation, and query execution.
Start by identifying unformatted logs, which typically appear as raw strings of text.

Leverage structured logs to enhance searchability by key value, dashboard building, and executing efficient queries. Groundcover addresses this by parsing logs using OTTL rules, with automatic rule generation facilitated by an AI agent.

Begin the process by filtering out unformatted logs using the "format unknown" filter.

Further refine the search by focusing on a specific workload. In this example, we will concentrate on the task generator workload, where there is a significant number of logs with an unknown format.

Identify patterns within the logs. Use the "Actions" menu to select "Generate Parsing Rules." The AI agent will then sample logs that match the current search criteria.

The AI agent organizes logs by structure and generates OTTL rules for each distinct pattern. After the rules are generated, you can review them in the result section. Clicking on a log provides a side-by-side comparison of the log before and after parsing.

Evaluate the effectiveness of the rules. For instance, by selecting a rule, you can see extracted attributes that were initially not extracted. If satisfied, proceed to create the rules.

Arrange and prioritize the newly created rules since order affects the pipeline processing. Save the pipeline, and once applied, the rules are hot reloaded across all system sensors with no need for restarts.
