---
title: "Update the Entity Store"
method: PUT
path: "/api/security/entity_store"
tags: ["Security entity store"]
---

# Update the Entity Store

`PUT /api/security/entity_store`

**Spaces method and path for this operation:**

<div><span class="operation-verb put">put</span>&nbsp;<span class="operation-path">/s/{space_id}/api/security/entity_store</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Update the Entity Store log extraction configuration.<br/><br/>[Required authorization] Route required privileges: securitySolution.

## Headers

- `kbn-xsrf` string, required

## Request body

- object
  - `logExtraction` object, required
    - `additionalIndexPatterns` string[]
    - `delay` string
    - `docsLimit` integer
    - `excludedIndexPatterns` string[]
    - `fieldHistoryLength` integer
    - `frequency` string
    - `lookbackPeriod` string
    - `maxLogsPerPage` integer
    - `maxLogsPerWindow` integer
    - `maxLogsPerWindowCapBehavior` 'defer' | 'drop'
    - `maxTimeWindowSize` string

## Response `200`

Indicates a successful response.

## Other responses

- `400` — Bad request.
- `404` — Entity Store not found.

## Changes

- **2026-08-17** `5be5c88425ac` — 6 warning, 11 info
  - the `logExtraction/additionalIndexPatterns/items/` request property's maxLength was set to `2048`
  - the `logExtraction/delay` request property's maxLength was set to `32`
  - the `logExtraction/excludedIndexPatterns/items/` request property's maxLength was set to `2048`
  - the `logExtraction/frequency` request property's maxLength was set to `32`
  - …13 more

[Change history](https://skmtc.dev/elastic/apis/kibana-apis/changes/api/security/entity_store/put.md)

---

[API](https://skmtc.dev/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.dev/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/elastic/kibana-apis/revisions/5ea4e2bef343/schema)
