Remote IP address not getting logged

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 \"%{...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-04-2008
Yogish Baliga
 
Posts: n/a
Default Remote IP address not getting logged

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
  #2 (permalink)  
Old 04-04-2008
phantom
 
Posts: n/a
Default Re: Remote IP address not getting logged

"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.


  #3 (permalink)  
Old 04-05-2008
Yogish Baliga
 
Posts: n/a
Default Re: Remote IP address not getting logged

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 "::"

  #4 (permalink)  
Old 04-05-2008
HansH
 
Posts: n/a
Default Re: Remote IP address not getting logged

"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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:37 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0