> 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.15/reference-docs/reference/server-configurations/elasticsearch-server-configurations.md).

# Elasticsearch Server Configurations

Reference Cortex XSOAR 6.15 server configurations for Elasticsearch.

| 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.15/onboard-cortex-xsoar/elasticsearch/elasticsearch-security.md#UUID-339e0b0c-a90e-2688-ef5b-7ff144c2b9ef_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.15/onboard-cortex-xsoar/elasticsearch/elasticsearch-security.md#UUID-339e0b0c-a90e-2688-ef5b-7ff144c2b9ef_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 following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

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.
