In some email I received from Syed Qutubuddin Ahmad at Fri, Sep 13, 2002 at 03:51:24PM +0500: > > > > 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.:(:(. So you have a solution now, after all - multilog is rotating log files when they reach 240**** something, depends how your logging settings are configured. However, if freebsd/bsd - use newsyslog. Otherwise write a small script that rotates the log files at midnight and converts it to a human readable format.. something like..
svc -d /service/* in a loop: mv %logfile /var/log.db/%log-%data bzip it(for max compression) touch %logfile and stick it in the cron tab file.. anyways.. you got the drift. after converted email them to your boss/supervise.. its amazing how computer illiterated are most of the IT managers? g`luck. take care, -lou > 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. > > > -- Regards, Lou Kamenov [ Network Infrastructure/Security Analyst ] [ AEYE R&D - http://www.aeye.net ] [ AEYE Commercial - http://www.aeye-web.com ]
