> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blink.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Logs

> View and search agent logs.

View agent logs in the web UI under your agent's **Logs** tab.

<img src="https://mintcdn.com/blink-8fc97cdb/-JnKEx3UGKxJolE7/images/cloud-logs.png?fit=max&auto=format&n=-JnKEx3UGKxJolE7&q=85&s=5c64c61696013e806c49a6ef09ed642d" alt="Logs" width="2172" height="1440" data-path="images/cloud-logs.png" />

## Log Levels

| Level   | Description            |
| ------- | ---------------------- |
| `info`  | Informational messages |
| `warn`  | Warnings               |
| `error` | Errors                 |

## Filtering Logs

* **Search** - Filter logs by message content (supports `*` wildcards)
* **Date range** - Select a time range (default: last 24 hours)
* **Reload** - Refresh the log list

For example, searching `*error*failed` matches any log containing "error" followed by "failed", such as "connection error: request failed".

## Log Details

Click on any log entry to open a sidebar with the full log details.

If the log contains `trace_id` or `span_id` fields, a **View Trace** button appears. Clicking it navigates to the Traces page filtered to that specific trace.

## Storage

Logs are stored in PostgreSQL. There is currently no automatic retention policy - logs are stored indefinitely. This is because Blink is in early access and automatic log retention has not yet been implemented.

To manually delete logs older than 7 days, run the following SQL query against your database:

```sql theme={null}
DELETE FROM agent_log WHERE timestamp < NOW() - INTERVAL '7 days';
```
