You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ali Nebi <an...@iguanait.com> on 2007/08/31 15:42:43 UTC

[users@httpd] Some questions about apache logs and separate logs

Hi, 

i want to ask how to configure apache to log some requests in separate
logs. I'm using now httpd-2.2.4-2.1.fc6.x86_64, installed on Fedora 6
(x86_64)

I have this kind of records in /var/log/httpd/ssl_access_log 

corporativos24219-22.etb.net.co - hpenagos [27/Aug/2007:17:22:24 +0200]
"PROPFIND /svn/java/base/trunk HTTP/1.1" 207 696
corporativos24219-22.etb.net.co - hpenagos [27/Aug/2007:17:22:25 +0200]
"PROPFIND /svn/java/!svn/vcc/default HTTP/1.1" 207 402
corporativos24219-22.etb.net.co - hpenagos [27/Aug/2007:17:22:26 +0200]
"PROPFIND /svn/java/!svn/bln/28986 HTTP/1.1" 207 461
corporativos24219-22.etb.net.co - hpenagos [27/Aug/2007:17:22:27 +0200]
"PROPFIND /svn/java/base/trunk HTTP/1.1" 207 696
corporativos24219-22.etb.net.co - hpenagos [27/Aug/2007:17:22:27 +0200]
"PROPFIND /svn/java/!svn/vcc/default HTTP/1.1" 207 402
corporativos24219-22.etb.net.co - hpenagos [27/Aug/2007:17:22:28 +0200]
"PROPFIND /svn/java/!svn/bln/28986 HTTP/1.1" 207 461
corporativos24219-22.etb.net.co - hpenagos [27/Aug/2007:17:22:30 +0200]
"PROPFIND /svn/java/base/trunk HTTP/1.1" 207 696

I want to log these records for user hpenagos and also for 3-4 user in
separate logs for every user.

We have set LogFomat to be:
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined

I tried with:
        SetEnvIf Remote_User "hpenagos" externaluser
        CustomLog logs/externalusers/hpenagos.log combined
env=externaluser

But this configuration it doesn't work
We are using also SSL.

How can i solve this problem, how to set to check the request by
authentication name (%u in logformat) and how to set it to write the
records in separate logs?

Thanks in advanced.
Regards, Ali Nebi!


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