# Logs

The Logs view lets you search and filter historical log activity across your tenant.

## Where to Find It

Under **Monitoring** in the left navigation, select **Logs**.

## How It Works

* **Agents** - Filter logs by one or more agents.
* **CLQL editor** - Enter a query using Contextual Log Query Language (CLQL), then press Enter or click **Search**.
* **Time Range** - Choose a time window (for example, Last 24 hours).
* **Messages / Sessions tabs** - Toggle between message-level logs and session-level logs.

The editor includes a direct link to the CLQL docs for query syntax guidance.

## Tips

* Use **Columns** to show or hide fields in the results grid.
* Use **Filters** for quick table filtering after a query runs.
* Use **Export** to download results for offline analysis.

For CLQL details, see [Contextual Log Query Language (CLQL)](/documentation-and-resources/tenants/tenant-logs/contextual-log-query-language-clql.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.contextual.io/documentation-and-resources/tenants/monitoring/logs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
