Analyzing logs

Analyze logs using pattern discovery or direct queries. Start by opening a new chat.

Starting logs analyis

Pattern discovery

Use pattern discovery to get a high‑level overview of the types of logs a source is generating. Ask AI SRE to "analyze log patterns for the API service from the last 6 hours."

This is useful for understanding what data is available before you write specific queries. AI SRE returns the most frequent log patterns it finds, including counts and sample messages for each pattern.

Filter pattern discovery by:

  • Log level (e.g., error, warn)
  • Service (e.g., redis, mongodb)
  • Time range (relative or absolute)
  • Number of patterns to return, with a default of 30 and a maximum of 100.

Errors by service

Pattern discovery limitations

Pattern discovery works only on logs sources, not metrics or traces.

Charting data

Ask for inline charts to quickly visualize data and even add them to your dashboards.

Charting data in AI SRE

Direct queries

For more specific investigations, ask AI SRE to run a direct SQL query against your logs, metrics, or traces. You don't need to write the SQL yourself, for example:

Prompt example
@telemetry.example.com average response time over the last day
broken down by status code

Average response times

AI SRE will always try to present the data the best way possible, but you can always ask it to change the presentation, whether you're looking for a chart, a few samples of the data, or a table view.

You can even switch to Explore logs to continue the query manually.

Xnapper-2026-05-29-18.37.21.png