Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ElasticSearch has deprecated the use of ignore_throttled #11823

Closed
user29835461 opened this issue Dec 15, 2021 · 3 comments
Closed

ElasticSearch has deprecated the use of ignore_throttled #11823

user29835461 opened this issue Dec 15, 2021 · 3 comments
Labels

Comments

@user29835461
Copy link

ElasticSearch has deprecated the use of ignore_throttled. Graylog should probably be updated at some point to reflect the change in ElasticSearch. At this moment this causes only warnings in the logs, but future versions might drop the support for the parameter, and the queries might fail.

Relevant deprecation warning:

2021-12-15T09:34:22.667+02:00 WARN [RestClient] request [GET http://server:9200/techlog_*/_alias?ignore_throttled=false&ignore_unavailable=false&expand_wildcards=open&allow_no_indices=false] returned 1 warnings: [299 Elasticsearch-7.16.1-5b38441b16b1ebb16a27c107a4c3865776e20c53 "[ignore_throttled] parameter is deprecated because frozen indices have been deprecated. Consider cold or frozen tiers in place of frozen indices."]

@bernd bernd added triaged and removed triaged labels Dec 20, 2021
@bernd
Copy link
Member

bernd commented Dec 20, 2021

Thanks for the information. The ignore_throttled parameter got deprecated in 7.16. Graylog doesn't support ES newer than 7.10 at the moment. See #11804 (comment) on information about ES version support.

@bernd bernd closed this as completed Dec 20, 2021
@mnsmithuk
Copy link

Hi,

On docker hub their scans shows that the log4js vunerability in Elasticsearch was fixed in 7.16.1. All previous versions contained the vunerability. This means that support for latest version of elasticsearch needs to bumped up asap.

Are there any work arounds so that 7.10 can still be used ?

@Seb35
Copy link

Seb35 commented Jan 17, 2022

It worth what it worth, but a filter can be set in log4j (file /etc/graylog/server/log4j2.xml on GNU/Linux). My guess is that less resources are spent when executing a regex than when writing a line in a log file.

         <RollingFile name="rolling-file" fileName="/var/log/graylog-server/server.log" filePattern="/var/log/graylog-server/server.log.%i.gz">
+            <RegexFilter regex=".* parameter is deprecated .*" onMatch="DENY" onMismatch="NEUTRAL"/>
             <PatternLayout pattern="%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX} %-5p [%c{1}] %m%n"/>

Also, there is a parameter "elasticsearch_mute_deprecation_warnings" in Graylog’s server.conf (see #10239), but this specific message pattern "parameter is deprecated" does not match the list of patterns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants