apache hostnamelookups sanity-check

Matt_Domsch at Dell.com Matt_Domsch at Dell.com
Wed May 4 03:21:14 UTC 2011


Good catch, make it so!

--
Matt Domsch
Technology Strategist
Social Media and Community Professional
Dell | Office of the CTO

-----Original Message-----
From: infrastructure-bounces at lists.fedoraproject.org [mailto:infrastructure-bounces at lists.fedoraproject.org] On Behalf Of Kevin Fenzi
Sent: Tuesday, May 03, 2011 4:33 PM
To: Fedora Infrastructure
Subject: Re: apache hostnamelookups sanity-check

On Tue, 03 May 2011 17:21:25 -0400
seth vidal <skvidal at fedoraproject.org> wrote:

> Hey folks,
>  looking at the logs for something today I noticed that our logs are 
> showing hostnames, not ip addresses of the remote hosts. Which is 
> somewhat wasteful since - for the local logs we don't need that extra 
> resolver lookup - and it makes grepping complicated b/c you never know 
> what the dns reverse map is going to look like :(
> 
> so I was thinking of changing the combined, error and common log 
> format for apache in our configs from using %h (remotehost) to using 
> %a (remote ip) [1]
> 
> Whle we have hostnamelookups off in all of our configs it appears that 
> using %h overrides (or ignores) that.
> 
> so - is there anything I'm not thinking about or forgetting that 
> changing the log format from %h to %a will result in?

Not that I can think of or see off hand. 

awstats runs on the logs (or a subset of them), but it should do it's own lookups. 

kevin


More information about the infrastructure mailing list