Spaces method and path for this operation:
Refer to Spaces for more information.
Initialize the entire Entity Store, creating engines for all or specified entity types.
Body
Required
Configuration for the entity store initialization.
-
The delay before the transform will run.
Format should match the following pattern:
[smdh]$. Default value is1m. -
The number of documents per second to process.
Default value is
-1. -
Interval in which enrich policy runs. For example,
"1h"means the rule runs every hour. Must be less than or equal to half the duration of the lookback period,Format should match the following pattern:
^[1-9]\d*[smh]$. -
The type of entity.
Values are
user,host,service, orgeneric. -
The number of historical values to keep for each field.
Default value is
10. -
The frequency at which the transform will run.
Format should match the following pattern:
[smdh]$. Default value is1m. -
An additional Elasticsearch index pattern to include as a source for entity data. Merged with the default data view indices when the engine runs.
-
The amount of time the transform looks back to calculate the aggregations.
Format should match the following pattern:
[smdh]$. Default value is3h. -
The initial page size to use for the composite aggregation of each checkpoint.
Default value is
500. -
The timeout for initializing the aggregating transform.
Format should match the following pattern:
[smdh]$. Default value is180s. -
The field to use as the timestamp.
Default value is
@timestamp.
curl \
--request POST 'https://<KIBANA_URL>/api/entity_store/enable' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"delay":"1m","docsPerSecond":-1,"enrichPolicyExecutionInterval":"1h","entityTypes":["user"],"fieldHistoryLength":10,"filter":"string","frequency":"1m","indexPattern":"logs-*","lookbackPeriod":"3h","maxPageSearchSize":500,"timeout":"180s","timestampField":"@timestamp"}'
{
"engines": [
{
"delay": "1m",
"fieldHistoryLength": 10,
"frequency": "1m",
"indexPattern": "",
"lookbackPeriod": "24h",
"status": "installing",
"timeout": "180s",
"timestampField": "@timestamp",
"type": "host"
},
{
"delay": "1m",
"fieldHistoryLength": 10,
"frequency": "1m",
"indexPattern": "",
"lookbackPeriod": "24h",
"status": "installing",
"timeout": "180s",
"timestampField": "@timestamp",
"type": "user"
}
],
"succeeded": true
}