Create report to the particular file.

Exchange HTML report templates between users.
Post Reply
Dubolomov
Posts: 214
Joined: Thu Jun 01, 2006 10:27 am
Location: Russia

Create report to the particular file.

Post by Dubolomov »

Hi. Is it possible to use any variable in LogAnalyzer's script file or use special command line options for creating specify name report file?
E.g. Every night log analyzer create report by a schedule from private log file. I can use date variable for creating directories where this file will be. But i have many private logs and would like to create report files (or directories) with name like "%ReportProfileName%__%yyyymmdd[-1d]%.htm".
Thank you.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Hi. Is it possible to use any variable in LogAnalyzer's script file or use special command line options for creating specify name report file?
Command line? No.
You may specify file name using Report Manager. Quote from the manual
By default Log Analyzer saves all reports into one directory (you can specify that directory in the Options dialog), and uses the name of the profile as a file name (with HTM extension). But you can specify another file name by choosing the "Put report into particular file" option and providing a path and name of the file.
E.g. Every night log analyzer create report by a schedule from private log file. I can use date variable for creating directories where this file will be. But i have many private logs and would like to create report files (or directories) with name like "%ReportProfileName%__%yyyymmdd[-1d]%.htm"
1) You cannot use "%ReportProfileName% variable. Because you don't need such variable
2) You may use date macro variables but you cannot use expressions.

Quote from the manual
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
Regards
Alex
Post Reply