| Introduction In IISLogs 2.0, we introduced a new feature called Per Directory.This feature allows options to be specified on a Per Directory
 basis.  You get all the powerful and flexible features IISLogs provides on
 a per directory basis.
 How to Manage The Per Directory feature can be managed using IISLogsGUI.  Here is ascreenshot of the management interface.  You can also manage the Per
 Directory feature via the config file called IISLogsPerDirectory.xml.
 (Note: The name of the file can’t be altered).
 You can update the file using a text editor (such as Notepad).
 We recommend you manage a few directories using IISLogsGUI before managing the
 configuration file directly.   If you decide to manage the file
 directly, all data including <Table1></Table1> brackets need to be
 added for each folder entry.   Please review the sample configuration
 file in the Options section.
 Options Each directory has the following options be defined on a per directory basis. 
| Option Name | Description |  
| <DirectoryName>c:windowssystem32inetsrvurlscanlogs</DirectoryName> | Directory name |  
| <ZipFile>true</ZipFile> | Compress file |  
| <ZipRetentionPeriod>48</ZipRetentionPeriod> | Time period in hours |  
| <DeleteOriginalFile>true</DeleteOriginalFile> | Delete original file after compressed has completed. |  
| <DeleteFile>false</DeleteFile> | Separate option to delete files. |  
| <DeleteRetentionPeriod>0</DeleteRetentionPeriod> | Retention Period in hours for how old the file should be.
 |  
| <Recursive>false</Recursive> | Recursive Option to start at a particular directory and recursively get all sub-folders.  i.e. d:wwwlogs
 |  
| <ProcessRootFolderRecursive>false</ProcessRootFolderRecursive> | Process the ‘Root folder as well as sub-folders’ recursively. |  
| <ZipFilePath>local</ZipFilePath> | Where files are store.  local is default, this leaves the file in the original location  This can also be a UNC path
 |  
| <IncludeComputerName>false</IncludeComputerName> | When using a UNC path or alternative directory, include Computer name. |  
| <ProcessUnknownExtensions>false</ProcessUnknownExtensions> | Process Unknown file extensions.  System file extensions and folders aren’t processed.
 |  
| <ProcessTXT>false</ProcessTXT> | Process TXT based file extensions |  
| <ProcessBAK>false</ProcessBAK> | Process BAK based file extensions |  
| <ProcessDAT>false</ProcessDAT> | Process DAT based file extensions |  
| <ProcessXML>false</ProcessXML> | Process XML based file extensions |  
| <ProcessEXE>false</ProcessEXE> | Process TXT based file extensions |  
| <ProcessMSP>false</ProcessMSP> | Process BAK based file extensions |  
| <ProcessDLL>false</ProcessDLL> | Process DLL based file extensions |  
| <ProcessINI>false</ProcessINI> | Process INI based file extensions |  
| <ProcessCFG>false</ProcessCFG> | Process CFG based file extensions |  
| <ProcessTMP>false</ProcessTMP> | Process TMP based file extensions |  
| <LogsDWM>1</LogsDWM> | When a file is processed in a folder, you can control when zip files are created.  1 = Daily, 2 = Weekly, 3 = Monthly.  Daily
 option is the default setting.
 |  
| <PreserveDirPath>true</PreserveDirPath> | Preserve Directory path, this option is called PreserveDirPath.  When IISLogs
 compresses a file stored in an alternative location, either a different
 directory on the same machine or UNC path, IISLogs preserves the original folder
 path when writing to disk.  For example, if store your IISLogs on
 
 c:inetpublogslogfilesw3svc1, when a file is stored, keeps the original
 log path.  When you disable PreserveDirPath, IISLogs will
 not retain the original folder path and write to the root of the
 alternative folder path configured in the ZipFilePath
 value.
 |  
| <NamingConvention>Default</NamingConvention> | Implemented for future use |  
| <Delimiter>!</Delimiter> | Implemented for future use |  
|  |  |  Example configuration file with multiple folders.<?xml version=”1.0″ standalone=”yes”?>
 <NewDataSet>
 <Table1>
 <DirectoryName>c:windowssystem32inetsrvurlscanlogs</DirectoryName> <ZipFile>false</ZipFile><ZipRetentionPeriod>0</ZipRetentionPeriod>
 <DeleteOriginalFile>false</DeleteOriginalFile>
 <DeleteFile>false</DeleteFile> <DeleteRetentionPeriod>0</DeleteRetentionPeriod> <Recursive>false</Recursive> <ProcessRootFolderRecursive>false</ProcessRootFolderRecursive> <ZipFilePath>local</ZipFilePath> <IncludeComputerName>false</IncludeComputerName> <ProcessUnknownExtensions>false</ProcessUnknownExtensions> <ProcessTXT>false</ProcessTXT><ProcessBAK>false</ProcessBAK>
 <ProcessDAT>false</ProcessDAT><ProcessXML>false</ProcessXML>
 <NamingConvention>Default</NamingConvention><Delimiter>!</Delimiter>
 <ProcessEXE>false</ProcessEXE>
 <ProcessMSP>false</ProcessMSP>
 <ProcessDLL>false</ProcessDLL><ProcessINI>false</ProcessINI>
 <ProcessCFG>false</ProcessCFG><ProcessTMP>false</ProcessTMP>
 <LogsDWM>1</LogsDWM><PreserveDirPath>true</PreserveDirPath>
 </Table1><Table1>
 <DirectoryName>c:inetpublogs</DirectoryName>
 <ZipFile>false</ZipFile>
 <ZipRetentionPeriod>0</ZipRetentionPeriod>
 <DeleteOriginalFile>false</DeleteOriginalFile>
 <DeleteFile>false</DeleteFile> <DeleteRetentionPeriod>0</DeleteRetentionPeriod> <Recursive>false</Recursive> <ProcessRootFolderRecursive>false</ProcessRootFolderRecursive> <ZipFilePath>local</ZipFilePath> <IncludeComputerName>false</IncludeComputerName> <ProcessUnknownExtensions>false</ProcessUnknownExtensions> <ProcessTXT>false</ProcessTXT><ProcessBAK>false</ProcessBAK>
 <ProcessDAT>false</ProcessDAT><ProcessXML>false</ProcessXML>
 <NamingConvention>Default</NamingConvention><Delimiter>!</Delimiter>
 <ProcessEXE>false</ProcessEXE>
 <ProcessMSP>false</ProcessMSP>
 <ProcessDLL>false</ProcessDLL><ProcessINI>false</ProcessINI>
 <ProcessCFG>false</ProcessCFG><ProcessTMP>false</ProcessTMP>
 <LogsDWM>1</LogsDWM><PreserveDirPath>true</PreserveDirPath>
 </Table1>
 </NewDataSet>
 
 Misc items 
Daily, Weekly, Monthly zip optionsControl your zip files
 retention period length.   By default, IISLogs creates a zip file on a
 daily basis.  Introducing in IISLogs 4.0, there are options to zip files on
 a weekly or monthly basis.  This can reduce the number of zip files created
 on disk.   You can use IISLogs classic options, you can apply the same
 rules to all folders.   The SpecificDirectories and
 Advanced Dir Config options are classic IISLogs options.
 The Per Directory (introduced in IISLogs 2.0) option allows for the same Zip
 options (Daily, Weekly, Monthly).  Using the PerDirectory option, you can
 apply separate rules on a per directory basis.
Per Directory enhancements in IISLogs 4.0In addition to
 providing Daily, Weekly, Monthly zip options in Per Directory option, an
 additional option to Preserve Directory path, this option is called PreserveDirPath
 in IISLogsGUI).  When IISLogs
 compresses a file stored in an alternative location, either a different
 directory on the same machine or UNC path, IISLogs preserves the original folder
 path when writing to disk.  For example, if store your IISLogs on
 c:inetpublogslogfilesw3svc1, when a file is stored, keeps the original
 log path.  When you disable PreserveDirPath, IISLogs will
 not retain the original folder path and write to the root of the alternative
 folder path configured in the ZipFilePath value.
If you use the Per Directory features along with other featuressuch as SpecificDirectoriese, you’ll need to agree to the
 Compression Folder policy and Delete file File policy.  These can be
 set using the IISLogsGUI ‘quick wizard’ option.   Here is a
 article that discussed this option further.
 
 http://www.iislogs.com/help/IISLogs20/123goconfigure2.htm
 If policies aren’t set, no files will be processed.
When using the Per Directory feature and storing files in a alternativelocation besides the local directory, all directory information will be
 included in the path.  For example. If your log files are stored
 locally in d:wwwlogw3svc1.
 When you store the files on a remote server such as
 \FileServer01D$LogFiles.
 The path to stored files would be
 
 \FileServer01D$LogfilesServerNamewwwlogsw3svc1.  Note:
 wwwlogsw3svc1 are included and can’t be excluded.  IISLogs is
 designed to keep original file location information on a remote server.
 The Per Directory option allows you to include or exclude the server name in
 the path.   We designed IISlogs to have multiple machines move
 files to a central location.  This is why the server name is included
 to keep the folders unique.  In IISLogs, you can exclude having the
 original folder path using PreserveDirPath to false.
Per Directory has a option called ProcessUnknownExtensions. The feature is designed to handle log files with custom naming conventions such as .06302008. By default, IISLogs by default only handles certain file extensions. One security feature integrated into IISLogs no system files or folders will be processed, either when using ProcessUnknownExtensions or regular IISlogs options.C:WindowsSystem32Logfiles is the only folder below C:windows that will be processed. We strongly encourage you test this option on a non-production machine before implementing. Also, make sure you have backups of all files before running IISLogs.Files need to be at least one hour old to be processed.  Theproduct is designed to handle logs that are at least one hour old. For
 example, if you set the run time at 1:01 AM (assuming they rolled over at
 midnight). The files should be processed after not being updated for at
 least an hour.
Per Directory has an option called Recursive. This is a verypowerful feature.  If you set the Recursive option to True, IISLogs
 will start at the root folder and process all sub-directories.  For
 example, if you have a folder called E:Logs.
 Anything below E:Logs will be processed.
 There is no way to exclude specific sub-folders.  All folders will
 inherit the settings. The root folder E:Logs
 could contain files, the Recursive option does not automatically process
 files.  There is an option called Process Sub-Folders, it will
 include the files located in E:Logs.
 This particular option offers flexibility.
 |