This article covers how to use IISLogs 2.0 and
MailEnable. For more information regarding MailEnable, go to
http://www.mailenable.com
Question: Mailenable keeps
different text based logfiles inside one subdirectory, so inside the ‘SMTP’
logfile folder there are 3 different type’s of logfiles, Activity/Debug/W3C they
are all from the same date. When we use the IISLog tool to Copy them to
some other partition (our archive) inside an zip file only the first used
logfile is copied to the new location, the other logfiles aren’t’ moved (they
get zipped, but they cant be moved due to the same .zip file name.
Method 1
Open IISLogsGUI Select the folder in Specific Directories Option
Option 1 – Write logs to C:Temp Select Standard Settings, set the properties for example in
the picture (compresses after 7 days, deletes after 90 days)
Option 2 – Write logs to
\Server1Share1 Select Standard Settings, set the properties for example in
the picture (compresses after 7 days, deletes after 90 days)
If you want to zip, follow the first example
listed below, if you want to just delete files, follow the procedure below
using IISLogsGUI. What I recommend is take three files that are pretty old,
put them in a test folder and rename to match the files for MailEnable. I
tested this and was able to move the files. One thing to be
aware, IISLogs remembers the original folder path and replicates to the
target path, either from the local alternative path or UNC path. For
example, if the logs path is
c:LogsMailEnable, when the files are moved to another folder it would
be, for example
C:tempMachineNameLogsMailEnablefileName.zip. The Per
Directory Option allows you to drop off the machine name, the first option
listed above does not. The XML is stored in the
SampleZipPerDirectory.xml You can use IISLogsGUI to
configure what you need.
1) Open IISLogsGUI
2) Go to Per Directory option
3) Select the folder, you want to process
4) Select Zip file, type in number of hours (i.e 168 = 7 days)
5) Save changes, test. This will not delete the original, but can be
enabled at a later time.
//This processes a folder called
C:Program Files (x86)Mail EnableLoggingSMTP with the following
rules. It zips files older than 168 hours (7 days) along with deleting the
original, it removes files on the system after 2160 hours (90 days). It
stores the archive files on \Server1Share1
//This processes a folder called
C:Program Files (x86)Mail EnableLoggingSMTP with the
following rules. It zips files older than 168 hours (7 days). It
stores the archive files on c:temp.
The archive could also be stored on a UNC path (\Server1Share1