[
https://issues.apache.org/jira/browse/ARTEMIS-4929?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Justin Bertram updated ARTEMIS-4929:
------------------------------------
Description:
When messages in the queue are expired, it is logged in the audit log with
events:
{noformat}
AMQ601500: User admin(amq)@127.0.0.1:61979 sent a message CoreMessage ...
AMQ601759: User [email protected]:61979 added acknowledgement of a message
from TEST: ...
AMQ601502: User [email protected]:61979 acknowledged message from TEST:
...{noformat}
Source IP address and port in these events are the same like in previous events
(in this example, send message event).
How to reproduce:
- create default Artemis instance
- enable message audit logging in {{log4j2.properties}}
- send one test message with 1 second expiry using 127.0.0.1 loopback address
- wait some seconds for message expiry
- send another test message with expiry using computer's IP address
- wait some seconds for message expiry
- check {{audit.log}} for message send and acknowledge events
Example commands:
{noformat}
artemis producer --url=tcp://127.0.0.1:61616 --user=admin --password=admin
--message-count=1 --msgttl=1000{noformat}
{noformat}
artemis producer --url=tcp://192.168.0.1:61616 --user=admin --password=admin
--message-count=1 --msgttl=1000{noformat}
was:
When messages in the queue are expired, it is logged in the audit log with
events:
AMQ601500: User admin(amq)@127.0.0.1:61979 sent a message CoreMessage ...
AMQ601759: User [email protected]:61979 added acknowledgement of a message
from TEST: ...
AMQ601502: User [email protected]:61979 acknowledged message from TEST: ...
Source IP address and port in these events are the same like in previous events
(in this example, send message event).
How to reproduce:
- create default Artemis instance
- enable message audit logging in log4j2.properties
- send one test message with 1 second expiry using 127.0.0.1 loopback address
- wait some seconds for message expiry
- send another test message with expiry using computer's IP address
- wait some seconds for message expiry
- check audit.log for message send and acknowledge events
Example commands:
artemis producer --url=tcp://127.0.0.1:61616 --user=admin --password=admin
--message-count=1 --msgttl=1000
artemis producer --url=tcp://192.168.0.1:61616 --user=admin --password=admin
--message-count=1 --msgttl=1000
> Incorrect logging for anonymous user message acknowledgement events
> -------------------------------------------------------------------
>
> Key: ARTEMIS-4929
> URL: https://issues.apache.org/jira/browse/ARTEMIS-4929
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Affects Versions: 2.35.0
> Reporter: Aleksandr Milovidov
> Priority: Minor
>
> When messages in the queue are expired, it is logged in the audit log with
> events:
> {noformat}
> AMQ601500: User admin(amq)@127.0.0.1:61979 sent a message CoreMessage ...
> AMQ601759: User [email protected]:61979 added acknowledgement of a message
> from TEST: ...
> AMQ601502: User [email protected]:61979 acknowledged message from TEST:
> ...{noformat}
> Source IP address and port in these events are the same like in previous
> events (in this example, send message event).
> How to reproduce:
> - create default Artemis instance
> - enable message audit logging in {{log4j2.properties}}
> - send one test message with 1 second expiry using 127.0.0.1 loopback address
> - wait some seconds for message expiry
> - send another test message with expiry using computer's IP address
> - wait some seconds for message expiry
> - check {{audit.log}} for message send and acknowledge events
> Example commands:
> {noformat}
> artemis producer --url=tcp://127.0.0.1:61616 --user=admin --password=admin
> --message-count=1 --msgttl=1000{noformat}
> {noformat}
> artemis producer --url=tcp://192.168.0.1:61616 --user=admin --password=admin
> --message-count=1 --msgttl=1000{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact