Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/classic/documentation/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ Questions on configuring ActiveMQ Classic's JMS client or the Message Broker
* [How to configure a new database](how-to-configure-a-new-database)
* [How to deploy activemq-ra-version.rar to weblogic](how-to-deploy-activemq-ra-versionrar-to-weblogic)
* [How to disable multicast discovery](how-to-disable-multicast-discovery)
* [How to redact sensitive info on audit log](how-to-redact-sensitive-info-on-audit-log)

### Persistence Questions

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
layout: default_md
title: How to redact sensitive info on audit log
title-class: page-title-classic
type: classic
---

 [FAQ](faq) > [Configuration](configuration) > [How to redact sensitive info on audit log](how-to-redact-sensitive-info-on-audit-log)

To reduce sensitive information on audit log, such as hiding JMSText (which shows the message you sent to the destination if you do it via the web console), you can change the audit log pattern. For instance, if you want to hide JMSText, you change this line of the log4j2.properties of broker configuration

Replace
```
appender.auditlog.layout.type=PatternLayout
appender.auditlog.layout.pattern=%-5p | %m | %t%n
```

With
```
appender.auditlog.layout.type=PatternLayout
appender.auditlog.layout.pattern=%-5p | %replace{%m}{JMSText='(.*)'}{<redacted>} | %t%n
```