> > Hi, > You do not really want to actually alter the timestamps in the logfile. > What you want is to be able to read/browse them with human readable > timestamps. I use the following script for tailing the logfile in > realtime with human readable timestamps: > > qlog: > > #/bin/sh > tail -f /var/qmail/service/qmail/log/main/current | tai64nlocal > > > If you just want to browse the file, the following command works fine: > > tai64nlocal < /var/qmail/service/qmail/log/main/current | less > > Then you can use / and ? to search for strings forwards and backwards > :-) > > -- > Mike
Hi, thanks for help. the commands you suggested will be great for me. But i move logfiles periodically at another machine which may not be necessarily a linux machine(can be windows :( ), plus daemontools might not be installed on it. Also my supervisor needs to view logfiles himself sometimes, and he wants human readable time stamps.:(:(. Thats why i still need some method to write human readable timestamps in logfiles directly.. Thanks again for help. -- Syed Qutubuddin Ahmad Network Engineer CubeXS Private Limited.
