Click + next to an example below to get the full details.
Extract Field Statistics
Extract field statistics from a repository using the fieldstats() function
Query
logscale
fieldstats()
Introduction
In this example, the fieldstats() function is used
to get the statistics for the fields #type,
field,
_count and
distinct within the
HUMIO repository. The example will only
show the first 20 rows (but the
limit parameter has a
default value of 200 rows.
Step-by-Step
Starting with the source repository events.
logscale
fieldstats()
Extracts statistics about fields within the humio
respository.
Event Result set.
Summary and Results
The query is used to extract statistics about the fields within a
current event stream. The process of extracting insights from data
streams in real time or near-real time can be used to identify and act
on critical business moments, collect data from various sources, and to
understand the meaning of this data and its content. Statistics are
useful for analyzation.
Sample output from the incoming example data (showing the first 20 rows
only):