Syed Qutubuddin Ahmad ([EMAIL PROTECTED]) wrote:
> timestamps to human readable form ??. I have read man pages of multilog,
> tai64n, and tai64nlocal, all these said is "you can use tai64nlocal to
> convert timestamp to human readable form". None of these man pages told how
> to use it with multilog.
> Also will the size and count arguments be given after log filename??
> 
> I have the line like this :
> exec /usr/local/bin/setuidgid qmaill /usr/loca/bin/multilog \
> t /var/log/qmail/smtpd

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

Reply via email to