• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Need to log client IP address in clustered environment

 
Ranch Hand
Posts: 86
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I need to log the client IP address of http requests made of a JBoss cluster.

In this case, the source of the http request is actually an F5 load balancer, but that device provides the original client IP as an http field. How can I get that information into the logfile?

I've tried to hunt down documentation, but have failed. If anyone can point me at relevant docs, that would be great. Or any clue would be helpful.

Many thanks in advance,
Cheers,
Toby.
 
JavaMonitor Support
Posts: 251
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Toby,

Here is a discussion how to use the HTTP x-forwarded-for from code. The code snippet is designed for use behind an Apache httpd, but it will work for an F5 big ip, provided it is configured to insert that HTTP header when it load balances your HTTP requests.
 
reply
    Bookmark Topic Watch Topic
  • New Topic