On 5/2/07, rakesh zingade <rakeshzingade@xxxxxxxxx> wrote:
I am getting current user statistics in ../apache/logs/access_log.cur file. If any user tries to login then I get following lines in the access_log.cur 192.168.1.1 - - [02/May/2007:13:09:23 +0300] "GET /html/LaunchPage.nhtml HTTP/1.1" 403 6041 192.168.1.1 - - [02/May/2007:13:09:58 +0300] "POST /access/cgi-bin/fmlogin HTTP/1.1" 302 - 192.168.1.1 - genadmin [02/May/2007:13:10:01 +0300] "GET /html/LaunchPage.nhtml HTTP/1.1" 200 938 192.168.1.1 - genadmin [02/May/2007:13:10:14 +0300] "GET /html/gui.jar HTTP/1.1" 304 - if user logged out then I get the following line 192.168.1.1 - genadmin [02/May/2007:13:13:25 +0300] "GET /html/dataservices/cgi-bin/AdminServices/logout HTTP/1.1" 200 - I want the only above mentioned log lines in another file. How can I configured this functionality in Apache?
Really, the best way to do this is to log everything and then extract what you want to a new file using some log analysis tool (or a custom script, or just "grep"). But if you really want apache to do it, it would look something like SetEnvIf Request_URI ^/html/LaunchPage\.nhtml authlog SetEnvIf Request_URI ^/access/cgi-bin/fmlogin authlog (and similar for the other pages, followed by) CustomLog logs/auth_log combined env=authlog
Also please Can anyone give me the link where from I can study basics of Apache?
If you are really starting from scratch, it is probably a good idea to buy a book, since the online docs assume some familiarity with basic unix and web concepts. But the basic docs are here: http://httpd.apache.org/docs/2.0/ Joshua. --------------------------------------------------------------------- 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