Skip to content

observe_logs_facets

Count the environments, services and severities present in the logs of the current product over a window, so a filter can offer the values that actually exist.

Tool

observe_logs_facets

Count the environments, services and severities present in the logs of the current product over a window, so a filter can offer the values that actually exist.

Count the environments, services and severities present in the logs of the current product over a window, so a filter can offer the values that actually exist. Counts are cached for up to a minute.

Behavior

HTTP
GET /observe/logs/facets

Arguments

NameTypeRequiredDescription
windowstringHow far back to count, e.g. "1h", "24h", "7d". Up to 30d, default "24h"

Response

FieldTypeAlwaysDescription
tostringNewest timestamp counted, ISO 8601
fromstringOldest timestamp counted, ISO 8601
windowstringThe window that was counted, e.g. "24h"
servicesarrayServices, most frequent first
severitiesarraySeverities, most frequent first
environmentsarrayEnvironments, most frequent first

Try it

Count the environments, services and severities present in the logs of the current product over a window, so a filter can offer the values that actually exist.

When to use

Count the environments, services and severities present in the logs of the current product over a window, so a filter can offer the values that actually exist. Counts are cached for up to a minute.

Example

Ask your agent something like this:

Count the environments, services and severities present in the logs of the current product over a window, so a filter can offer the values that actually exist.

The agent will invoke observe_logs_facets with these arguments:

{}

Esc

Start typing to search the docs.

navigateselect