Re: [SQU] Time in log files

From: Paul Kincaid <>
Date: Tue, 2 Jan 2001 18:05:15 -0500

Couple of options Tony -- one is use a simple perl scripts to change the time
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 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.
> Any suggestions?
> Tony
> --
> To unsubscribe, see

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

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