Check if data streams have data
Server:
https://{kibana_url}
- GET /api/fleet/data_streams/data
Check whether one or more data stream index patterns contain any documents indexed at or after the given start time.
[Required authorization] Route required privileges: fleet-read.
Query Parameters
-
dataStreamsstring · max: 4096required A comma-separated list of data stream index patterns to check. Each pattern must be of the form
logs-<dataset>-*ormetrics-<dataset>-*.-
startstring · max: 64required An ISO 8601 timestamp. Only documents with an
@timestampat or after this time are considered.
Responses
Successful response
-
resultsmap string to booleanrequired -
One entry per requested index pattern.
truewhen the pattern matched at least one document,falsewhen it matched none or the pattern resolved to no index.
Bad request
-
attributesobjectrequired -
errorstring -
errorTypestring -
messagestringrequired -
statusCodenumber