> You've already run the logs through tai64nlocal. That converts the
> TAI64 timestamp into human readable form. Don't do that. Leave the
> multilog output alone and then run it through tai64nfrac (or
> tai64nunix) and it will generate timestamps suitable for qmailanalog.
Now, I'm really confused.
Here's the path that logs go thru on my machine:
qmail -> accustamp -> tailocal
If I'm disabling tailocal, then my logs ARE suitable for qmailanalog,
so why do I need to run my logs thru tai64nfrac if everything
works fine in this case?
And another question:
We've been running qmail awhile, so we have a some amount of logs (with
converted from TAI64 to Local timestamps), so my original question was how
can I convert local timestamps to TAI64?
I've wrote a small awk-script to accomplish this, but it doesn't work with
big files on my machine (more then 440-445 lines), and I can't figure out
why (if someone has suggestions/recommendations, please, let me know):
------------------------cut here--------------------------
#!/bin/awk -f
BEGIN {
ACCUSTAMP="/usr/local/bin/accustamp"
ECHO="/bin/echo"
}
{
LOCAL= $1 " " $2
ECHO " \"" LOCAL "\" | " ACCUSTAMP | getline TAI
sub(/ .+/, "", TAI)
$1=TAI
$2=""
sub(/ +/, " ")
print
}
------------------------------cut here------------------------
This script does the trick for me. Again, originally I was for such kind
of program/script which works fine with any size of input.
Thanks.
--
Kins Orekhov
Outlook Technologies, Inc.
E-mail: [EMAIL PROTECTED]
Phone: 773-775-2099, ext. 226
http://swoop.outlook.net