|
|
IMail Log Analyzer
The IMail Log Analyzer is an analysis tool that compiles reports based on your IMail Server log files. It sorts through the log files and separates information into reports, enabling you to browse statistical information quickly and easily. You can select from up to 19 different reports that extract information such as:
- the number of SMTPD connections
- the number of IMAP errors
- the number of Web logins
- the number of Web hits
Search options allow you to further define reports with settings like start and end date, start and end time, and the maximum number of returns per report. For your convenience, multiple reports are compiled into a single log analysis file, which contains detailed information from all of the requested reports. This file is stored in the same location as the specified log file, and can be created in either html or text format.
IMail Log Analyzer is accessible from Start >Programs > IMail > IMail Log Analyzer
Analyzing a Log File
To analyze the contents of a log file or files, complete the following steps:
- Select the logs to analyze by clicking Select Logs and browsing to the file location. Select the log file name and click Open. Repeat this process all of the logs you want to analyze are displayed.
- To remove log files from the top window, select the files you want to remove and click Remove Selected.
- For Report File, enter the location where the analysis will be stored. By default the analysis file is located in the IMail spool directory, and is called analyze.html.
- The analysis can be created in two formats: a text file, or html file.
- To create the analysis in HTML, select HTML Report and make sure the filename entered for the Report File has an .html extension.
- To create the analysis as a text file, clear HTML Report and make sure the filename entered for the Report File has a .txt extension.
Tip: One advantage to creating an analysis in html, is that a list of all report types appears at the top of the analysis with links to each report's information. - Select the reports that you want to include in the log file analysis. For an explanation of each report, see "Report Types". To select all available reports, click Select All located below the report types. To clear all report types, click Clear All.
- Select the following options to further customize your log analysis:
- Open report in default viewer. If selected, the report will automatically open in the default viewer when the analysis is complete. If you create an HTML analysis, your default browser opens. If you create a text analysis, your default text editor opens.
- Save Settings. If selected, the current settings are saved when the application is closed. If this option is cleared, all settings are cleared and you must reset them the next time you run an analysis.
- (Optional) Set the desired Search Options as described below.
- Click Analyze to create your log analysis. The status bar at the bottom of the screen displays the status of the analysis as it is created.
Search Options
You can use the Search Options to further restrict your log analysis. The following options are available by clicking Options.
Start Date / End Date. Enter the dates from the log files that you want to create an analysis for. The format for both is 00/00. For example, if you enter a Start Date of 03/02, and an End Date of 05/02, this returns all entries from the selected log files between March 2 and May 2. If a selected log file has no entries for the specified time period, that log file is ignored when creating the analysis.
Start Time / End Time. Enter the time frame from the log files that you want to create an analysis for. The format for both is 00:00:00. For example if you enter a Start Time of 14:00:00, and an End Time of 15:30:00 this returns all entries from the selected log files between 2:00 and 3:30. If a selected log file has no entries for the specified time period, that log file is ignored when creating the analysis.
Max Returns per Report. Limits the number of responses returned per report type. For example, if you enter 25, the log analyzer only displays 25 lines per report type.
Report Types
There are 26 report types to select when compiling an analysis. Below is an explanation of each report type. To use a report type in an analysis, select the checkbox located next to it. To disable a report type, clear the checkbox located next to it.
If you want to run all of the reports, select Select All located below the report types. To disable all report types, click Clear All located below the report types.
Interpreting the Analysis
Whether you choose to create your analysis as a text file or an html file, the information returned is the same.
At the top of the analysis, is the Log Start time and Log End time. These times represent the beginning and ending time from which the analysis was compiled. All report information in the analysis is from within this time period. Also listed, are the names of all the Log Files, which were analyzed to create the log report.
The remainder of the analysis consists of the report data. Data is separated into categories by the report types that you selected during setup. All data is sorted in descending order starting with the highest number of occurrences or file size.
Running Log Analyzer as a Command Line Utility
In addition to using the administrative console, IMail Log Analyzer can be run from the command prompt using C:\[IMail Top Level Directory]\Analyze.exe.
Basic Command Syntax
CAnalyze H r1 r2 r3.....r26 0filename Ffilename Lmaxlines
Example Command Line Entry
Analyze r1 r2 r7 r9 r15 0c:\reports\report.html c:\imail\spool\sys1012.txt FC:\[IMail Top Level Directory]\spool\w*.log L10 HThe above example, creates an html analysis file called Report.html which contains 10 lines for each of the following: SMTPD connections, SMTPD errors, SMTP Remote Host Deliveries, SMTP MX Failures, POP logins. The log files used for the analysis are sys1012.txt and w*.log.
The following are the available command entries for the Report type.
![]() Ipswitch, Inc. http://www.ipswitch.com |
| ©Ipswitch 2005 | |||