Log Analyzer chart for last 2 hours

Exchange HTML report templates between users.
Post Reply
HakanH
Posts: 19
Joined: Tue Feb 06, 2007 3:47 am

Log Analyzer chart for last 2 hours

Post by HakanH »

Is it possible to make a chart in Log Analyzer that just includes the last 2 hours?

I'm using Log Analyzer 5.35 and my log format is HTML.

Regards
Hakan Haskel
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Re: Log Analyzer chart for last 2 hours

Post by KS-Soft Europe »

HakanH wrote:Is it possible to make a chart in Log Analyzer that just includes the last 2 hours?
Sure. You may use Filter option: http://www.ks-soft.net/hostmon.eng/la/index.htm#filter

Also you may create simple HMS script with specified "DateFilter" and "TimeFilter Include" commands, and start Log Analyzer with the following command line parameter "-script:<name of script file>"
http://www.ks-soft.net/hostmon.eng/la/index.htm#Scripts

Regards,
Max
HakanH
Posts: 19
Joined: Tue Feb 06, 2007 3:47 am

Post by HakanH »

I have tried to use "TimeFilter Include", but that command only seem to affect the statistics and not the chart.

Right now my script looks like this:

Code: Select all

LoadFile C:\Program Files\HostMonitor4\Logs\%DDMMYYYY[-1d]%-log.htm
AppendFile C:\Program Files\HostMonitor4\Logs\%DDMMYYYY%-log.htm
TimeFilter Include 08:00 18:00 08:00 18:00
SkipMode On
SkipLevel 2
CreateReport "Network Traffic"
With this script the chart that is generated always starts at 00:00 one day back and ends at current time.

Should the chart start at 08:00 with my script?

How can I get it to only show the last 2 hours?

Regards,
Hakan Haskel[/img]
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Test results filtered by DateFilter do not appear on chart al all.
While items filtered by TimeFilter appear on chart, Log Analyzer uses special color for such items (grey by default)

Regards
Alex
HakanH
Posts: 19
Joined: Tue Feb 06, 2007 3:47 am

Post by HakanH »

OK, then mayby this should go to the "Wish list".

I would like to be able to filter on both data and time in Log Analyzer.

Something like this:

A chart with last 2 hours:

Code: Select all

DateTimeFilter %DDMMYYYYHHmm[-2H]% %DDMMYYYYHHmm%
Chart of today:

Code: Select all

DateTimeFilter %DDMMYYYY0800% %DDMMYYYY1700%
Regards
Hakan
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We plan to redesign Log Analyzer in version 7

Regards
Alex
Post Reply