Question
Pegasystems Inc.
JP
Last activity: 10 Apr 2019 12:05 EDT
How to suppress the output of Pega related messages to the JBoss log (server.log/console.log)
We are using Pega Platform 7.4 deployed on JBoss v7.1
It seems that with the default prlog4j setting when an error occurs in Pega, the same message is output to 3 files.
1. PegaRULES.log
2. server.log
3. console.log
Since there is no difference in the message in 3 files, we want to suppress the output of Pega related messages to the JBoss log (server.log / console.log).
How can we aceive this ?
==log output looks below.
・PegaRULES.log
2019-04-05 16:08:53,474 [ PegaRULES-Batch-2] [ STANDARD] [ ] [ PegaRULES:07.10] ( internal.mgmt.Executable) ERROR - Only authenticated client may start this activity: RULE-OBJ-ACTIVITY M-WORK-TEST_LIU_CASE001 TEST_LIU_AGENT1_ACTIVITY #20190314T074814.645 GMT ReqID=BCNWLEFLX0L7BJWLNN7CCOFRLX51VNKCF
・server.log
2019-04-05 16:08:53,477 INFO [stdout] (Log4j2-AsyncLoggerConfig-1) 2019-04-05 16:08:53,474 [ PegaRULES-Batch-2] [ STANDARD] [ ] [ PegaRULES:07.10] ( internal.mgmt.Executable) ERROR - Only authenticated client may start this activity: RULE-OBJ-ACTIVITY M-WORK-TEST_LIU_CASE001 TEST_LIU_AGENT1_ACTIVITY #20190314T074814.645 GMT ReqID=BCNWLEFLX0L7BJWLNN7CCOFRLX51VNKCF
・console.log
16:08:53,477 INFO [stdout] (Log4j2-AsyncLoggerConfig-1) 2019-04-05 16:08:53,474 [ PegaRULES-Batch-2] [ STANDARD] [ ] [ PegaRULES:07.10] ( internal.mgmt.Executable) ERROR - Only authenticated client may start this activity: RULE-OBJ-ACTIVITY M-WORK-TEST_LIU_CASE001 TEST_LIU_AGENT1_ACTIVITY #20190314T074814.645 GMT ReqID=BCNWLEFLX0L7BJWLNN7CCOFRLX51VNKCF
We are using Pega Platform 7.4 deployed on JBoss v7.1
It seems that with the default prlog4j setting when an error occurs in Pega, the same message is output to 3 files.
1. PegaRULES.log
2. server.log
3. console.log
Since there is no difference in the message in 3 files, we want to suppress the output of Pega related messages to the JBoss log (server.log / console.log).
How can we aceive this ?
==log output looks below.
・PegaRULES.log
2019-04-05 16:08:53,474 [ PegaRULES-Batch-2] [ STANDARD] [ ] [ PegaRULES:07.10] ( internal.mgmt.Executable) ERROR - Only authenticated client may start this activity: RULE-OBJ-ACTIVITY M-WORK-TEST_LIU_CASE001 TEST_LIU_AGENT1_ACTIVITY #20190314T074814.645 GMT ReqID=BCNWLEFLX0L7BJWLNN7CCOFRLX51VNKCF
・server.log
2019-04-05 16:08:53,477 INFO [stdout] (Log4j2-AsyncLoggerConfig-1) 2019-04-05 16:08:53,474 [ PegaRULES-Batch-2] [ STANDARD] [ ] [ PegaRULES:07.10] ( internal.mgmt.Executable) ERROR - Only authenticated client may start this activity: RULE-OBJ-ACTIVITY M-WORK-TEST_LIU_CASE001 TEST_LIU_AGENT1_ACTIVITY #20190314T074814.645 GMT ReqID=BCNWLEFLX0L7BJWLNN7CCOFRLX51VNKCF
・console.log
16:08:53,477 INFO [stdout] (Log4j2-AsyncLoggerConfig-1) 2019-04-05 16:08:53,474 [ PegaRULES-Batch-2] [ STANDARD] [ ] [ PegaRULES:07.10] ( internal.mgmt.Executable) ERROR - Only authenticated client may start this activity: RULE-OBJ-ACTIVITY M-WORK-TEST_LIU_CASE001 TEST_LIU_AGENT1_ACTIVITY #20190314T074814.645 GMT ReqID=BCNWLEFLX0L7BJWLNN7CCOFRLX51VNKCF
==Current prlog4j setting is below.
prweb.war
WEB-INF/classes/prlog4j2.xml
<Console name="CONSOLE" target="SYSTEM_OUT">
<PatternLayout pattern="%d [%20.20t] [%10.10X{pegathread}] [%20.20X{tenantid}] [%20.20X{app}] (%30.30c{3}) %-5p %X{stack} %X{userid} - %m%n"/>
<Filters>
<!--Deny message logged under ALERT log level-->
<ThresholdFilter level="ALERT" onMatch="DENY" onMismatch="NEUTRAL"/>
</Filters>
</Console>
***Edited by Moderator: Pallavi to update platform capability tags***