Hi everyone!
I'm using elasticsearch v 7.1 and v 6.2 and I'm trying to configure elastic log via log4j.properties file to show only info and errors, and hide the warnings.
How do I do that?
I tried to read the apchee page but I didn't see any direct refrence to this issue or to configuring via file.
I looked at the elastic page - Logging | Elasticsearch Guide [8.11] | Elastic
and didn't find any answers there either.
Actually, it could be done, but you would need to write your own log4j appender to customize not propagate warn messages.
However, this is really not recommended. Why do you want to omit warning messages? They are important, and ignoring them can lead to problems later, like when upgrading.
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.