You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Da...@Notes.YMP.GOV on 2007/03/08 17:07:09 UTC
[users@httpd] logging question
Is it possible to log both IP address and hostname to the apache logs?
Thanks!
Re: [users@httpd] logging question
Posted by Rob Wilkerson <r....@gmail.com>.
Take a look at this:
http://httpd.apache.org/docs/1.3/mod/mod_log_config.html#customlog
Looks like %a and %h might do what you're asking.
On 3/8/07, Dan_Mitton@notes.ymp.gov <Da...@notes.ymp.gov> wrote:
>
> Is it possible to log both IP address and hostname to the apache logs?
>
> Thanks!
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] logging question
Posted by Da...@Notes.YMP.GOV.
How??
Please respond to users@httpd.apache.org
To: users@httpd.apache.org
cc: (bcc: Dan Mitton/YD/RWDOE)
Subject: Re: [users@httpd] logging question
LSN: Not Relevant
User Filed as: Not a Record
Dan_Mitton@Notes.YMP.GOV wrote:
>
> Is it possible to log both IP address and hostname to the apache logs?
>
> Thanks!
Its a funny request, the answer is yes, but remember the fact that
hostnames appear at all is due to apache having
DNS resolution switched on - which is bad obviously.
Also remember that hostnames can change, why not resolve them later
anyway, which for performance and security reasons is better.
--
Matthew Farey
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] logging question
Posted by matt farey <ma...@gmail.com>.
Dan_Mitton@Notes.YMP.GOV wrote:
>
> Is it possible to log both IP address and hostname to the apache logs?
>
> Thanks!
Its a funny request, the answer is yes, but remember the fact that
hostnames appear at all is due to apache having
DNS resolution switched on - which is bad obviously.
Also remember that hostnames can change, why not resolve them later
anyway, which for performance and security reasons is better.
--
Matthew Farey
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org