AI applications generate logs across agents, tools, model servers, and infrastructure resources. Finding relevant messages among routine events can make troubleshooting difficult.
AI Logs groups similar log messages into log templates and prioritizes templates that may indicate a problem. Instead of reviewing repeated messages individually, you can inspect a pattern, identify its source, and open the surrounding logs for more context.
Use AI Logs to:
- Identify potentially significant log patterns for an application.
- See how often a pattern occurs and when it last occurred.
- Find the resource that generated the messages.
- Investigate events before and after a failure in Logs Explorer.
Note
AI Logs helps prioritize investigation. A high critical probability score does not confirm a root cause, and an empty list does not prove that an application is healthy.
Before you begin
Make sure that:
- Log monitoring is enabled for your tenant.
- You have permission to View_Logs.
- You know which AI environment and application to investigate.
- You have identified an approximate time range for the reported issue.
When to use AI Logs
Use AI Logs when:
- The Critical Events card shows an AI Logs count greater than zero.
- Users report incorrect, incomplete, or slow responses, even though performance metrics appear normal.
- A trace, evaluation, or alert identifies a potential issue and you need supporting log details.
Investigate an issue
1. Select the application and time range
- Go to Infrastructure → AI Observability → AI Overview.
- Select the AI environment that runs the application.
- Choose a time range that includes the reported issue.
- In AI Evaluations By App, select the application name.
The selected time range determines which log occurrences are included in the investigation.
2. Open AI Logs
On the application page, either:
- Select the AI Logs tab, or
- Select the AI Logs count in the Critical Events card.
The list displays critical log templates associated with the application’s pods and services.
Note
The AI Logs count represents the number of critical log templates, not the number of individual log messages.3. Review the log templates
Start with the highest-ranked templates, then compare their messages and occurrence times with the reported symptoms.
| Column | Description |
|---|---|
| Crit. Prob. | The critical probability score, expressed as a percentage. Use it to prioritize templates for investigation. |
| Count | The number of times the template occurred on the resource during the selected time range. |
| Timestamp | The most recent occurrence of the template within the selected time range. |
| Example Event | A sample log message that matches the template. The sample may come from an earlier occurrence, so its embedded timestamp can differ from the Timestamp column. |
| Category | The reason the template was flagged. For example, keyword indicates that the message contains a recognized severity keyword. |
| Tags | Topics detected in the message, such as error, http, or timeout. +N indicates additional tags, which you can view by opening the template details. |
Understand critical probability
Critical probability helps identify log patterns that warrant attention. The score considers factors such as severity keywords and how unusual a pattern is for the resource.
Templates with scores above 50% are listed, with the highest scores first. A template with fewer occurrences can rank above a frequent template if the pattern is more unusual.
Use the score together with the message, occurrence count, timestamp, and other telemetry. Do not treat it as confirmation of an application’s failure or an issue’s impact.
4. Inspect the template details
Select a template row to open its details panel.
The panel provides the following information:
| Detail | Description |
|---|---|
| Log template | The shared structure of matching messages. Variable values are replaced with placeholders. |
| Critical probability, count, and category | The prioritization score, occurrence count, and classification shown in the list. |
| Resource Name and Resource UUID | The resource that generated the messages and its unique identifier. |
| Application and Service | The associated application and service, when reported. |
| Tags | The complete set of detected tags. |
| Example Event | The full text of a sample message matching the template. |
| View Related Logs | Opens Logs Explorer for the source resource around the latest occurrence. |
Template placeholders include:
<TS>— a timestamp.<NUM>— a number.<*>— a variable value.
These placeholders allow messages with different timestamps, numbers, or other values to be grouped into the same pattern.
5. Open related logs
In the details panel, select View Related Logs.
Logs Explorer opens with:
- A resource filter: The Resource UUID identifies the resource that generated the message.
- A focused time range: One minute before to one minute after the template’s latest occurrence.
- Logs across severity levels: Informational messages are included alongside errors to help you understand the surrounding activity.
There are two View Related Logs actions:
| Location | Scope |
|---|---|
| Above the AI Logs list | Opens logs for the AI environment across the full selected time range. |
| Inside a template's details panel | Opens logs for the selected resource around the latest occurrence. |
Use the template-level action for a focused investigation. Use the list-level action when you need broader context.
6. Review the event sequence
In Logs Explorer, locate the relevant error and read the messages before and after it.
Look for:
- The operation the application was performing before the failure.
- The agent, tool, or downstream service involved.
- Timeouts, connection failures, or other error details.
- Retries, fallback behavior, or subsequent processing.
- Evidence that the workflow continued without the expected result.
If necessary, adjust the time range or filters to investigate further. Correlate the findings with available traces, metrics, and evaluations before deciding on a corrective action.
Example: Investigate missing activity suggestions
This example illustrates how AI Logs can help investigate an incomplete application response.
Reported issue
A travel-planning application uses a supervisor agent to coordinate destination research, experience curation, and travel-plan synthesis.
Users report that generated plans no longer include activity suggestions. The application still responds, and its performance and error-rate indicators appear normal.
Find the relevant template
In the application’s AI Logs tab, a template contains the messages:
Experience curation microservice call failedRead timed out
In this example, the template has:
| Detail | Example value |
|---|---|
| Critical probability | 68.0% |
| Count | 34 occurrences |
| Category | keyword |
The repeated timeout is relevant to the reported missing suggestions, so it warrants further investigation.
Inspect the surrounding events
Open the template details, then select View Related Logs.
The displayed sequence shows:
| Stage | Observed behavior |
|---|---|
| Before the error | The supervisor completes destination research and delegates work to the experience-curation service. |
| At the error | The service call reports Read timed out (read timeout=0.001). |
| After the error | The supervisor continues to travel-plan synthesis without a retry visible in the displayed sequence. |
Interpret the findings
The logged timeout value is 0.001 seconds, or 1 millisecond. This short timeout is a likely contributor to the observed failure and should be checked against the service’s expected response time.
The subsequent processing is consistent with the reported incomplete plans: the workflow continues after the experience-curation call fails. However, the displayed sequence alone does not establish that every request is affected.
Validate the corrective action
Review the timeout and failure-handling configuration with the application owner. After making an appropriate change:
- Run representative travel-planning requests.
- Confirm that activity suggestions appear in the generated plans.
- Review fresh logs for recurring timeouts.
- Use traces, metrics, and evaluations, where available, to confirm the expected behavior.
Do not rely only on the template disappearing from AI Logs to confirm resolution.
Troubleshooting AI logs
For help resolving issues related to AI Logs, see Troubleshooting guide.