# SPL, KQL and Elastic Query Mastery

> Read and write the same detection in SPL, Kusto KQL and Elastic: filters, stats, joins and lookups, time windows, first seen analytics and a three language lab.

Canonical: https://codelivly.com/rooms/spl-kql-and-elastic-query-mastery
Last updated: 2026-11-23

| | |
|---|---|
| Level | Intermediate |
| Category | Cybersecurity |
| Lessons | 6 |
| Estimated time | 4 h 20 min |
| XP | 1108 |

The Kestrel SOC is moving searches between Splunk, Microsoft Sentinel and Elastic, and the analyst who reviews the translations has to be fluent in all three. This room compares query anatomy side by side, covers filtering, aggregation, joins, lookups and enrichment, and explains time windows, thresholds and late arriving events. It then builds first seen and rare analytics and ends with one detection, failed logons followed by a success, written in SPL, KQL and Elastic and checked against an exported log. Every lesson has a terminal exercise on realistic log files and scenario questions that need judgment.

## Lessons

1. Query Anatomy Compared Across the Three Platforms (40 min)
2. Filtering, Stats and Aggregations (40 min)
3. Joins, Lookups and Enrichment (40 min)
4. Time Windows and Thresholds (45 min)
5. Rare and First Seen Analytics (45 min)
6. Guided Lab: One Detection in Three Languages (50 min)

## Related

- [Learning path: Detection Engineering and Tuning](https://codelivly.com/learning-paths/detection-engineering-and-tuning)
- [All rooms](https://codelivly.com/rooms)
