How to Analyze Many *Daily* Log Files

General discussions about Advanced Log Analyzer
Post Reply
kgaebler
Posts: 9
Joined: Mon Jan 31, 2005 5:32 pm

How to Analyze Many *Daily* Log Files

Post by kgaebler »

Suppose I have 31 daily log files that I want to analyze. They are ex041201.log, ex041201.log,...,ex041231.log.

I am running on Windows PC (not on server). The logs are in a directory on my machine.

I know how to analyze the logs one at a time and have the analysis be incremental, but I am wondering how to run the analysis for all 31 files at one time, via a .bat file or using the user interface for ALA.

I tried running a .bat file with 31 commands, each like this:

ala.exe -analyze:SiteName "-logpath=C:\Documents and Settings\My Name\My Documents\SiteName\Logs\ex041211.log"

but it doesn't seem to work. Is my command line incorrect? If so, how would I do this.

A related question: we load balance on three servers, so I actually have ex041201 three times in three different directories. How would that affect my ability to analyze all my log files? In other words, in analyzing December, I actually have 93 files.

Thanks for any help you can provide. I did purchase the software and it is excellent. You should be proud of your results!

Abacre
Site Admin
Posts: 1223
Joined: Mon Jan 31, 2005 5:32 pm

Re: How to Analyze Many *Daily* Log Files

Post by Abacre »

kgaebler wrote:I tried running a .bat file with 31 commands, each like this:

ala.exe -analyze:SiteName "-logpath=C:\Documents and Settings\My Name\My Documents\SiteName\Logs\ex041211.log"

but it doesn't seem to work. Is my command line incorrect? If so, how would I do this.

No, it is not correct. You should use -logpath: instead of -logpath=
Please read the FAQ on command line parameters:
http://www.abacre.com/ala/manual/command_line.htm

If you have daily log we recommend you using *.log mask both in
command line (if you need it) and in GUI part of the program.
So if you are going to use command line parameters to analyze multiple
daily logs use the command line:
ala.exe -analyze:SiteName "-logpath:C:\Documents and Settings\My
Name\My Documents\SiteName\Logs\*.log"

It's nice to turn ON Incremental Analysis for such case.

kgaebler wrote:A related question: we load balance on three servers, so I actually have ex041201 three times in three different directories. How would that affect my ability to analyze all my log files? In other words, in analyzing December, I actually have 93 files.


As far as I understood, for example, you have 3 files ex041211.log and
information in such files is different. So if Incremental Analysis is
OFF then surely the program will correctly analyze all 3 files
ex041211.log.
But I am almost sure: when Incremental Analysis is ON: program will
analyze first ex041211.log and then it will skip other two
ex041211.log. Because when it makes analysis using Incremental
Analysis is ON it uses date-stamp to skip old files.
What I am thinking: we should probably add a possibility to
distinguish files also by path. Because in your case ex041211.log
files located in different paths.

It would be nice if you could send 3 zipped ex041211.log files to support@abacre.com.
Kind regards,
Abacre Limited
http://www.abacre.com
support@abacre.com

kgaebler
Posts: 9
Joined: Mon Jan 31, 2005 5:32 pm

Thanks

Post by kgaebler »

Thanks tons, Roman.

This was very helpful. Unfortunately, I cannot send you the log files because I am helping a client with this and they prefer that I not send their data out. Sorry.

Thanks again!!

Post Reply