Access log missing info

We are running nginx/0.6.24 on FreeBSD 6.2

The access log is not showing the client IPs as it should. Instead we
see something like this:

      • [26/Jun/2008:11:32:14 -0700] “GET /schee/s20/ HTTP/1.1” 200 17995
        “-” “Baiduspider+(+http://help.baidu.jp/system/05.html)”
      • [26/Jun/2008:11:32:14 -0700] “GET /rss/user/dansherman HTTP/1.1”
        200 298 "
        -" “Mozilla/5.0 (compatible; FriendFeedBot/0.1;
        +Http://friendfeed.com/about/bot)”
        …and…
      • [26/Jun/2008:11:34:19 -0700] “GET /” 301 185 “-” “-”

It seems to have gotten worse over time. When it started (weeks ago)
only some of the requests were missing first 3 fields (instead showing
dashes), now it is every request.
Thanks.

On Thu, Jun 26, 2008 at 11:34:53AM -0700, Mark Foster wrote:

…and…

      • [26/Jun/2008:11:34:19 -0700] “GET /” 301 185 “-” “-”

It seems to have gotten worse over time. When it started (weeks ago)
only some of the requests were missing first 3 fields (instead showing
dashes), now it is every request.

Do you use set_real_ip_from directive ?

Igor S. wrote:

Do you use set_real_ip_from directive ?

No we don’t… but I figured it out.
For some reason we had $http_rlnclientipaddr instead of $remote_addr in
the first field of log_format.
Thanks.