stats from qmailanalog

2000-07-28 Thread flitcraft33




I am new to qmail and I am trying to set up the 
qmailanalog scripts to provide statistics and process the log files. I can't get 
any of it to work, I read the read-mes and man pages and am clueless. My 
installation follows the defaults in qmail, appears to work fine and uses mail 
directories owned by the user and placed beneath their home 
directories.

I ran the tai64local program against a copy of a log and got human 
time stamps. I followed the steps on the matchup and got as far as a file 
that had my log with a question mark on each line. After that errors all around. 
the next instructions on the manpage follow

log.1 
matchup out.1 
5pending.2 cat 
pending.2 log.2 | matchup out.2 
5pending.3 cat 
pending.3 log.3 | matchup out.3 5pending.4

Is this some kind of log rotation or what? What's the deal with 5 in 
the first line? What on earth does that do? As you can tell I am totally lost. I 
really have tried to find this stuff in man pages, manuals and by searching the 
net, but I'm lost. 

Is there a how-to or a kind soul who can explain 
step by step (with some expanations of what a given command is doing) for me. I 
would be glad to codify this for some kind of mini-how to or for inclusion with 
the scripts with the permission of the appropriate people.

Thank you
Dan Sichel
puzzled newbie


Re: stats from qmailanalog

2000-07-28 Thread Dave Sill

[Dan, please configure your mailer to wrap lines that are longer than
80 characters.]

"flitcraft33" [EMAIL PROTECTED] wrote:

I ran the tai64local program against a copy of a log and got human
time stamps. I followed the steps on the matchup and got as far as a
file that had my log with a question mark on each line.

Show us:

  1) a sample line from your logs, untouched
  2) the same line passed through tai64nlocal
  3) a sample line from the output of matchup

After that
errors all around. the next instructions on the manpage follow

  log.1 matchup out.1 5pending.2
  cat pending.2 log.2 | matchup out.2 5pending.3
  cat pending.3 log.3 | matchup out.3 5pending.4

Is this some kind of log rotation or what? What's the deal with 5 in
the first line? What on earth does that do?

cyclog (and multilog) automatically rotates the logs, and some of the
transactions at the end of one file might not be completed until the
beginning of the next file. matchup outputs these incomplete--or
pending--entries to file descriptor 5.

Is there a how-to or a kind soul who can explain step by step (with
some expanations of what a given command is doing) for me. I would be
glad to codify this for some kind of mini-how to or for inclusion
with the scripts with the permission of the appropriate people.

There's not a good HOWTO for qmail-analog, and things are in something 
of a state of flux at the moment, so now's probably not the best time
to undertake writing one. qmail-analog depends upon timestamps in the
format used by cyclog, but cyclog has been superceded by multilog,
which uses a different timestamp format. There are utilities available 
that will convert the timestamps.

-Dave



RE: stats from qmailanalog

2000-07-28 Thread Kevin Bucknum

http://www.ornl.gov/its/archives/mailing-lists/qmail/2000/06/msg00325.html

That is the link to the script that I'm using to process my mail logs.  It
has been pointed out to me that the conversion routine (orginally posted by
Jos ?? Someone - I can't find the orginal in the archive for some reason)
that I'm using is 10 second off from tai64nlocal, but it is close enough for
my needs.

-Original Message-
From: flitcraft33 [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 28, 2000 12:31 PM
To: [EMAIL PROTECTED]
Subject: stats from qmailanalog


I am new to qmail and I am trying to set up the qmailanalog scripts to
provide statistics and process the log files. I can't get any of it to work,
I read the read-mes and man pages and am clueless. My installation follows
the defaults in qmail, appears to work fine and uses mail directories owned
by the user and placed beneath their home directories.

I ran the tai64local program against a copy of  a log and got human time
stamps. I followed the steps on the matchup and got as far  as a file that
had my log with a question mark on each line. After that errors all around.
the next instructions on the manpage follow

  log.1 matchup out.1 5pending.2
  cat pending.2 log.2 | matchup out.2 5pending.3
  cat pending.3 log.3 | matchup out.3 5pending.4

Is this some kind of log rotation or what? What's the deal with 5 in the
first line? What on earth does that do? As you can tell I am totally lost. I
really have tried to find this stuff in man pages, manuals and by searching
the net, but I'm lost.

Is there a how-to or a kind soul who can explain step by step (with some
expanations of what a given command is doing) for me. I would be glad to
codify this for some kind of mini-how to or for inclusion with the scripts
with the permission of the appropriate people.

Thank you
Dan Sichel
puzzled newbie