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@zf.com 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@sea.gmane.org] Im Auftrag von Robin Bowes
>> Gesendet: Dienstag, 13. Juni 2006 11:31
>> An: squid-users@squid-cache.org
>> Betreff: [squid-users] 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
>>
>>
>
Received on Tue Jun 13 2006 - 06:46:15 MDT
This archive was generated by hypermail pre-2.1.9 : Sat Jul 01 2006 - 12:00:01 MDT