How to log remote IP address in case of authentication failure in activemq ?

Solution Unverified - Updated -

Issue

  • In case of authentication failure, ActiveMQ currently logs something like:
[ActiveMQ NIO Worker 7126] WARN Service - Security Error occurred: User name [_________] or password is invalid.
  • In order to find the culprit client, it would be very useful to add the remote IP address (and port) used while authenticating. How is it possible?

  • Currently we see that the time-out warnings do log such information but not the authentication failure warning messages:

[InactivityMonitor Async Task: java.util.concurrent.ThreadPoolExecutor$Worker@4182d5fc[State = -1, empty queue]] WARN Transport - Transport Connection to: tcp://10.10.10.10:39338 failed: org.apache.activemq.transport.InactivityIOException: Channel was inactive for too (>3600000) long: tcp://10.10.10.10:39338
  • How to log client IP address in the logs in case of authentication failure ?

Environment

  • Red Hat JBoss A-MQ
    • 6.1.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.