How to use custom log4j2.properties


#1

Hi, i need to run two separate instances of logstash with different configurations of log4j2.properties. Is it possible to specify a custom file on execution? If so, please share some examples. Thank you.


(Magnus Bäck) #2

Logstash has several command-line options for choosing which directories to use and I'm sure one of them can be used to (perhaps indirectly) select which log4j2.properties file to use.


#3

May i know which is the option to do that? I cant seem to find such an option.


(Magnus Bäck) #4

Search for log4j in https://www.elastic.co/guide/en/logstash/current/command-line-flags.html.


(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.