Search squid archive

AW: access.log

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

 



Hi John, 

how should that logfile look like? One big file for each day for all users? 

Why do you generate a logfile for each user? Or didn't I understand that right? That would reduce the configuration issue and  the amount of programming you have to do to get all files together. 

If you need a separate log for a user just use "grep" to get all lines of the big file(s). 

To put all files together you should write a short script to transfer them (e.g. by scp) to one server. There you can merge them and if needed sort them for a cronological file.

10 lines of code should do that. 

If you want to use e.g. calamaris to generate reports you should take care that the logs are in a cronological way. Otherwise calamaris will report a lot of bugs.

There are technics to transfer the stream - but I'm not really happy with them as they usually cause problems after reboot.

Maybe that helps - I don't think someone has an "out of the box" solution, 

Regards

-----Ursprüngliche Nachricht-----
Von: John Doe [mailto:jdmls@xxxxxxxxx] 
Gesendet: Freitag, 8. Oktober 2010 14:42
An: squid-users@xxxxxxxxxxxxxxx
Betreff: Re:  access.log

From: viswa <waytoviswa@xxxxxxxxx>

> I am running four squid servers and using own user based  reports(access.log), 
>now i need consolidated report, for that all four server's  access.log should be 
>at one server.
> how can i make it  ?

Two ideas:
Merge the log files...
Use syslog to send all your logs to one server.

JD


      



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux