Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


  • How can i add human date and time format in squid access.log file?
  • What change i want to make in squid.conf file ?
  • I want that my log file will update with normal date and time format , How can i do it ?
  • If i use tail comment to view log file , i want to get human date and time format. What i want to do for this ?
share|improve this question
up vote 3 down vote accepted

Something like

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

could help you with the last part (tail-ing the log). Found it on a Squid mailing list.

share|improve this answer
This will help to view log file with human date and time format. – Kumar Jan 20 '10 at 4:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.