ExtractLogs
The ExtractLogs ISCommand is used for extracting log files into a database. You can specify a single log file or a folder that contains many log files. The output generated will be an .mdb file with all the necessary log information.
The default command line is:
ISCommand ExtractLogs --File=<InputLogFile> --Database=<OutputMDBFile>
The table below defines the variables that are required to use this script. Most variables are defined within the script. You can either make an edit to the script or enter the variable at the command line as shown below.
Variable |
Description/Options |
Default |
Required |
File |
Path and name of the log file. |
c:\Documents and Settings\All Users\Application Data\ESRI\Image Server\Logs\ISDefClient\20061203-ISDefClient.log |
If Folder=Yes, File=No. If Folder=No, File= Yes |
Folder |
Path to multiple log files. |
c:\Documents and Settings\All Users\Application Data\ESRI\Image Server\Logs\ISDefClient\ |
If Folder=Yes, File=No. If Folder=No, File= Yes |
Filter |
Extension used by log files. To be used when specifying a folder. |
*.log |
No |
Recursive |
Search folders recursively. True, False |
True |
No |
Database |
The path and name of the database that will contain the contents of the log file. |
c:\IS.ExtractLogs.MDB |
Yes |
Example:
ISCommand ExtractLogs --File=c:\Documents and Settings\All Users\Application Data\ESRI\Image Server\Logs\ISDefClient\20061203-ISDefClient.log --Database=c:\outputDB.mdb