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.
Create report to the particular file.
Command line? No.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?
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.
1) You cannot use "%ReportProfileName% variable. Because you don't need such variableE.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"
2) You may use date macro variables but you cannot use expressions.
Quote from the manual
RegardsResolve 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
Alex