Learn how to filter, manipulate, extend, and summarize your data.
Show me the most common status responses in HTTP logs.
geo.country
.==
for an exact match.France
.count
visualization displays the number of events matching your query over time. Some visualizations require an argument such as a field or other parameters.
Run in Playground
For more information about visualizations, see Visualize data.
count
visualization and group by geo.country
.
Run in Playground
_time
is the timestamp of the event. If the data you ingest doesn’t have a _time
field, Axiom assigns the time of the data ingest to the events._sysTime
is the time when you ingested the data._time
and _sysTime
interchangeably. The difference between them can be useful if you experience clock skews on your event-producing systems.
|
separates the operations as they flow from left to right, and top to bottom.
APL is case-sensitive for everything: dataset names, field names, operators, functions, etc.
Use double forward slashes (//
) for comments.
sample-http-logs
dataset.
limit
operator returns a random subset of rows from a dataset up to the specified number of rows. This query returns a thousand rows from sample-http-logs
randomly chosen by APL.
summarize
operator produces a table that aggregates the content of the dataset. This query returns a chart of the avg(req_duration_ms)
, and a table of geo.city
and avg(req_duration_ms)
of the sample-http-logs
dataset from the time range of 2 days and time interval of 4 hours.
1 hr
in the time range menu, and then select -1 day
from the Compare period menu. The dotted line represents results from the base date, and the totals table includes the comparative totals.