Search squid archive

RE: Access.log time

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

 



Thanks Tim, thats the code i was looking for.

Hasta luego.

Daniel Merino
Consultor Junior en Seguridad Informática 
Secure Soft S.A.C. 
C Begonias 630-656 
     Oficina 14 (Segundo Piso) 
     San Isidro. Lima27 - PERU 
(511) 994622555 (RPC) 
(511) 4402031 (TeleFax) 
+ dmerino@xxxxxxxxxxxxxxxxx 
: http://www.securesoft.com.pe


-----Mensaje original-----
De: Tim Duncan [mailto:Tduncan@xxxxxxxxx] 
Enviado el: Viernes, 04 de Septiembre de 2009 01:51 p.m.
Para: SecureSoft - Daniel Merino; squid-users@xxxxxxxxxxxxxxx
Asunto: RE:  Access.log time




>Hi everyone,
>Im looking how to change the time that appears in the access.log to
make it friendlier. Where can I change the code to do it? Thanks for
answering



A shell script:

$ cat squidtime.sh 
#!/bin/sh

perl -p -e 's/^([0-9]*)/"[".localtime($1)."]"/e' 


This lets me do:

$ cat access.log | squidtime.sh | less




 
 

__________ Information from ESET Smart Security, version of virus signature
database 4396 (20090904) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 
 

__________ Information from ESET Smart Security, version of virus signature
database 4396 (20090904) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux