Created
July 22, 2014 14:33
-
-
Save demofly/8217256f50610c697ae7 to your computer and use it in GitHub Desktop.
Convert Squid log timestamps on the fly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tail /var/log/squid/access.log -f -n999 | perl -p -e 's/^([0-9\.]*)/"[".localtime($1)."]"/e' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment