Get usage information
- GET /_xpack/usage
Get information about the features that are currently enabled and available under the current license. The API also provides some usage statistics.
Required privileges
monitor
Responses
-
columnarobject -
Usage of the indices with
index.modeset tocolumnar. -
data_lifecycleobject -
default_rollover_usedboolean -
Whether the default rollover configuration is used by at least one data stream.
-
data_retentionobject -
Statistics about the explicitly configured data retention across data streams.
-
effective_retentionobject -
Statistics about the effective retention (configured or derived from global retention) across data streams.
-
frozen_afterobject -
Statistics about the configured
frozen_after(searchable snapshot) tier threshold across data streams. -
esqlobjectrequired -
featuresmap string to numberrequired -
Per-feature usage counters, keyed by ES|QL source command or language feature (for example
where,sort,stats,lookup_join). Each value counts how many queries used that feature. Every known feature has an entry; unused features report 0. -
queriesmap string to objectrequired -
Query counters keyed by client type, plus an
_allentry that aggregates every client type. Currently all queries are recorded underrest, sokibanais always 0;_allholds the total. -
functionsmap string to numberrequired -
Per-function usage counters, keyed by ES|QL function name (for example
max,coalesce,to_long). Each value counts how many queries used that function. Every registered function has an entry; unused functions report 0. -
settingsmap string to numberrequired -
Per-setting usage counters, keyed by ES|QL query setting name (for example
time_zone,unmapped_fields). Each value counts how many queries supplied that setting, either in the request body or withSETin the query. A setting supplied both ways is counted once. -
tookobjectrequired -
Histogram of query execution times. Each query is counted in exactly one bucket, the one its
tooktime falls in. -
resolved_settingsmap string to string to numberrequired -
Per-setting usage counters broken down by the setting's effective value in each query, whether the query supplied it or used the default. Keyed by ES|QL query setting name. Each value maps a value category to a count.
-
logsdb_columnarobject -
Usage of the indices with
index.modeset tologsdb_columnar. -
Same fields as
columnar -
mlobjectrequired