How to config access.log
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Squid > How to config access.log




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    How to config access.log  
kaji


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-02-04 10: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





[ Post a follow-up to this message ]



Muthukumar_K is offline     Re: How to config access.log  
Muthukumar_K


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for Muthukumar_K Click here to Send Muthukumar_K a Private Message Visit Muthukumar_K's homepage! Find more posts by Muthukumar_K Add Muthukumar_K to your buddy list
 
10-12-04 09: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 t
here.

 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
1097612565.970,192,10.1.4.10,TCP_MISS/200,2911,GET,
http://www.google.com/,-,DIRECT
HTH. REgards, Muthukumar. +++++++++++++++++++++++++++++ Visolve Squid Support Team. URL:
http://squid.visolve.com/squid/index.htm Mail: support@visolve.com ++++++++++++++++++++++++++++++




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:46 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register