Search squid archive

Re: Re: AW: Pipe log output to program

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

 



Another way would be to use a pipe (FIFO) created by command mkfifo. Squid writes in it and your program reads from it.

Jean-Francois

Robin Bowes wrote:
Werner.Rost@xxxxxx wrote:
Use the linux command

tail -f access.log | <program>

Werner,

Thanks for the suggestion, but that's not quite what I'm looking for.

I'd like to do something like:

 CacheAccessLog "|/path/to/logprocessor"

where logprocessor is some program that processes the log at is is
written, line-by-line, and does something like update a database.

R.

-----Ursprüngliche Nachricht-----
Von: news [mailto:news@xxxxxxxxxxxxx] Im Auftrag von Robin Bowes
Gesendet: Dienstag, 13. Juni 2006 11:31
An: squid-users@xxxxxxxxxxxxxxx
Betreff:  Pipe log output to program


Hi,

Is it possible to pipe squid log output to a custom logging program as it is with apache [1].

I've googled, but could only find this reference to the topic [2]

Thanks,

R.

[1] http://httpd.apache.org/docs/2.2/logs.html#piped
[2] http://www.squid-cache.org/mail-archive/squid-dev/200509/0021.html




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

  Powered by Linux