Loganalyzer fails on special date expression

When you post information about some problem, please include the following details: - OS version (e.g. Windows 2000 Professional SP3); HostMonitor version; problem description.
Post Reply
guido
Posts: 5
Joined: Fri Jan 09, 2009 8:17 am

Loganalyzer fails on special date expression

Post by guido »

Hallo,

we are using hm 7.22d enterprise,
loganalyzer 5.43 (also tested 5.52 -> same result)

We need to save a report to a special place.

I set in report manager (in the log analyzer)

Put report into paricular file ->

"c:\test\%yyyy%\%mm%-name.htm"

works fine with "resolve macros"

but i need the month before, if i use

"c:\test\%yyyy%\%mm[-1m]%-name.htm"

like stated in http://www.ks-soft.net/hostmon.eng/la/dateexpr.htm

a failure notice shows "Invalid File name"

btw. the syntax "LoadFile ... %yyyy%\%mm[-1m]%.htm" in log analyzer script is working
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

This is correct behavior. You cannot use such expressions in report profile.
If you specify file name for the report then you should check the following part of the manual
http://www.ks-soft.net/hostmon.eng/la/#RepMan
======================
Resolve macros
If you enable this option a date macro variables may be specified in the destination file name. Log Analyzer will interpret text between the '%' in the file name as a macro variable, where 'DD' represents the day of the month, 'MM' - the month, 'YY' - the year (2 last digits), 'YYYY' - the year.
This allows creating file names by a template such as one of these:
C:\HostMonitor4\Reports\%DDMMYY%-rep.htm
C:\HostMonitor4\Reports\%YYYY\DD-MM%.htm
======================

Expressions declared in another section of the manual
http://www.ks-soft.net/hostmon.eng/la/#Scripts

Regards
Alex
Post Reply