I was trying this code snippet in my log4j2.propeties file to pass additionalFields but it is failing. Any help on this would be great help!
appender.elkRollingFile.layout.additionalFields[0].key=abc
appender.elkRollingFile.layout.additionalFields[0].value=def