Bug 157363
Summary: | Need to track IP address of request in tomcat logs | ||
---|---|---|---|
Product: | [Retired] Red Hat Network | Reporter: | Mike McCune <mmccune> |
Component: | RHN/Web Site | Assignee: | Mike McCune <mmccune> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Robin Norwood <robin.norwood> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rhn400 | CC: | rhn-bugs |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | RHN 4.0.0 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-08-31 21:29:50 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 151514 |
Description
Mike McCune
2005-05-10 21:59:33 UTC
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 case. 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 the catalina.out 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 combined_log file. In DEV you can see this in action on rlx-2-10.rhndev.redhat.com : /var/log/httpd/combined_log 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 plan. Thanks! TESTPLAN: 1) ssh root.redhat.com 2) tail -f /var/log/httpd/combined_log 3) Open browser and hit: https://rhn.webqa.redhat.com/rhn/users/ActiveList.do 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" "https://rhn.webqa.redhat.com/rhn/systems/Overview.do" 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 works. PROD_READY |