Spaces method and path for this operation:
post /s/{space_id}/api/security/entity_store/install
Refer to Spaces for more information.
Install the Entity Store, creating engines for the specified entity types and configuring log extraction.
[Required authorization] Route required privileges: securitySolution.
POST
/api/security/entity_store/install
curl
curl -X POST -H "kbn-xsrf: true" -H "Authorization: ApiKey ${API_KEY}" \
-H "Content-Type: application/json" \
-d '{"entityTypes":["user","host","service","generic"],"logExtraction":{}}' \
"${KIBANA_URL}/api/security/entity_store/install"
POST kbn://api/security/entity_store/install
{
"entityTypes": ["user", "host", "service", "generic"],
"logExtraction": {}
}
Request examples
Install with default entity types
Install the Entity Store for all entity types with default log extraction settings.
{
"entityTypes": [
"user",
"host",
"service",
"generic"
],
"logExtraction": {}
}
Install the Entity Store for host entities only with a custom lookback period and field history length.
{
"entityTypes": [
"host"
],
"logExtraction": {
"delay": "2m",
"fieldHistoryLength": 20,
"filter": "host.os.type: linux",
"frequency": "5m",
"lookbackPeriod": "12h"
}
}
Response examples (200)
All requested entity types were already installed.
{
"ok": true
}
Response examples (201)
The Entity Store was installed and engines are being created.
{
"ok": true
}
Response examples (403)
The user does not have the required Elasticsearch privileges.
{
"error": "Forbidden",
"message": "User 'analyst' has insufficient privileges",
"statusCode": 403
}