[users@httpd] log file

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

 



Hi, I want configure my access log file for apache and I want that the log file only save the client request (url) that he write in his navigator and not other url that the server send as images that the url has.

 

For example: a client in the navigator write

 

http://172.25.80.46/consulta12b/web/www.embusa.es/index.html

 

And my logfile write

 

172.25.80.46 - - [19/Nov/2005:11:45:14 +0100] "GET /consulta12b/web/www.embusa.es/index.html HTTP/1.1" 200 25477

172.25.80.46 - - [19/Nov/2005:11:45:14 +0100] "GET /consulta12b/web/www.embusa.es/gif/wwwcembassy1.css HTTP/1.1" 200 16307

172.25.80.46 - - [19/Nov/2005:11:45:14 +0100] "GET /consulta12b/web/www.embusa.es/gif/wwwgdepartment_of_state.gif HTTP/1.1" 200 513

172.25.80.46 - - [19/Nov/2005:11:45:14 +0100] "GET /consulta12b/web/www.embusa.es/gif/wwwjflag2.jpg HTTP/1.1" 200 16432

172.25.80.46 - - [19/Nov/2005:11:45:14 +0100] "GET /consulta12b/web/www.embusa.es/gif/wwwgspacer.gif HTTP/1.1" 200 43

172.25.80.46 - - [19/Nov/2005:11:45:14 +0100] "GET /consulta12b/web/www.embusa.es/gif/wwwjsealembassy.jpg HTTP/1.1" 200 3803

172.25.80.46 - - [19/Nov/2005:11:45:14 +0100] "GET /consulta12b/web/www.embusa.es/gif/wwwggrayspacer.gif HTTP/1.1" 200 43

172.25.80.46 - - [19/Nov/2005:11:45:14 +0100] "GET /consulta12b/web/www.embusa.es/gif/titlesp1.jpg HTTP/1.1" 200 5852

172.25.80.46 - - [19/Nov/2005:11:45:14 +0100] "GET /consulta12b/web/www.embusa.es/gif/aid4.jpg HTTP/1.1" 200 25074

172.25.80.46 - - [19/Nov/2005:11:45:14 +0100] "GET /consulta12b/web/www.embusa.es/bilateral/gif/bonorumsfeld050305.jpg HTTP/1.1" 200 20775

172.25.80.46 - - [19/Nov/2005:11:45:14 +0100] "GET /consulta12b/web/www.embusa.es/irc/gif/zoom_logo.jpg HTTP/1.1" 200 9023

172.25.80.46 - - [19/Nov/2005:11:45:14 +0100] "GET /consulta12b/web/www.embusa.es/irc/gif/logo.gif HTTP/1.1" 200 3569

172.25.80.46 - - [19/Nov/2005:11:45:14 +0100] "GET /consulta12b/web/www.embusa.es/gif/wwwgembassyfootersp.jpg HTTP/1.1" 200 7788

172.25.80.46 - - [19/Nov/2005:11:45:14 +0100] "GET /consulta12b/web/www.embusa.es/gif/wwwglan_graphic.gif HTTP/1.1" 200 44

172.25.80.46 - - [19/Nov/2005:11:45:14 +0100] "GET /consulta12b/web/www.embusa.es/gif/wwwgdottedrule.gif HTTP/1.1" 200 48

 

I’d like that my logfile record only the first line,

 

172.25.80.46 - - [19/Nov/2005:11:45:14 +0100] "GET /consulta12b/web/www.embusa.es/index.html HTTP/1.1" 200 25477

 

I have read the documentation about logfiles in apache but I don’t find how to do with format string of LogFormat.

 

Is possible configure the access log file to get the thing that I want?

 

Thanks

 

---------------------------------------------------------------------------------

Montserrat Mateos Sánchez

mmateossa@xxxxxxx

Escuela Universitaria de Informática

Universidad Pontificia de Salamanca

C/ Compañia, 5 

37002 - Salamanca 

España

Tfno. +34 923 277100 - Ext 7685

-----------------------------------------------------------------------------------

 


[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