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
Loganalyzer fails on special date expression
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
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