KQL SPL and ES-QL dialect boundaries
Same intent, different languages
Kusto Query Language in Microsoft Sentinel supports table pipelines. Splunk Search Processing Language (classic SPL, not SPL2) uses search pipelines. Elastic ES|QL supports tabular transformations; Kibana Query Language (also KQL) filters documents only. Elasticsearch Query DSL uses JSON queries and separate aggregations. Wazuh uses its own indexed data and dashboard environment; check its version and mappings.
Kusto and classic SPL
Illustrative native syntax, not executed. Assume a fictional typed table Events or index classroom, integer minute, and nonempty actor strings. Kusto:
Events| where minute >= 0 and minute < 10 and outcome == "denied" and isnotempty(actor)| summarize denied_count=count() by actorClassic SPL:
index=classroom outcome=denied minute>=0 minute<10 actor=*| stats count AS denied_count BY actorFor SPL also set the search time picker to include the fixture day; minute is a toy numeric field, not _time. The fixture has no empty actor strings.
Elastic languages
Assume minute is numeric and outcome/actor are keyword fields. ES|QL (illustrative):
FROM classroom| WHERE minute >= 0 AND minute < 10 AND outcome == "denied" AND actor IS NOT NULL| STATS denied_count = COUNT(*) BY actorKibana KQL filter only: outcome: denied AND minute >= 0 AND minute < 10 AND actor: *. It does not create grouped counts; use an aggregation visualization or ES|QL. Query DSL can use a bool filter containing term, range and exists queries, with a terms aggregation on actor; verify mapping and bucket limits.
Portability limits
Names, case sensitivity, null handling, array semantics, time pickers, indexes and output limits differ. Equivalent syntax is not evidence of equivalent behavior. OpenSearch-based environments and Wazuh dashboards may offer different query capabilities from Elastic; never assume compatibility by branding or visual similarity. Record engine, version, mappings and test dataset before deploying any saved query.
Practice translating intent
Write the intended result as a two-column table before reading each example. Explain why copying summarize into classic SPL is wrong and why a Kibana filter is not a grouped query. Compare with the SQLite reference results; native queries remain unverified until tested in the approved environment.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
KQL SPL and ES-QL dialect boundaries — knowledge check
Apply SIEM query, aggregation, dialect and debugging principles to fictional scenarios.
Which KQL is filter-only?
Which operator groups Kusto rows?
Which classic SPL command counts by actor?
What is Elasticsearch Query DSL expressed in?
What must be checked before translating a query?