Red Hat Bugzilla – Bug 157363
Need to track IP address of request in tomcat logs
Last modified: 2007-04-18 13:25:14 EDT
Currently it only shows the MODJK address and not the request IP. Need to see
if there is a way we can forward this addr to tomcat.
This may be a non issue now since the Java boxes will have Apache running on
them as well. When this bug was written we had apache, mod_perl and mod_jk
installed on one box, then tomcat on another sitting behind the perl box.
This is no longer
The current architecture puts the java boxes at the same level as the perl
boxes. That is we have apache and mod_perl on the perl boxes (removed modjk).
Then added apacheee and modjk to the Java boxes. So the ip addresses inside
file will be the ip of the apache process. But the requests can also be
logged through apache so I believe that makes this bug go away.
To verify look at rlx-2-10 in the /var/log/httpd directory for the information
you seek. rhnweb.back-webdev.redhat.com no longer has modjk on it. I removed
it last week.
Modified the apache configuration to include the requester's IP address in the
In DEV you can see this in action on rlx-2-10.rhndev.redhat.com :
This is going to be included in the 7-7 QA push.
Does this bug need to be tested in our QA env? If so, please provide a test
1) ssh firstname.lastname@example.org
2) tail -f /var/log/httpd/combined_log
3) Open browser and hit:
4) Verify in the tailed log that you get the below style output:
172.16.24.78 [12/Jul/2005:20:10:11 -0400] - "GET /rhn/users/ActiveList.do
HTTP/1.1" 200 72475 1 20204 "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8)
Gecko/20050512 Red Hat/1.0.2 Firefox/1.0.4"
where the first set of numbers listed is the IP address of your workstation
where you sent the request from.
FYI, I just ran through this exact TESTPLAN myself and it works fine.
Setting rnorwood as qa contact for java migration bugs