---
title: "Coralogix"
description: "Connect Coralogix so the SRE Agent can investigate production errors from your logs and spans."
canonical: "https://baz.ai/docs/integrations/observability/coralogix"
---

# Coralogix

Connect Coralogix so the SRE Agent can investigate production errors from your logs and spans.

Connect Coralogix to give the [SRE Agent](/docs/agents/maintain/sre-agent) your production errors. The agent queries logs and spans, traces each issue to the code at the deployed commit, and opens fix pull requests for issues it can fix safely.

## Before you start

You need a Coralogix API key with the **DataQuery** permission preset, your Coralogix customer URL, and the SRE Agent turned on in **Software Factory → Maintain**, plus write access and a [sandbox](/docs/integrations/sandbox) on the repositories it should fix.

## Connect Coralogix

<Steps>
  <Step title="Open the Coralogix integration">
    Go to **Settings → Integrations**, select **Observability**, then **Coralogix**, and select **Configure**.
  </Step>
  <Step title="Fill in the form">
    In **Create a new Coralogix integration**, enter **Customer URL** (for example `https://acme.app.eu2.coralogix.com`) and **API Key**. Optionally list **Application Names**, comma-separated, to limit which applications Baz reads. Save the form.
  </Step>
  <Step title="Map services to repositories">
    Open the integration's menu, select **SRE Settings**, set **Environments**, and add rows under **Service to repository mapping**.
  </Step>
</Steps>

## Related

<CardGroup cols={2}>
  <Card title="SRE Agent" href="/docs/agents/maintain/sre-agent" icon="siren">
    How production errors become fix pull requests.
  </Card>
  <Card title="Sandbox" href="/docs/integrations/sandbox" icon="box">
    Where the Fixer builds and tests SRE fixes.
  </Card>
</CardGroup>
