CQL Learning Paths by Example

Learn CQL through curated query examples organized for different audiences and learning goals

Workshop 1

Teach CQL from Scratch

Zero to querying - for complete newcomers

Understand what a query is and how events flow through a pipeline. Learn by doing with practical examples that build from basic field operations to calculations and aggregations. Copy and adapt these examples to your queries.

  • First Contact (5 examples)
  • Filtering & Categorizing (7 examples)
  • Counting & Grouping (6 examples)
  • Basic Calculations (5 examples)
Start Workshop
Workshop 2

Skill Up Existing Users

Deepen the craft - for those already querying

Go beyond basics with time-based analysis, statistical functions, array operations, joins, correlation patterns, and advanced visualization techniques. Copy and adapt these examples to your queries.

  • Time & Buckets (6 examples)
  • Stats & Percentiles (6 examples)
  • Regex & String Extraction (5 examples)
  • Array Operations (6 examples)
  • Joins, Sessions & Self-Joins (6 examples)
  • Correlation & Sequence Detection (11 examples)
  • Reshape & Visualize (8 examples)
Start Workshop
Workshop 3

Onboard Security Analysts

Detection-first - for SOC and threat hunters

Learn CQL for security investigations with practical examples focused on threat detection, user behavior analysis, network traffic, and detection engineering. Copy and adapt these examples to your queries.

  • Log Fundamentals for Analysts (5 examples)
  • User & Entity Behavior (5 examples)
  • Network & Traffic Analysis (4 examples)
  • Detection Engineering (5 examples)
  • Advanced Threat Detection (11 examples)
Start Workshop
Workshop 4

Internal Team Training

Build shared fluency - for teams adopting LogScale

Baseline exercises every team member should complete together. Build shared patterns for data enrichment, operational queries, and reusable techniques. Copy and adapt these examples to your queries.

  • Common Ground (5 examples)
  • Data Enrichment (6 examples)
  • Operational Queries (5 examples)
  • Advanced & Reusable Patterns (6 examples)
  • Testing, Enrichment & Object Arrays (10 examples)
Start Workshop

Workshop 1: Teach CQL from Scratch

Zero to querying - for complete newcomers. Work through these examples in order to build a strong foundation. Copy and adapt these examples to your queries.

Workshop 2: Skill Up Existing Users

Deepen the craft - for those already querying. Master advanced techniques with practical examples. Copy and adapt these examples to your queries.

6

Stage 6 - Correlation & Sequence Detection

Detect multi-event patterns, behavioral sequences, and cross-source correlations. These advanced techniques power threat detection, user journey analysis, and any scenario where you need to detect "Event A followed by Event B within time window X."

Workshop 3: Onboard Security Analysts

Detection-first - for SOC and threat hunters. Learn CQL through security-focused query examples. Copy and adapt these examples to your queries.

5

Stage 5 - Advanced Threat Detection

Multi-event correlation, credential attacks, bitfield decoding, and URL-based threat patterns. These queries combine everything you have learned to detect complex attack chains, credential dumping, and multi-stage threats that span multiple events.

Workshop 4: Internal Team Training

Build shared fluency - for teams adopting LogScale. Baseline exercises every team member should complete together. Copy and adapt these examples to your queries.