how can i increase index.max_result_window in graylog ? (3.3.4)
is there any command or place from where i can change limit ?
While retrieving data for this widget, the following error(s) occurred:
Elasticsearch limits the search result to 10000 messages. With a page size of 150 messages, you can use the first 66 pages. Search type returned error: Result window is too large, from + size must be less than or equal to: [10000] but was [23250]. See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max_result_window] index level setting.
@Justmfree You can configure index.max_result_window setting in your Elasticsearch cluster configuration i.e. /etc/elasticsearch/elasticsearch.yml. As you know that after taking an effect of new configuration you need to restart ES service.
@Justmfree Yes, you are right. The max_result_window is a dynamic index level setting, not node specific. The default is 10,000, so if that’s the value you’d like to set, there should be no need.
You can adjust it by updating either a specific index settings or globally across all existing indices:
PUT _settings
{
"index.max_result_window": 11000
}
Else, you can take look at below ES guide link for more information.
tried but returned error:
{“error”:{“root_cause”:[{“type”:“illegal_argument_exception”,“reason”:“persistent setting [index.max_result_window], not recognized”}],“type”:“illegal_argument_exception”,“reason”:“persistent setting [index.max_result_window], not recognized”},“status”:400}
To update this setting on all existing indexes just do the same query on the URL http://127.0.0.1:9200/_settings
To apply it on all future indexes you need to create a template: curl -XPUT -H 'Content-Type: application/json' -d '{"index_patterns": ["graylog_*"], "settings": {"index.max_result_window": 20000}}' 'http://127.0.0.1:9200/_template/template_1'