Spaces method and path for this operation:
post /s/{space_id}/api/entity_store/engines/apply_dataview_indices
Refer to Spaces for more information.
Synchronize data view index patterns to all running entity engines so that newly added indices are picked up by the transforms.
POST
/api/entity_store/engines/apply_dataview_indices
curl \
--request POST 'https://localhost:5601/api/entity_store/engines/apply_dataview_indices' \
--header "Authorization: $API_KEY"
Response examples (200)
All running engines were successfully updated with the current data view index patterns.
{
"result": [
{
"changes": {
"indexPatterns": [
"logs-*",
"filebeat-*",
"auditbeat-*"
]
},
"type": "host"
},
{
"changes": {
"indexPatterns": [
"logs-*",
"filebeat-*",
"auditbeat-*"
]
},
"type": "user"
}
],
"success": true
}
Response examples (207)
The host engine was updated but the user engine failed due to insufficient privileges.
{
"errors": [
"Failed to update user engine: insufficient privileges"
],
"result": [
{
"changes": {
"indexPatterns": [
"logs-*",
"filebeat-*"
]
},
"type": "host"
}
],
"success": false
}
Response examples (500)
An unexpected error occurred while applying data view indices.
{
"body": "An internal error occurred while updating engine indices",
"statusCode": 500
}