What is the command or steps to set Dlog4j2.formatMsgNoLookups=true across an entire server (vm)
I found this command for applying to a specific var java -Dlog4j2.formatMsgNoLookups=true -jar myapp.jar
but have been asked to deploy it across the entire OS not just to a single jar
As its not a redhat OS variable, its part of Java, and I am not Java experienced I am not sure, it doesn't seem to be in any config file.
On windows I understand it is a simple regedit, so does that mean it needs to go in bash profile as a env var or similar?
EDIT the answer from elsewhere, incase someone else is looking is export _JAVA_TOOL_OPTIONS= -Dlog4j2.formatMsgNoLookups=true
for tomcat its CATALINA_OPTS
which may be found inside catalina.sh