Hi,
The solution is to use perl
#!/bin/perl -p
s/^\d+\.\d+/localtime $&/e;
If you copy the above, save it as "perlspt".
run chmod 700 ./perlspt and then type in the
following:
on the console
./perlspt < /var/squid/logs/access.log >access2.log
and that'll convert your file.
N.B. The path of access.log might have to be changed
if the above is wrong. When that has finished, just
open up the created access2.log in a text editor
Hope that helps,
Thomas Adam
re: thomas_adam16@yahoo.com
--- Sergio Domenech <sergiodomenech@yahoo.com> wrote:
> Hi everyone
> I have a small problem that maybe someone can help
> me with:
> I need to know how to translate the first field on
> the access.log from squid to something
> understandable
> how you know that 979203949.269 means " 09 Jan 01
> 04:00" what is the algorithm
> Thanks
> sergiodomenech@yahoo.com
>
=====
Thomas Adam
Linux Co-ordinator for The Purbeck School
e-mail (school): n6tadam@users.purbeck.dorset.sch.uk
e-mail (yahoo) : thomas_adam16@yahoo.com
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
-- To unsubscribe, see http://www.squid-cache.org/mailing-lists.htmlReceived on Tue Jan 16 2001 - 11:57:41 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:57:28 MST