for /L %i in (1,1,6) do logvisualizer.exe -testid:115 -batch_mode -logprofile:logvisualizer.ini -inputfile:d:\tools\hostmonitor8\logs\2011-04-0%i-log.txt -outputimage:d:\tools\hostmonitor8\1.gif
You are using cycle to analyze different log files but you are using the same image file in each iteration so software will overwrite the same image and store image related to last log file at the end.
Should your suggested script batch_mode produce a single graph for 6 days? processing one log file per day into one graph? Or is there another step?
There is no such mode.
Quote from the manual
==================
[-period:<chart_period>]
chart_period parameter specifies length of time frame that should be displayed and precision of the chart. There are several visualization levels available:
- DayByHours - a chart on hourly basis based on last 48 hours
- WeekByHours - a chart on hourly basis based on 1 week of data
- WeekbyDays - a chart on daily basis based on 1 week of data
- MonthByDays - a chart on daily basis based on 1 month of data
- MonthByWeeks - a chart on weekly basis based on 1 month of data
- YearByWeeks - a chart on weekly basis based on 1 year of data
- YearByMonths - a chart on monthly basis based on 1 year of data
==================
As you may see you may create single chart for a day, week or months. You cannot create chart for 6 days (unless log file stores data for 6 days only).
Also, you do not specify this parameter at all. In such case Log Visualizer uses last specified period (it can be specified by GUI as well).
I think this is Ok for interactive mode but you should use -period parameter for scripts.
Can you explain what you mention in the manual about the repository? How does it work? Is it a cache? Stored locally somewhere?
Sort of cache, stored in LogInfo subfolder.
Must you prepopulate this repository before any graphs can be extracted?
Is it neccessary to clear a repository before a bactch process? Or is the respository only updated with more recent log files to extract data from?
Normally you should not worry about these files.
Unless you modify log files manually or replace files or you are using small log files that do not cover specified period (so you should analyze several files).
Looks like this happens in your case - your log files cover just 1 day. In such case you need to analyze several files when you need a chart for a week...
Regards
Alex