> For the complete documentation index, see [llms.txt](https://docs.apica.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apica.io/data-sources/ascent-logs/logs.md).

# Logs

How to use Ascent Logs data source to query logs from namespaces and applications

### Follow the steps below to create and execute a query using the Ascent Logs Data Source.

***

### 1. Go to the Queries Page

* Navigate to the queries page in your dashboard to begin
* In the Queries page, click on the "New Query" button to start a new query

<figure><picture><source srcset="/files/HhNfq7eX1GEYA008XLNo" media="(prefers-color-scheme: dark)"><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2Fy9n7xWSkBp6QBNYHoIdQ%2FScreenshot%202025-01-29%20at%202.29.38%E2%80%AFPM.png?alt=media&amp;token=7ccf83f8-eadc-4377-998c-aa3df29e2446" alt=""></picture><figcaption></figcaption></figure>

### 2. Select "Ascent Logs" from the Left Sidebar

* On the left sidebar, click on **Ascent Checks**. This will display a list of all available checks that you can query.

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2FiSk2WNlw9OZKe3osyzP4%2Fimage.png?alt=media&amp;token=48a18744-410c-4e13-9de2-0b7b76ec2683" alt=""><figcaption></figcaption></figure>

### 3.Write the query

* Write the query in YAML format and execute query, for example:

```
namespace: "Alerts"
application: "alerts-app"
keyword: ''
duration: '1h'
```

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2F09PHXuHOD78tMFDnx9dI%2Fimage.png?alt=media&amp;token=bcc0de36-e7a3-4cdb-82f4-a8e141f54bf5" alt=""><figcaption></figcaption></figure>
