Hello everyone,
I’m trying to enable the audit logging for messages in Openfire. It’s very straightforward. To do so, I navigated to Server Settings > Message Audit Policy from the web console and, on Message Audit Policy
, I checked the Enable Message Auditing
and also Audit Message Packets
This seems to be working OK, since the messages are logged.
However, if I turn on the encryption, the messages are logged (which is OK), but its bodies are also logged (which I don’t want to happen). For example, I would like that a message like this:
<packet xmlns="http://www.jivesoftware.org" streamID="2e979631" status="auth" timestamp="May 19, 2015 12:31:23:413 PM"> <message xmlns="" id="q3XC4-140" to="user_001@my-host/Spark 2.7.0" from="user_002@my-host/Spark 2.7.0" type="chat"> <body> ?OTR:AAICAAAAxAwgZ/0n9l/i9NYwpSLh2xwXbPpcFs0JxsOBIXC5S5reKhtzcehimpaH1MvE6J596zlkb7nMxEfOgOvrzHKTEj8yS5whUFrVKkidEZVxjzXjiinkB5uOsNLumoDcEEcN10Eprt+/vytriI1y1XXnCfwkIflgabzaVs+cN8CVsR2O43q2/pr4sjykzAs3Qc1mT4IeOqDs9/Dbws3ermf3qASArFqrRgqfuthSnDJ+Pi3sjqb77UYLeeVDmsxSUAiao6BsUv0AAAAgXc64F/p3wKHcAWGybZamJYVxCSnStSmHq8xH/6nE6ps=. </body> <thread>Njd6Sr</thread> </message> </packet>
To be logged like this:
<packet xmlns="http://www.jivesoftware.org" streamID="2e979631" status="auth" timestamp="May 19, 2015 12:31:23:413 PM"> <message xmlns="" id="q3XC4-140" to="user_001@my-host/Spark 2.7.0" from="user_002@my-host/Spark 2.7.0" type="chat"> <thread>Njd6Sr</thread> </message> </packet>
So, the message would still be logged, but with no <body>
tag, just the from
, to
and the timestamp.
Is this possible to do, to exclude logging the body for encrypted messages?
Best regards and thanks in advance