Nirmala Mutte (NirmalaM2883)
Flextronics International USA Inc

Flextronics International USA Inc
NirmalaM2883 Member since 2017 15 posts
Flextronics International USA Inc
Posted: June 12, 2018
Last activity: March 2, 2019
Posted: 12 Jun 2018 17:56 EDT
Last activity: 2 Mar 2019 14:54 EST

How to add appenders to prlog4j2.xml to enable Json appender


We are trying to enable ELK for Pega platform server. For this we need to add json appender to prlog4j2.xml. We can find this file only in Tomcat homedir webapps/prweb/WEB-INF/classes. But adding the appenders to prlog4j2.xml at this location is not taking changes at all. what is the correct location to add the appenders?

Here is appender information

<RollingRandomAccessFile name="JSONAppender" fileName="${sys:pega.tmpdir}/PegaRULES.json.log" filePattern="${sys:pega.tmpdir}/PegaRULES-%d{MM-dd-yyyy}-%i.json.log.gz">
<LogStashJSONLayoutPega userFields="src-vm:<value>,src-node:system1,src-env:<value>"/>
<!--Deny message logged under ALERT log level-->
<ThresholdFilter level="ALERT" onMatch="DENY" onMismatch="NEUTRAL"/>
<TimeBasedTriggeringPolicy />
<SizeBasedTriggeringPolicy size="250 MB"/>
<DefaultRolloverStrategy max="20"/>

***Edited by Moderator Marissa to update platform capability tags***

System Administration
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.