Spaces method and path for this operation:
Refer to Spaces for more information.
Install the Entity Store and create engines for the specified entity types. logExtraction sets overrides that apply to all entity types, on top of built-in defaults per entity type. The default frequency is 1m for host and user, 10m for service and 30m for generic. Supply it once at install to customize settings; omit it (or send an empty object) to use defaults on first install or preserve the existing configuration on re-install. Omitting a field leaves it unchanged. Sending null for a field clears that override and reverts to the entity type default. To change settings after install, use the update endpoint.
[Required authorization] Route required privileges: securitySolution.
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": {}
}
{
"entityTypes": [
"user",
"host",
"service",
"generic"
],
"logExtraction": {}
}
{
"entityTypes": [
"host"
],
"logExtraction": {
"delay": "2m",
"fieldHistoryLength": 20,
"frequency": "5m",
"lookbackPeriod": "12h"
}
}
{
"ok": true
}
{
"ok": true
}
{
"error": "Forbidden",
"message": "User 'analyst' has insufficient privileges",
"statusCode": 403
}