Question

3
Replies
355
Views
NirmalaM2883 Member since 2017 15 posts
Flextronics International USA Inc
Posted: June 12, 2018
Last activity: March 2, 2019
Closed

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

Hello,

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>"/>
<Filters>
<!--Deny message logged under ALERT log level-->
<ThresholdFilter level="ALERT" onMatch="DENY" onMismatch="NEUTRAL"/>
</Filters>
<Policies>
<TimeBasedTriggeringPolicy />
<SizeBasedTriggeringPolicy size="250 MB"/>
</Policies>
<DefaultRolloverStrategy max="20"/>
</RollingRandomAccessFile>

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

System Administration
Moderation Team has archived post
Share this page LinkedIn