Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
Describe the issue:
I want to link a custom Log4j2 log converter with a console appender in the log4j2.properties
file. This will modify the format of audit logs generated by the ‘sgaudit’ logger. To accomplish this, I need to include the Log4j2 converter code in the setup referenced by the log4j2.properties
file. For instance:
appender.sgauditAppender.layout.pattern = {“log”:{“message”:“%eventType”}}%n
Here, ‘eventType’ serves as the converterKey.
However, I’m uncertain about where to position the ‘converter.java’ file to enable this setup.
My query revolves around the possibility of linking a custom Log4j2 log converter and, if feasible, the directory path where I should place the converter JAR or package.
Thanks!!
Vivek
Configuration:
Relevant Logs or Screenshots: