Squid - How to config access.log

This is Interesting: Free IT Magazines  
Home > Archive > Squid > October 2004 > How to config access.log





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to config access.log
kaji

2004-09-02, 5:54 pm

Noe the access.log is delimited with " " , can anyone know how to make
is delimited with "," , that easy import to database format

Thanks
Muthukumar_K

2004-10-12, 4:23 pm

We are not having any supported configuration to achieve it,

But we can do this as,

tr -s ' ' ',' access.log > access_db.log

It will change ' ' to , there so that you can use it for database logging there.

proxy# tail -2 access.log
1097612518.590 298 10.1.4.10 TCP_MISS/200 2911 GET http://www.google.com/ - DIRECT/66.102.7.104 text/html
1097612565.970 192 10.1.4.10 TCP_MISS/200 2911 GET http://www.google.com/ - DIRECT/66.102.7.104 text/html
proxy# tail -2 access.log | tr -s ' ' ','
1097612518.590,298,10.1.4.10,TCP_MISS/200,2911,GET,http://www.google.com/,-,DIRECT/66.102.7.104,text/html
1097612565.970,192,10.1.4.10,TCP_MISS/200,2911,GET,http://www.google.com/,-,DIRECT/66.102.7.104,text/html

HTH.

REgards,
Muthukumar.

+++++++++++++++++++++++++++++
Visolve Squid Support Team.
URL: http://squid.visolve.com/squid/index.htm
Mail: support@visolve.com
++++++++++++++++++++++++++++++
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com