This is a discussion on Remote IP address not getting logged within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello all, My configuration look like this: LogFormat "%a %l %u %t \"%r\" %>s %b \"%{...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello all,
My configuration look like this: LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i \" %D" combined CustomLog "|/usr/sbin/rotatelogs /home/y/logs/httpd/access_log-%Y-%m- %d-%H 3600" combined This is not logging the remote ip address, instead is logged as "::" as follows: :: - - [04/Apr/2008:01:23:40 -0700] "GET /status.html HTTP/1.0" 404 296 "-" "-" 203 :: - - [04/Apr/2008:01:23:40 -0700] "GET /status.html HTTP/1.0" 404 296 "-" "-" 107 Any clue on what configuration change required? I am running httpd-2.0.59 on RHEL4. Other configuration parameters: ServerName localhost Listen 8081 HostnameLookups off Thanx, -- baliga |
|
|||
|
"Yogish Baliga" <baliga@gmail.com> wrote in message
news:5360160d-da03-4711-91c4-cd8062767c50@s8g2000prg.googlegroups.com... > Hello all, > > My configuration look like this: > > LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i > \" %D" combined > CustomLog "|/usr/sbin/rotatelogs /home/y/logs/httpd/access_log-%Y-%m- > %d-%H 3600" combined > > This is not logging the remote ip address, instead is logged as "::" > as follows: > > :: - - [04/Apr/2008:01:23:40 -0700] "GET /status.html HTTP/1.0" 404 > 296 "-" "-" 203 > :: - - [04/Apr/2008:01:23:40 -0700] "GET /status.html HTTP/1.0" 404 > 296 "-" "-" 107 > > Any clue on what configuration change required? > > I am running httpd-2.0.59 on RHEL4. > > Other configuration parameters: > > ServerName localhost > Listen 8081 > HostnameLookups off > As you have hostname lookups switched off, try %h instead of %a. |
|
|||
|
On Apr 4, 2:06*am, "phantom" <nob...@blueyonder.invalid> wrote:
> "Yogish Baliga" <bal...@gmail.com> wrote in message > > news:5360160d-da03-4711-91c4-cd8062767c50@s8g2000prg.googlegroups.com... > > > > > Hello all, > > > *My configuration look like this: > > > LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i > > \" %D" combined > > CustomLog "|/usr/sbin/rotatelogs /home/y/logs/httpd/access_log-%Y-%m- > > %d-%H 3600" combined > > > This is not logging the remote ip address, instead is logged as "::" > > as follows: > > > :: - - [04/Apr/2008:01:23:40 -0700] "GET /status.html HTTP/1.0" 404 > > 296 "-" "-" 203 > > :: - - [04/Apr/2008:01:23:40 -0700] "GET /status.html HTTP/1.0" 404 > > 296 "-" "-" 107 > > > Any clue on what configuration change required? > > > I am running httpd-2.0.59 on RHEL4. > > > Other configuration parameters: > > > ServerName localhost > > Listen 8081 > > HostnameLookups off > > As you have hostname lookups switched off, try %h instead of %a. Tried that.. but no luck... Some how request_rec->connection- >remote_ip is being set to "::" |
|
|||
|
"Yogish Baliga" <baliga@gmail.com> schreef in bericht
news:5360160d-da03-4711-91c4-cd8062767c50@s8g2000prg.googlegroups.com... > LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i > \" %D" combined > CustomLog "|/usr/sbin/rotatelogs /home/y/logs/httpd/access_log-%Y-%m- > %d-%H 3600" combined > > This is not logging the remote ip address, instead is logged as "::" > as follows: > :: - - [04/Apr/2008:01:23:40 -0700] "GET /status.html HTTP/1.0" 404 > 296 "-" "-" 203 > :: - - [04/Apr/2008:01:23:40 -0700] "GET /status.html HTTP/1.0" 404 > 296 "-" "-" 107 > Those colons make me wonder about IPv6-ish conflicts. Try http://kbase.redhat.com/faq/FAQ_45_5360.shtm Just 2cnt HansH |
| Thread Tools | |
| Display Modes | |
|
|