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

# Coralogix

## What the Agent Can Do

* Query logs by application, subsystem, severity, and time range
* Search for error patterns and anomalies
* Correlate log events across services

## Setup Instructions

1. Log into your **Coralogix dashboard**
2. Go to **Settings** (left navbar) > **API Keys**
3. Click **+ Team Key**, select **DataQuerying** role preset, then **Create**
4. Copy the API key and your domain

## Required Credentials

| Field                       | Description                              | Example                                  |
| --------------------------- | ---------------------------------------- | ---------------------------------------- |
| **API Key**                 | Coralogix API key with query permissions | `cxtp_...`                               |
| **Dashboard URL or Domain** | Your Coralogix dashboard URL             | `https://myteam.app.cx498.coralogix.com` |

{% hint style="info" %}
**Finding your domain:** Copy the URL from your browser when you're on any Coralogix page. We'll extract the domain automatically.
{% endhint %}

## Context Prompt Tips

When setting up, you can provide context to help the agent query more effectively:

> *"Our logs use application=myapp for filtering. Production has env=prod tag. Error logs are in severity=error."*

## Docs

* [Coralogix API Reference](https://coralogix.com/docs/coralogix-apis/)
