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

# ClickHouse Logs

> Query ClickHouse log tables from Decimal's AI agent for root cause analysis during support ticket investigation.

## What It Does

* **Lists your log tables** to find the ones worth querying for a given issue
* **Queries logs** to pull the rows related to a support issue
* **Correlates data** with ticket context for more accurate root cause analysis

## Connecting ClickHouse Logs

1. **Open Integrations**: Go to **Settings → Integrations**.
2. **Click ClickHouse Logs**: Click on the ClickHouse Logs integration row to open the configuration modal.
3. **Enter your HTTPS endpoint**: Provide the endpoint for your instance (e.g., `https://your-instance:8443`).
4. **Provide credentials**: Enter the **Username** and **Password** Decimal should connect with.
5. **Name the database**: Enter the database that holds your log tables.
6. **Connect**: Click **Connect** to save and activate the integration.

<div className="dcl-callout dcl-callout-tip">
  Use a read-only user. ClickHouse's [console documentation](https://clickhouse.com/docs/en/integrations/sql-clients/sql-console) shows where your connection details live.
</div>
