Re: How to add time to squid log

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Indunil Jayasooriya wrote:
Hi,

I have the need of adding time to squid log. The commad tail -f
/var/log/squid/access.log does not provide the time when a user acesses the
internet.

I want to enable this feature.

How to enable ?


The first number in the log is time in seconds since Jan 1, 1970 plus 3 digits of milliseconds. Feed it to 'date -r number' to get a more readable format. Perl and most other languages have routines to handle timestamps in this format if you need to convert.

--
  Les Mikesell
   lesmikesell@xxxxxxxxx
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux