Excluding Specific Audit Messages From the BPM Log File
You can exclude specific audit messages from being logged by defining a rule in the CONFIG_DATA\bpm\bpm_app_name\configuration\ec-probe-rules.xml file.
Procedure
-
Open the
ec-probe-rules.xml file in a text editor and find the section defining the
default_localfile channel:
<channel name="default_localfile" target="LOCALFILE"> <rules> <rule name="BDSMessages_localfile" ruleOrder="800"> <filter> <component>BDS</component> </filter> <action> <!-- To enable local logging of the BDS Case Data Payload - change the following process to LocalLoggingProcess --> <messageProcess>LocalLoggingProcessNoManagedObjectDetails</messageProcess> </action> </rule> <rule name="BaseRule_locafile" ruleOrder="1000"> <filter> </filter> <action> <messageProcess>LocalLoggingProcess</messageProcess> </action> </rule> </rules> </channel>
-
Inside the
<rules> part of this section, add a new
excludeMessages rule, as follows:
<rule name="excludeMessages" ruleOrder="100"> <filter> <messageIds> <messageId>TEST</messageId> </messageIds> </filter> <action> </action> </rule>
-
Modify the new
excludeMessages rule, as follows:
- In the <messageId>, replace TEST with the Message ID of the audit message that you want to prevent from being logged.
- Add an additional <messageId> entry for each audit message that you want to prevent from being logged.
- To ensure that the excludeMessages rule will be processed, set the value of the ruleOrder attribute (100) so that it is lower than the value defined for all other rules defined for the default_localfile channel.
- Leave the <action> tag empty. (This means that the rule excutes the default action of excluding each messageId defined in the <filter> section.
<channel name="default_localfile" target="LOCALFILE"> <rules> <rule name="excludeMessages" ruleOrder="100"> <filter> <messageIds> <messageId>OS_AUDIT_LOGIN</messageId> <messageId>OS_AUDIT_LOGOUT</messageId> </messageIds> </filter> <action> </action> </rule> <rule name="BDSMessages_localfile" ruleOrder="800"> <filter> <component>BDS</component> </filter> <action> <!-- To enable local logging of the BDS Case Data Payload - change the following process to LocalLoggingProcess --> <messageProcess>LocalLoggingProcessNoManagedObjectDetails</messageProcess> </action> </rule> <rule name="BaseRule_locafile" ruleOrder="1000"> <filter> </filter> <action> <messageProcess>LocalLoggingProcess</messageProcess> </action> </rule> </rules> </channel>
- Save the modified ec-probe-rules.xml file.
-
Validate your changes to the
ec-probe-rules.xml file using the
TIBCO_HOME\bpm\version\bin\rulesinfo utility. For example:
rulesinfo validate -configdir C:\ProgramData\bpm1\tibco\data\bpm\amx.bpm.app\configuration
See Using the rulesinfo Utility to Validate the Event Probe Rules and Event Rules Files for more information about the rulesinfo utility.
- Check the BPM log file to verify that your changes are working and having the desired effect on the logged information.
Copyright © Cloud Software Group, Inc. All rights reserved.