Get the rollup job capabilities Technical preview
Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern.
This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. This API enables you to inspect an index and determine:
- Does this index have associated rollup data somewhere in the cluster?
- If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live?
GET
/_rollup/data
curl \
-X GET http://api.example.com/_rollup/data
Response examples (200)
{
"additionalProperty1": {
"rollup_jobs": [
{
"fields": {
"additionalProperty1": [
{}
],
"additionalProperty2": [
{}
]
},
"index_pattern": "string",
"job_id": "string",
"rollup_index": "string"
}
]
},
"additionalProperty2": {
"rollup_jobs": [
{
"fields": {
"additionalProperty1": [
{}
],
"additionalProperty2": [
{}
]
},
"index_pattern": "string",
"job_id": "string",
"rollup_index": "string"
}
]
}
}