Computer and IT knowledge - things to know
Bash script:
cat squidLogReadable.sh
#!/bin/bash
tail -f /var/log/squid/access.log | perl -p -e 's/^([0-9]*)/"[".localtime($1)."]"/e'
-----
if you want to get the logs in color, ccze could be interesting:
ccze - A robust, modular log coloriser
on debian:
apt-get install ccze
tail -f /var/log/squid/access.loc | ccze -CA
computer2know :: thank you for your visit :: have a nice day :: © 2024