Is it possible to configure the deprecation logs of Logstash as JSON entries?
log.format: json
works fine for the 'normal' logs, but not for deprecation ones. I've checked log4j2.properties and it seems that some kind of log4j magic could work(?)
I could not so far produce such a config, anyone else had or have a better idea?
You could add another section to log4j2.properties to define a deprecation_json_rolling logger and then modify the appenderRef to use deprecation_${sys:ls.log.format}_rolling. (Obviously the rolling part is optional, and if you need it for deprecation logs... )
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.