Check if data streams have data

Base URL
https://{kibana_url}
  • GET /api/fleet/data_streams/data
Auth

Check whether one or more data stream index patterns contain any documents indexed at or after the given start time.

Required authorization

Privileges fleet-read

Query parameters

dataStreams string · max length: 4096 required

A comma-separated list of data stream index patterns to check. Each pattern must be of the form logs-<dataset>-* or metrics-<dataset>-*.

start string · max length: 64 required

An ISO 8601 timestamp. Only documents with an @timestamp at or after this time are considered.

Responses

Successful response

application/json
results map string to boolean required

One entry per requested index pattern. true when the pattern matched at least one document, false when it matched none or the pattern resolved to no index.

Bad request

application/json
attributes object required
error string
errorType string
message string required
statusCode number
Base URL
https://{kibana_url}