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 SiteAssignee: Mike McCune <mmccune>
Status: CLOSED CURRENTRELEASE QA Contact: Robin Norwood <robin.norwood>
Severity: medium Docs Contact:
Priority: medium    
Version: rhn400CC: 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
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.

Comment 1 Jesus M. Rodriguez 2005-07-06 14:17:26 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.

Comment 2 Mike McCune 2005-07-06 18:00:56 UTC
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.

Comment 3 Fanny Augustin 2005-07-12 21:10:32 UTC
Does this bug need to be tested in our QA env?  If so, please provide a test
plan. Thanks!

Comment 4 Mike McCune 2005-07-13 00:11:56 UTC
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.  


Comment 5 Bret McMillan 2005-07-26 01:13:25 UTC
Setting rnorwood as qa contact for java migration bugs

Comment 6 Robin Norwood 2005-07-26 16:25:52 UTC
works.  PROD_READY