Question
Ernst & Young
BR
Posted: Jun 24, 2024
Last activity: Jun 27, 2024
Last activity: 27 Jun 2024 15:27 EDT
log Pega for log4j
Hey guys,
How do I transform Pega log to log4j?
Hey guys,
How do I transform Pega log to log4j?
@FabianoL3247 PEGA generated logs follow log4j implementation, can you elaborate what is your issue.
@FabianoL3247 You must edit the 'prlogging.xml' file to include the additional Appender or you can try the approach as per this article: https://support.pega.com/discussion/how-convert-pega-rules-log-json-format
Thanks for the feedback. We almost reached the expected result. When we opened the log in Json format, it was a little messy. Try to find out more about this subject.
To transform log4j logs into JSON format in Pega, you need to configure the log4j properties file (or XML configuration file) to use a JSON layout for the logs. This can be done by leveraging the JsonLayout
class from log4j, which formats the logs in JSON.
Locate the Log4j Configuration File:
prlogging.xml
or log4j2.xml
and is located in the WEB-INF/classes
directory of your Pega application.Backup the Configuration File:
Modify the Log4j Configuration File:
JsonLayout
for the desired appenders.
Thanks for the feedback. I'm having difficulty making this modification. I don't know how the Json log should show, layout. Do you have a log image as it should appear?
Question
Question Solved
Question
Question
Question
Question
Question Solved
Question
Question
Question
Pega Collaboration Center has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.