Re: [squid-users] intercepting access.log

From: Ina Patricia Lopez <inapatricia@dont-contact.us>
Date: Sun, 27 Oct 2002 22:13:24 -0800 (PST)

do a "tail -n access.log" every "t" minutes and pass it to your program
for parsing then to your sql. "n" and "t" will depend on how fast
your log grows.

--- zeluis@objetivo-americana.com.br wrote:
> Hi all,
>
> it would like a referring aid /var/log/squid/access.log (suse 8).
> Mine
> squid.conf possesss the following parameter: logfile_rotate 0
>
> I use transparent proxy, without authentication saw squid. I make
> proper
> authentication through java. At the moment where squid records the
> event of
> log in access.log, my application only has condition to know the name
> of the
> user who is in the referring IP.
>
> My problem: to make with that each line of log either sent to a
> program, in
> gcc, that will make a consultation in my bank, postgresql, will get
> the name
> of the user of the referring IP and will record in another table of
> postgresql.
>
> This everything to each writing in access.log. I imagined something
> as tail,
> but I did not have success.
>
> I only need the mechanism to intercept the writing for access.log and
> to send
> as parameter for my gcc program.
>
> All the remain already I am working.
>
> Somebody could indicate a solution that was possible I to decide this
> task.
>
> Thanks a lot.
>
> Ze luis
>

__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/
Received on Sun Oct 27 2002 - 23:13:26 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:10:55 MST