Loading...
Loading...
List, inspect, enable, disable, and resync Kibana Streams via the REST API. Use when the user needs stream details, ingest/query settings, queries, significant events, or attachments.
npx skill4agent add elastic/agent-skills kibana-streams| Item | Description |
|---|---|
| Kibana URL | Kibana endpoint (e.g. |
| Authentication | API key or basic auth (see the elasticsearch-authn skill) |
| Privileges | |
/s/{space_id}/api/streamsGETPOST<kibana_url>/api/streams/s/<space_id>/api/streamsPOST /api/streams/_disable_enable_resynckbn-xsrf: true| Operation | Method | Path |
|---|---|---|
| Get stream list | GET | |
| Get a stream | GET | |
| Get ingest stream settings | GET | |
| Get query stream settings | GET | |
| Get stream queries | GET | |
| Read significant events | GET | |
| Get stream attachments | GET | |
| Operation | Method | Path |
|---|---|---|
| Disable streams | POST | |
| Enable streams | POST | |
| Resync streams | POST | |
{name}{streamName}GET /api/streams/{name}/_ingestingest.lifecyclelifecycle.dsl.data_retention"30d"lifecycle.inheritingest.failure_store.lifecyclelifecycle.dsl.data_retentioncurl -X GET "${KIBANA_URL}/api/streams" \
-H "Authorization: ApiKey <base64-api-key>"curl -X GET "${KIBANA_URL}/api/streams/my-stream" \
-H "Authorization: ApiKey <base64-api-key>"curl -X GET "${KIBANA_URL}/api/streams/my-stream/queries" \
-H "Authorization: ApiKey <base64-api-key>"# Significant events
curl -X GET "${KIBANA_URL}/api/streams/my-stream/significant_events" \
-H "Authorization: ApiKey <base64-api-key>"
# Attachments (dashboards, rules, SLOs linked to the stream)
curl -X GET "${KIBANA_URL}/api/streams/my-stream/attachments" \
-H "Authorization: ApiKey <base64-api-key>"# Disable streams (request body per API docs) — warn user and confirm before proceeding
curl -X POST "${KIBANA_URL}/api/streams/_disable" \
-H "Authorization: ApiKey <base64-api-key>" \
-H "kbn-xsrf: true" \
-H "Content-Type: application/json" \
-d '{}'
# Enable streams
curl -X POST "${KIBANA_URL}/api/streams/_enable" \
-H "Authorization: ApiKey <base64-api-key>" \
-H "kbn-xsrf: true" \
-H "Content-Type: application/json" \
-d '{}'
# Resync streams
curl -X POST "${KIBANA_URL}/api/streams/_resync" \
-H "Authorization: ApiKey <base64-api-key>" \
-H "kbn-xsrf: true" \
-H "Content-Type: application/json" \
-d '{}'ingest.lifecyclelifecycle.dsl.data_retention