This content has been marked as final. 
    
Show                 4 replies
    
- 
        2. Re: Wildfly 10 :: Logging remote ip addressshafqatag01 Jan 31, 2018 2:12 PM (in response to jamezp)Hi James, I am new in Wildfly & i want to log remote ip address (TCP IP connection) in server.log file. Kindly share to me easy steps to enable these logs. 
 Regards,Shafqat
- 
        3. Re: Wildfly 10 :: Logging remote ip addressshafqatag01 Feb 2, 2018 7:30 AM (in response to jamezp)Dear James, Thanks for your reply. I need more help. Following setting where i have to set. in which file i need to add these below setting. MDC.put("IP", req.getRemoteAddr());
 logger.info("This is a test log message");
 MDC.remove("IP");Regards, Shafqat Ahmed. 
- 
        4. Re: Wildfly 10 :: Logging remote ip addressjamezp Feb 5, 2018 12:08 PM (in response to shafqatag01)In the servlet or interceptor you'd want the IP logged from. -- James R. Perkins 
 
     
    