List Info

Thread: Some questions about apache logs and separate logs




Some questions about apache logs and separate logs
country flaguser name
Bulgaria
2007-08-31 08:42:43
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
"%i"
"%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://htt
pd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribehttpd.apache.org
   "   from the digest: users-digest-unsubscribehttpd.apache.org
For additional commands, e-mail: users-helphttpd.apache.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )