Skip to main content

scout alerts

Query alert history from the Scout platform. Results include alert name, state, previous state, timestamp, dashboard UID, and tags.

scout alerts demo

Usage

scout alerts [flags]

Flags

FlagTypeDefaultDescription
--limitinteger20Maximum number of results (1–100)
--sincedurationTime window (e.g., 2h, 1d). Max: 7 days. Conflicts with --start
--startRFC 3339Start time. Conflicts with --since
--endRFC 3339End time. Requires --start
--tagstringFilter by tag. Repeatable for multiple tags
--dashboardstringFilter by dashboard UID
--rawboolfalseOutput JSON

Examples

Query the 20 most recent alerts:

scout alerts

Query alerts from the last 2 hours:

scout alerts --since 2h

Query alerts in a specific time range:

scout alerts --start 2026-03-26T14:00:00Z --end 2026-03-26T16:00:00Z

Filter by tag:

scout alerts --tag critical --tag payment

Filter by dashboard and output JSON:

scout alerts --dashboard abc123 --raw

Get more results:

scout alerts --since 1d --limit 100

Time Ranges

Use --since for relative time windows or --start/--end for absolute ranges. These two approaches are mutually exclusive.

FlagFormatExample
--sinceDuration string30m, 2h, 1d
--startRFC 33392026-03-26T14:00:00Z
--endRFC 33392026-03-26T16:00:00Z
warning

The maximum time range is 7 days. Queries exceeding this limit will return an error.

See Also

  • logs — query service logs
  • traces — query distributed traces
  • metrics — query service metrics
Was this page helpful?