Some questions about apache logs and separate logs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux