Infinity 23 - JSON Log Appender

We are currently not able to monitor our Pega logs files correctly in ELK and need to create a separate logger in JSON format that be consumed correctly. I believe the steps below would need to be followed but would be grateful for a confirmation if anyone else done similar:

Pega uses Log4j2 with plain-text pattern layouts, though it does support natively logging through JSON layout.

  1. We need to locate the prlog4j2.jar and extract log4j2.xml
  2. Create a custom appender that uses JSON layout e.g.:




  3. Attach it to the root logger e.g.:


    <AppenderRef=“JsonFile”/>

Note: Pega upgrades will overwrite the log4j2.

@Jitesh If you haven’t yet, you should try the configuration mentioned here How to convert Pega rules LOG to JSON format ? | Support Center

@PhilipShannon Thanks, much appreciated. Do we know if this solution has been tested and known to be working?

@Jitesh Yes this is a known good configuration