<div dir="ltr">We are interested in logging source IP in audit logs to facilitate forensic investigations. I assumed would be straightforward to add the %a audit field to log the source IP, but I've ended up with little to show for my efforts. It appears that the only way to get the source IP is thus:<div><br></div><div>PRC->SpringRequestContext->... lots of drilling...->HttpServletRequest->getRemoteAddr()</div><div><br></div><div>Is that truly the only way? Assuming yes it seems fairly difficult for getting at such an important piece of information as the source IP that one might want to include in audit logs. I think we need something to facilitate getting that information. Three options occur to me:</div><div><br></div><div>1. New context that holds the source IP (similar to UserAgentContext)</div><div>2. Add peerAddress field to MessageContext and populate for inbound message</div><div>3. Custom function to dig it out of the SpringRequestContext</div><div><div><br></div><div>Thoughts?</div><div><br></div><div>M</div><div><br></div></div></div>