Spaces method and path for this operation:
Refer to Spaces for more information.
DEPRECATED. Legacy API for on-demand reindexing of old .siem-signals-* alert indices. Do not build new
integrations; upgrade the Elastic Stack and rely on product-managed data lifecycle instead.
WARNING: Migrations can be resource intensive and should be planned during a maintenance window.
Initiate a migration of detection alerts. Migrations are initiated per index. The process is not destructive and should not remove existing data, but it can consume significant cluster resources. Plan capacity accordingly.
Body
Required
Alerts migration parameters
-
Array of index names to migrate.
At least
1element. Minimum length of each is1. -
The throttle for the migration task in sub-requests per second. Corresponds to requests_per_second on the Reindex API.
Minimum value is
1. -
Number of alerts to migrate per batch. Corresponds to the source.size option on the Reindex API.
Minimum value is
1. -
The number of subtasks for the migration task. Corresponds to slices on the Reindex API.
Minimum value is
1.
curl \
--request POST 'https://localhost:5601/api/detection_engine/signals/migration' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"index":[".siem-signals-default-000001"]}'
{
"index": [
".siem-signals-default-000001"
]
}
{
"indices": [
{
"index": ".siem-signals-default-000001,",
"migration_id": "923f7c50-505f-11eb-ae0a-3fa2e626a51d",
"migration_index": ".siem-signals-default-000001-r000016"
}
]
}
{
"error": "Bad Request",
"message": "[request body].index: at least one index name is required to start a migration",
"statusCode": 400
}
{
"error": "Unauthorized",
"message": "[security_exception\n\tRoot causes:\n\t\tsecurity_exception: unable to authenticate user [elastic] for REST request [/_security/_authenticate]]: unable to authenticate user [elastic] for REST request [/_security/_authenticate]",
"statusCode": 401
}
{
"message": "Internal Server Error",
"status_code": 500
}