Skip to main content

Overview

OpenSRE queries Coralogix with DataPrime to retrieve logs during alert investigations — correlating log patterns with incidents and identifying root causes.

Prerequisites

  • Coralogix account with DataPrime query access
  • Logs Query API key

Setup

Option 1: Interactive CLI

You will be prompted for the DataPrime (Logs Query) API key, API URL, and optional application / subsystem filters.

Option 2: Environment variables

Add to your .env:

Option 3: Persistent store

Store credentials use base_url (not CORALOGIX_API_URL).

Option 4: Multi-instance

For multiple Coralogix accounts or regions, use multi-instance with CORALOGIX_INSTANCES:
When CORALOGIX_INSTANCES is set, the single-instance CORALOGIX_* variables are ignored.

Credentials

  1. In Coralogix, go to Data FlowAPI Keys
  2. Click + New API Key
  3. Select Logs Query as the key type
  4. Copy the key

Investigation tools

Arguments the planner commonly supplies:

Verify

Expected output:

Troubleshooting

Security

  • Use a read-only Logs Query key — avoid admin or send-data keys.
  • Store the API key in .env or your secret manager — not in source control.

Extras

Cluster endpoints