Can we add custom log pattern converter using log4j2 converters plugin to change the log format in opensearch?

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 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 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 ‘’ 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.



Relevant Logs or Screenshots: