RE: [SQU] Time in log files

From: Tony Melia <>
Date: Wed, 3 Jan 2001 09:03:13 +1000

Thanks Paul. It might be good to have an option to have functionality to
have the current log format, AS WELL as the emulated httpd log (If not
already in there).


 -----Original Message-----
From: Paul Kincaid []
Sent: Wednesday, 3 January 2001 9:05am
To: Tony Melia; Squid-Users (E-mail)
Subject: Re: [SQU] Time in log files

Couple of options Tony -- one is use a simple perl scripts to change the
while you view the file (see FAQ 6.6 I believe for the exact syntax). I
create a script called 'timeconv', then when I want to view the logs in real

time, simply execute 'tail -f /var/log/squid/access.log |
/var/log/squid/timeconv' This would be the preferred way, in case at any
time you wanted to use some of the many log files anaylsis tools out there -

they require the logs to be in epoch time...

The other way, which is not the preferred way is within the squid.conf file
is the directive 'emulate_httpd_log' (~line 521), which you can turn on and
the log files will then be kept in standard time and date format.

Hope this helps,

On Tuesday 02 January 2001 17:38, Tony Melia wrote:
> Is it possible to patch squid, or even add an option in the config, so
> it will report times in actual time rather than epoch in it's log files?
> 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.
> Any suggestions?
> Tony
> --
> To unsubscribe, see

To unsubscribe, see
Received on Tue Jan 02 2001 - 16:06:06 MST

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