Skip to main content

Limit of total fields has been exceeded

in Problem Checker
Authors list
Published: Apr 3, 2024|Last updated: Apr 10, 2024

Deskpro by default has a set number of pre-generated fields in Elasticsearch (58). Elasticsearch has a total of 1000 fields available by default.

The OPC problem checker has 3 alert levels for the total field count: Low: 90% of fields used Medium: 95% of fields used High: 99% of fields used

The alert may show in the problem checker like one of these examples: ![image.png](https://support.deskpro.com/file.php/34844541CARWNXCMXAXGGAB0/image.png?access_token=sbq1qm-raiofgythh-85cab2d6f19ae38cd8b1686bac3cccc6164d2dbc have two methods to increase the total field value, through the OPC GUI and on the CLI.

Warning

The total field limit is set to prevent mapping explosion, which can cause out of memory errors and other performance issues. We suggest increasing the value to 2000 and you should not need to increase the value beyond this amount.

GUI method:Copy link to GUI method: to clipboard

To increase the total field value from within the OPC CLI navigate to your your instance Elasticsearch settings page, then click 'Edit Parameters': image.png

In the 'Advanced connection Settings' card you have the option to increase the total fields limit: image.png

Once you have set the value you require, click 'Save changes' to apply the configuration change.

CLI methodCopy link to CLI method to clipboard

To increase the total field value you run the below command, replacing <index_name> with the name of your helpdesks Elasticsearch index name and URL, these can be found on the instance Elasticsearch settings page: image.png

index url: By default the URL is set to: http://localhost:9200 Index: In the above example the index name is dp_testinst

curl --location --request PUT '<index_url>/<index_name>/_settings' --header 'Content-Type: application/json' --data '{"index.mapping.total_fields.limit": 2000}'
copy

So using the above example, the command would be:

curl --location --request PUT 'http://localhost:9200/dp_testinst/_settings' --header 'Content-Type: application/json' --data '{"index.mapping.total_fields.limit": 2000}'
copy

The command will return the following if successful:

{"acknowledged":true}
copy
HelpfulUnhelpful
next pageWhat are decisions?
previous pageList of problem checks and their urgency

Please log in or register to submit a comment.