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
Option 2: Environment variables
Add to your.env:
Option 3: Persistent store
base_url (not CORALOGIX_API_URL).
Option 4: Multi-instance
For multiple Coralogix accounts or regions, use multi-instance withCORALOGIX_INSTANCES:
CORALOGIX_INSTANCES is set, the single-instance CORALOGIX_* variables are ignored.
Credentials
- In Coralogix, go to Data Flow → API Keys
- Click + New API Key
- Select Logs Query as the key type
- Copy the key
Investigation tools
Arguments the planner commonly supplies:
Verify
Troubleshooting
Security
- Use a read-only Logs Query key — avoid admin or send-data keys.
- Store the API key in
.envor your secret manager — not in source control.