> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/reference/server-configurations/elasticsearch-server-configurations.md).

# Elasticsearch Server Configurations

| Key                                                         | Description                                                                                                                                                                                                                                                                                                                                                                                               | Default     |
| ----------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| **`application.statistics.update.disable`**                 | Disables the Return on Investment (ROI) statistics flag. Recommended to change to true if you do not need ROI as it may affect performance.                                                                                                                                                                                                                                                               | **`false`** |
| **`elasticsearch.aggregations.optimize`**                   | Enables you to search with Elasticsearch aggregations rather than searching locally in Cortex XSOAR. Default is true (search with aggregations).                                                                                                                                                                                                                                                          | **`true`**  |
| **`elasticsearch.allowOwnerAggs`**                          | Gets a list of suggested owners with Elasticsearch aggregations rather than locally in Cortex XSOAR. Default is true (gets a list with aggregations).                                                                                                                                                                                                                                                     | **`true`**  |
| **`elasticsearch.maxresultwindowforindex.common-incident`** | Limits the amount of incident results returned. Default is 10,000 documents (or `maxresultwindow` if defined in `demisto.conf`). We recommend changing it to 5000, as incidents are big documents and could affect performance.                                                                                                                                                                           | 10,000      |
| **`elasticsearch.replicas.`*****`<common-indicator>`***     | Sets the number of replica shards for an index upon creation, where ***`<common-indicator>`*** is the name of the index. The value of the replica shards and shards should match the total sum of Elasticsearch nodes. For more information, see [Elasticsearch System Requirements](https://app.gitbook.com/s/ocx7Q2eheJysMwmfd13T/elasticsearch/elasticsearch-setup/elasticsearch-system-requirements). | **`1`**     |
| **`elasticsearch.shards.`*****`<common-indicator>`***       | Sets the number of shards for an index upon creation, where ***`<common-indicator>`*** is the name of the index. The value of the replica shards and shards should match the total sum of Elasticsearch nodes. For more information, see [Elasticsearch System Requirements](https://app.gitbook.com/s/ocx7Q2eheJysMwmfd13T/elasticsearch/elasticsearch-setup/elasticsearch-system-requirements).         | **`1`**     |
| **`Security.elasticsearch.account`**                        | (Multi-tenant) Enables [security features](/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/onboarding-in-cortex-xsoar/elasticsearch/elasticsearch-security.md#UUID-888972d8-d784-2d42-46b0-eb97622665b0_ide743eca1-3f60-4900-87ff-602a73540c17) in Elasticsearch. Change to false to override and disable security.                                                                            | **`true`**  |
| **`Security.elasticsearch.apikey`**                         | (Multi-tenant) If there is no API key on the main/host configuration, you can [create an API key](/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/onboarding-in-cortex-xsoar/elasticsearch/elasticsearch-security.md#UUID-888972d8-d784-2d42-46b0-eb97622665b0_id732163c4-87ba-4c0a-bd8b-bcac19196322) for a tenant.                                                                           | **`true`**  |
| **`server.large.html.unsearchable`**                        | Set to false to make html fields searchable in the UI. To limit memory consumption, by default, indexing for HTML fields is disabled.                                                                                                                                                                                                                                                                     | true        |
| **`server.large.markdown.unsearchable`**                    | Set to `false` to make markdown fields searchable in the UI. To limit memory consumption, by default, indexing for markdown fields is disabled.                                                                                                                                                                                                                                                           | true        |
| **`server.text.max.characters`**                            | For both Bolt DB and Elasticsearch, by default, indexing HTML, markdown, and long text fields, are set to 30,000 characters. If large fields are detected, only the first 30,000 characters are searchable. Increasing the amount may have a detrimental effect on performance.                                                                                                                           | 30000       |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/reference/server-configurations/elasticsearch-server-configurations.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
