# Activity Dashboard

The app ships with an **AI Agent Activity** dashboard, giving administrators an operational view of how the agent is being used across the organization.

Open it from the **Dashboards** menu in the Lynx AI Agent app.

> [!NOTE]
>
> The dashboard is available to administrators and to users with the [`lynx-ai-reporter`](<https://docs.trylynx.ai/usage/permissions/index.md#reporter-role>) role. It reads from the `_internal` index, which the `lynx-ai` role does not grant on its own.

## Panels

The dashboard is filtered by time range, user, and model, and is organized into sections:

- **Overview** - total requests, success rate, tokens consumed, unique users, average request duration, and errors. Click the errors count to inspect the most frequent error types and their distribution over time.
- **Activity & Models** - requests, tokens, and average duration over time, and the request distribution per model.
- **Token Usage** - token consumption per model, including cached prompt and reasoning tokens, how much of the prompt was served from the model provider's cache, and tokens spent on auxiliary tasks - the guardrail, chat titles, and compaction.
- **Chat Behavior & Tools** - total chats, requests per chat, steps and tool calls per request, tokens per request, and the tools the agent invoked most, with their success and rejection rates.
- **Latency** - time to first token, time per request, and step latency over time.
- **Context Window** - average and peak context size, context over time, [Infinite Chat](<https://docs.trylynx.ai/usage/chat-history/index.md#infinite-chat>) trims, compactions, and pruned tool results.
- **Retries** - requests retried after a [retryable error](<https://docs.trylynx.ai/usage/settings/index.md#retryable-errors>), the chats affected, retries over time before and during the response, and the errors retried most.
- **Users** - the most active users.
- **Skills** - skill activations with their success and rejection rates, in total and over time.
- **Connectors** - connector calls with their success and rejection rates, in total and over time.
- **Background Agents** - [background agent](<https://docs.trylynx.ai/usage/background-agents/index.md>) runs, their success rate, duration and tokens, a per-agent breakdown, runs over time by outcome, and the failures of runs and of triggers that didn't start a run.

## Data Source

The app writes a usage event to Splunk's `_internal` index for each request. The dashboard reads them with:

```text
index=_internal source=lynx_ai_agent sourcetype=lynx_ai_agent:usage
```

Events record the user, model, tools, skills, token counts, duration, and outcome of the request. Prompt and response content is not included.

Each event carries an `event` field naming what it describes:

| `event` | Written when |
| :--- | :--- |
| `request` | A generation finishes. Carries the total token counts, step count, and duration. Background agent runs add `trigger=background` and `background_agent`. |
| `step` | Each model call within a request. Carries its token counts (including cached and cache-write tokens), time to first token, and duration. |
| `tool` | The agent invokes a built-in or connector tool. |
| `skill` | The agent loads a skill. |
| `auxiliary` | A guardrail check, chat title, or compaction runs on the backend. `kind` names which, with its token counts. |
| `prune` | Older tool results were [pruned](<https://docs.trylynx.ai/usage/chat-history/index.md#context-window>) from a request. |
| `context_trim` | A conversation had to be trimmed to fit the model's context window. |
| `background_dispatch` | A trigger did not start a [background agent](<https://docs.trylynx.ai/usage/background-agents/index.md>), with the reason in `error_message`. `background_agent` names which. |
| `retry` | A request that failed with a [retryable error](<https://docs.trylynx.ai/usage/settings/index.md#retryable-errors>) is retried. Carries the matched error, the attempt, and the error text. |
| `dashboard_save` | A dashboard preview fails to save. |
| `settings_save` | A user saves the [Settings](<https://docs.trylynx.ai/usage/settings/index.md>) page. `section` names which part was saved. |

`request`, `tool`, `skill`, and `dashboard_save` events carry a `status` (`success`, `error`, or `cancelled`). `tool` and `skill` events can also be `rejected` - the call completed but returned an error for the agent to correct, such as invalid SPL or a blocked command. Failures add an `error_type` and a short `error_message`, which is what the error panels group by.

## Logs

Alongside the usage events, the app writes operational logs to `_internal` under the same source:

```text
index=_internal source=lynx_ai_agent sourcetype=lynx_ai_agent:log
```

| `sourcetype` | Contains |
| :--- | :--- |
| `lynx_ai_agent:log` | Operational and agent-behavior messages, with a severity, a description, and the chat ID and model that were in play. |
| `lynx_ai_agent:usage` | The usage events behind the dashboard above. |

These logs are the first place to look when something misbehaves, and are worth including in a support request.
