We had a log4j settings that has set the logging level of org.elasticsearch.deprecation to ERROR that we set from the _cluster/settings endpoint. Ever since we upgraded to 6.8.6, that settings stopped working and the cluster logs a huge number of deprecation warnings. Is there anything that changed from 6.1 to 6.8? We recently upgraded from 6.1.0 to 6.8.0
I think 90% of the warning comes from these 2: Deprecated field [_version_type] used, expected [version_type] instead
and Accessing variable [_agg] via [params._agg] from within a scripted metric agg init script is deprecated in favor of using [state].
Until we make a code change, we'd like to silence the warnings since it's quite noisy and impacts our bill for logging to sumo logic
I already tried setting it both as transient and persistent actually. Our staging environment has it enabled and I just want to silence it in production
Can you share the output of the Elasticsearch settings with GET _cluster/settings?include_default, the log4j2.properties and tell if you're running on Docker?
Thanks David and Luca. The settings was there before and after the upgrade. It's just doesn't seem to do anything. I tried setting it to ERROR multiple times but it's not effective.
However, I just found that resetting "logging.org.elasticsearch.deprecation": null AND setting it to ERROR again from the cluster setting did the job. But it definitely didn't work without setting it to null first. Maybe somehow the rolling restart upgrade invalidate the setting and caused Elasticsearch to not picking up the change from PUT /_cluster/settings because it's thinking the changes are the same with what it currently have?
I'll mark this as resolved because my problem has been solved. I've linked the log of GET _cluster/settings and my log4j2.properties, just in case Elasticsearch team wants to dig deeper
log4j2.properties
_cluster/settings
_cluster/settings?include_default contains quite a bit sensitive info like IPs and such so I'm not sharing it here. However, if you can tell me what settings you need, I'll fetch it
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.