Upsert many entities in Entity Store
Spaces method and path for this operation:
Refer to Spaces for more information.
Update or create many entities in Entity Store. If the specified entity already exists, it is updated with the provided values. If the entity does not exist, a new one is created. The creation is asynchronous. The time for a document to be present in the final index depends on the entity store transform and usually takes more than 1 minute.
Body
Required
Schema for the updating many entities
-
Hide entities attributes Show entities attributes object
record
object Required One of: Hide attributes Show attributes
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide entity attributes Show entity attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide relationships attributes Show relationships attributes object
-
Additional properties are NOT allowed.
Hide risk attributes Show risk attributes object
-
Values are
Unknown,Low,Moderate,High, orCritical. -
The raw numeric value of the given entity's risk score.
-
The normalized numeric value of the given entity's risk score. Useful for comparing with other entities.
Minimum value is
0, maximum value is100.
-
-
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide user attributes Show user attributes object
-
Hide risk attributes Show risk attributes object
-
The time at which the risk score was calculated.
-
Values are
Unknown,Low,Moderate,High, orCritical. -
The raw numeric value of the given entity's risk score.
-
The normalized numeric value of the given entity's risk score. Useful for comparing with other entities.
Minimum value is
0, maximum value is100. -
The number of risk input documents that contributed to the Category 1 score (
category_1_score). -
The contribution of Category 1 to the overall risk score (
calculated_score). Category 1 contains Detection Engine Alerts. -
The criticality level of the asset.
Values are
low_impact,medium_impact,high_impact, orextreme_impact. -
The identifier field defining this risk score. Coupled with
id_value, uniquely identifies the entity being scored. -
The identifier value defining this risk score. Coupled with
id_field, uniquely identifies the entity being scored. -
A list of the highest-risk documents contributing to this risk score. Useful for investigative purposes.
A generic representation of a document contributing to a Risk Score.
Hide inputs attributes Show inputs attributes object
-
The risk category of the risk input document.
-
A human-readable description of the risk input document.
-
The unique identifier (
_id) of the original source document -
The unique index (
_index) of the original source document -
The weighted risk score of the risk input document.
Minimum value is
0, maximum value is100. -
The @timestamp of the risk input document.
-
-
Hide attributes Show attributes
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide entity attributes Show entity attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide relationships attributes Show relationships attributes object
-
Additional properties are NOT allowed.
Hide risk attributes Show risk attributes object
-
Values are
Unknown,Low,Moderate,High, orCritical. -
The raw numeric value of the given entity's risk score.
-
The normalized numeric value of the given entity's risk score. Useful for comparing with other entities.
Minimum value is
0, maximum value is100.
-
-
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide host attributes Show host attributes object
-
Additional properties are NOT allowed.
Hide entity attributes Show entity attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide relationships attributes Show relationships attributes object
-
Additional properties are NOT allowed.
Hide risk attributes Show risk attributes object
-
Values are
Unknown,Low,Moderate,High, orCritical. -
The raw numeric value of the given entity's risk score.
-
The normalized numeric value of the given entity's risk score. Useful for comparing with other entities.
Minimum value is
0, maximum value is100.
-
-
-
Hide risk attributes Show risk attributes object
-
The time at which the risk score was calculated.
-
Values are
Unknown,Low,Moderate,High, orCritical. -
The raw numeric value of the given entity's risk score.
-
The normalized numeric value of the given entity's risk score. Useful for comparing with other entities.
Minimum value is
0, maximum value is100. -
The number of risk input documents that contributed to the Category 1 score (
category_1_score). -
The contribution of Category 1 to the overall risk score (
calculated_score). Category 1 contains Detection Engine Alerts. -
The criticality level of the asset.
Values are
low_impact,medium_impact,high_impact, orextreme_impact. -
The identifier field defining this risk score. Coupled with
id_value, uniquely identifies the entity being scored. -
The identifier value defining this risk score. Coupled with
id_field, uniquely identifies the entity being scored. -
A list of the highest-risk documents contributing to this risk score. Useful for investigative purposes.
A generic representation of a document contributing to a Risk Score.
Hide inputs attributes Show inputs attributes object
-
The risk category of the risk input document.
-
A human-readable description of the risk input document.
-
The unique identifier (
_id) of the original source document -
The unique index (
_index) of the original source document -
The weighted risk score of the risk input document.
Minimum value is
0, maximum value is100. -
The @timestamp of the risk input document.
-
-
Hide attributes Show attributes
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide entity attributes Show entity attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide relationships attributes Show relationships attributes object
-
Additional properties are NOT allowed.
Hide risk attributes Show risk attributes object
-
Values are
Unknown,Low,Moderate,High, orCritical. -
The raw numeric value of the given entity's risk score.
-
The normalized numeric value of the given entity's risk score. Useful for comparing with other entities.
Minimum value is
0, maximum value is100.
-
-
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide service attributes Show service attributes object
-
Additional properties are NOT allowed.
Hide entity attributes Show entity attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide relationships attributes Show relationships attributes object
-
Additional properties are NOT allowed.
Hide risk attributes Show risk attributes object
-
Values are
Unknown,Low,Moderate,High, orCritical. -
The raw numeric value of the given entity's risk score.
-
The normalized numeric value of the given entity's risk score. Useful for comparing with other entities.
Minimum value is
0, maximum value is100.
-
-
-
Hide risk attributes Show risk attributes object
-
The time at which the risk score was calculated.
-
Values are
Unknown,Low,Moderate,High, orCritical. -
The raw numeric value of the given entity's risk score.
-
The normalized numeric value of the given entity's risk score. Useful for comparing with other entities.
Minimum value is
0, maximum value is100. -
The number of risk input documents that contributed to the Category 1 score (
category_1_score). -
The contribution of Category 1 to the overall risk score (
calculated_score). Category 1 contains Detection Engine Alerts. -
The criticality level of the asset.
Values are
low_impact,medium_impact,high_impact, orextreme_impact. -
The identifier field defining this risk score. Coupled with
id_value, uniquely identifies the entity being scored. -
The identifier value defining this risk score. Coupled with
id_field, uniquely identifies the entity being scored. -
A list of the highest-risk documents contributing to this risk score. Useful for investigative purposes.
A generic representation of a document contributing to a Risk Score.
Hide inputs attributes Show inputs attributes object
-
The risk category of the risk input document.
-
A human-readable description of the risk input document.
-
The unique identifier (
_id) of the original source document -
The unique index (
_index) of the original source document -
The weighted risk score of the risk input document.
Minimum value is
0, maximum value is100. -
The @timestamp of the risk input document.
-
-
-
Hide attributes Show attributes
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide entity attributes Show entity attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide relationships attributes Show relationships attributes object
-
Additional properties are NOT allowed.
Hide risk attributes Show risk attributes object
-
Values are
Unknown,Low,Moderate,High, orCritical. -
The raw numeric value of the given entity's risk score.
-
The normalized numeric value of the given entity's risk score. Useful for comparing with other entities.
Minimum value is
0, maximum value is100.
-
-
-
Values are
user,host,service, orgeneric.
curl \
--request PUT 'https://<KIBANA_URL>/api/entity_store/entities/bulk' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"entities":[{"record":{"@timestamp":"2025-05-04T09:42:00Z","asset":{"business_unit":"string","criticality":"low_impact","environment":"string","id":"string","model":"string","name":"string","owner":"string","serial_number":"string","vendor":"string"},"entity":{"attributes":{"asset":true,"managed":true,"mfa_enabled":true,"privileged":true},"behaviors":{"brute_force_victim":true,"new_country_login":true,"used_usb_device":true},"EngineMetadata":{"Type":"string"},"id":"string","lifecycle":{"first_seen":"2025-05-04T09:42:00Z","last_activity":"2025-05-04T09:42:00Z"},"name":"string","relationships":{"accessed_frequently_by":["string"],"accesses_frequently":["string"],"communicates_with":["string"],"dependent_of":["string"],"depends_on":["string"],"owned_by":["string"],"owns":["string"],"supervised_by":["string"],"supervises":["string"]},"risk":{"calculated_level":"Unknown","calculated_score":42.0,"calculated_score_norm":42.0},"source":"string","sub_type":"string","type":"string"},"event":{"ingested":"2025-05-04T09:42:00Z"},"user":{"domain":["string"],"email":["string"],"full_name":["string"],"hash":["string"],"id":["string"],"name":"string","risk":{"@timestamp":"2017-07-21T17:32:28Z","calculated_level":"Unknown","calculated_score":42.0,"calculated_score_norm":42.0,"category_1_count":42,"category_1_score":42.0,"category_2_count":42,"category_2_score":42.0,"category_3_count":42,"category_3_score":42.0,"criticality_level":"low_impact","criticality_modifier":42.0,"id_field":"host.name","id_value":"example.host","inputs":[{"category":"category_1","contribution_score":42.0,"description":"Generated from Detection Engine Rule: Malware Prevention Alert","id":"91a93376a507e86cfbf282166275b89f9dbdb1f0be6c8103c6ff2909ca8e1a1c","index":".internal.alerts-security.alerts-default-000001","risk_score":42.0,"timestamp":"2017-07-21T17:32:28Z"}],"is_privileged_user":true,"notes":["string"],"privileged_user_modifier":42.0},"roles":["string"]}},"type":"user"}]}'