Re: [SQU] Time in log files

From: Merton Campbell Crockett <mcc@dont-contact.us>
Date: Tue, 2 Jan 2001 15:45:28 -0800 (PST)

On Wed, 3 Jan 2001, Tony Melia wrote:

> Is it possible to patch squid, or even add an option in the config, so that
> it will report times in actual time rather than epoch in it’s log files? I
> have a relatively low traffic site using squid, and would like to leave a
> ‘tail –f /var/log/squid/access.log’ command running so I can watch
> realtime, but also see the real time.

There is an existing "emulate_httpd_log" option that enables the use of
the Common Log Format (CLF) for the Squid logs.

As the only thing that you want to do is run the first "column", up to the
decimal point through date -r and append the remainder of the line, a
simple script to call tail and parse the output may be all that is needed.

Merton Campbell Crockett

--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Tue Jan 02 2001 - 16:52:02 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:57:19 MST