Ejemplo:
1303873213.829 21 127.0.0.1 TCP_MISS/200 2993 GET cache_object://localhost/info - NONE/- text/plain 1303873217.363 21 127.0.0.1 TCP_MISS/200 2993 GET cache_object://localhost/info - NONE/- text/plain
Para poder ver mejor los logs, simplemente con POL (Perl One Liner), es simple:
$ perl -pe 's/^(\d+(?:\.\d{3}))\s/scalar(localtime($1)) /e' access.log
La salida va a pasar a ser:
Wed Apr 27 00:00:13 2011 21 127.0.0.1 TCP_MISS/200 2993 GET cache_object://localhost/info - NONE/- text/plain Wed Apr 27 00:00:17 2011 21 127.0.0.1 TCP_MISS/200 2993 GET cache_object://localhost/info - NONE/- text/plain
No hay comentarios.:
Publicar un comentario