coralogix-analysis

Investigate Coralogix logs and traces using DataPrime queries and statistics-first analysis scripts.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/erwinv2k-TKG/AgentesVSC --skill coralogix-analysis-erwinv2k-tkg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coralogix-analysis
Source: https://github.com/erwinv2k-TKG/AgentesVSC/tree/main/packs/incidentfox/sre-agent/.claude/skills/observability-coralogix
Command: npx skills add https://github.com/erwinv2k-TKG/AgentesVSC --skill coralogix-analysis-erwinv2k-tkg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires httpx, and includes scripts (resource) components.

What problem does it solve? Investigating production incidents by dumping raw logs is slow and error-prone. This Skill enforces a statistics-first workflow for Coralogix observability data, so you can identify error patterns, anomalies, and latency bottlenecks without reading thousands of log lines. ## Core Features & Use Cases - Statistics-First Investigation: Run get_statistics.py to get log volume, error rate, top error patterns, and z-score anomaly detection before sampling any logs. - Pattern Clustering for RCA: extract_signatures.py normalizes UUIDs, IPs, timestamps, and numbers to cluster similar errors and reveal dominant root causes. - Trace and Latency Analysis: get_traces.py and get_slow_spans.py query distributed spans to find slow operations and follow request flows across services. - Use Case: During an incident on the payment service, run get_statistics.py to see a 5.5% error rate dominated by one timeout pattern, then sample errors around the anomaly timestamp and pull the full trace to pinpoint the failing downstream call. ## Quick Start Ask the agent to investigate errors in the payment service over the last hour using the Coralogix statistics script.

Frequently Asked Questions about coralogix-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I investigate errors in Coralogix logs?

Start with get_statistics.py to get log volume, error rate, top error patterns, and anomaly detection before sampling. Then use sample_logs.py with the errors_only strategy and extract_signatures.py to cluster error patterns for root cause analysis.

How do I write DataPrime queries for Coralogix?

DataPrime queries start with 'source logs' and chain filters and aggregations with pipes, such as 'filter $m.severity == ERROR | groupby $l.subsystemname aggregate count()'. Use == for equality, ~~ for text search, and unquoted enum values for severity.

How do I find slow traces in Coralogix?

Run get_slow_spans.py with a --min-duration threshold in milliseconds to list spans exceeding that latency, or use --stats for per-service latency averages. Span durations are stored in microseconds, and you can follow a full request with get_traces.py --trace-id.

Does Coralogix log analysis require an API key in the environment?

In production, credentials are injected by a proxy layer via CORALOGIX_BASE_URL, so no API key is visible. For direct testing mode, set CORALOGIX_API_KEY plus CORALOGIX_DOMAIN or CORALOGIX_REGION so the client can resolve the correct regional API endpoint.

Why should I avoid fetching raw logs during incident investigation?

Dumping raw logs is slow and buries the signal in noise. The statistics-first approach surfaces error rates, dominant patterns, and time anomalies first, so you only sample targeted slices like errors_only or around_anomaly windows.