Thank's a bunch! One last question, I have a few logs that when they got
downloaded to my local server the log files were empty, will that cause a
From: Bradford L. Barrett [mailto:brad@...
Sent: Wednesday, February 09, 2005 2:58 PM
To: Enric Naval
Subject: Re: [webalizer] processing a large archive of logs
> "Ignoring history" and "setting incremental to off"
> are the same thing.
This is incorrect. Ignoring history will lose all previous months
saved data, so you wind up with a main index showing only the month
you just processed and none prior. It causes the progls /rairam to ignore
any existing 'webalizer.hist' file.
Incremental mode allows you to process a month using multiple,
partial log files. Setting it to off forces you to process
whole months in a single log, and causes the program to ignore
any existing 'webalizer.current' file.
For the original question, as long as your log fies are named
correctly (ie: they will list correctly in chronological order,
typically named like YYYYMMDD-something), then you can use
incremantal mode and process all the logs like:
for i in /path/to/logs; do webalizer $i; done
Make sure your config file is set correctly for the output
directory, hostname, etc... or specify them on the command
> > I have a large archive of of logs that I would like
> > to process. Can I
> > process the logs out of order?
No, you cannot process out of order as long as you use
incremental mode. They must be in chronological order.
> > I'm just going to
> > write a little script to
> > list the content of a directory then loop through
> > each file and process it.
> > What are the best options for this?
> > I'm a little
> > unclear as to what the
> > ramifications of ignoring history and using the
> > preseve incremental or not
> > using it.
You should NEVER ignore history, and as long as you have partial
logs (not full months), then you must use incremental mode.
> > I've moved the files around so sometimes
> > the timestamps on the
> > files themselves are all the same, does that matter
> > or does webalizer just
> > look inside the files. Anyway any advice would be
> > appreciated.
The timestamps on the files themselves doesn't matter, unless
you were going to rely on them to tell you what order to feed
the files. If you named them correctly, then you already know,
based on filename, which order the files must be processed.
Bradford L. Barrett brad@...
A free electron in a sea of neutrons DoD#1750 KD4NAW
The only thing Micro$oft has done for society, is make people
believe that computers are inherently unreliable.
Webalizer homepage: http://www.webalizer.org
Yahoo! Groups Sponsor
Yahoo! Groups Links
To visit your group on the web, go to:
To unsubscribe from this group, send an email to:
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.