On this page
ObiQL Reference
Every pipe stage ObiQL ships today - generated from the stage registry the parser itself reads, so it can never drift from what actually runs.
inputlookup
Search a lookup table's own rows instead of events. Must be the first thing in the query.
| inputlookup hostname_mapstats
Aggregate matching events - count, sum, avg, min, max, latest value, percentiles, distinct counts, distinct values.
| stats count() by servicetimechart (also bucket)
Aggregate into fixed time buckets. The shape a dashboard panel binds to.
| timechart span=5m count() by servicesort
Sort the result set. Prefix a field with - for descending.
| sort -countlimit
Cap the number of rows returned.
| limit 20dedup
Keep the first row, or first N rows, for each distinct combination of fields.
| dedup service, hostmvexpand
Split a field holding several values into one row per value, such as the list a values() aggregation returns.
| mvexpand tagstransaction
Group related events into one row per transaction, such as each visitor's session, with its duration and event count.
| transaction visitor_id maxpause=30mbin
Put each value of a field into a bucket: a timestamp into a time bucket, a number into a range such as 200-300.
| bin _time span=1hwhere
Filter the output of an aggregation, or narrow raw events further.
| where duration_ms > 500table (also fields)
Project down to specific fields for display or export.
| fields service, level, duration_msrename
Rename a field in the result set. Display-only - stored events are untouched.
| rename src_ip AS client_ipextract
Pull new fields out of an existing field at search time - a placeholder pattern, or a regex with named groups.
| extract field=message pattern="<method> <uri> <status>"json
Read fields out of JSON held inside a field. Names every key it finds unless you name the paths yourself.
| json field=messageeval
Compute a new column from the ones a row already has - arithmetic, text, and conditionals.
| eval seconds = duration_ms / 1000lookup
Enrich results from a lookup table. On its own it finds the field named after the table's key column and adds every other column.
| lookup hostname_map hostname AS host OUTPUT owner_teamaskObi
Ask the workspace's AI model about these results. Returns one row per finding. Prebuilt prompts: insights (anything I need to know), anomalies, security; or write your own in quotes.
| askObidelete
Permanently delete every event this query matches. Requires the Can Delete Events role.
service=checkout-api level=debug | delete