---
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.

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
