Hi.
I'm trying to multiplex multiple IIS log files from a single web domain into separate directories based on the web
directory "root" located within the cs-uri-stem of each IIS log file entry.
So far I've been able to create the separate directories for each directory "root" with no problem using a query where
I'm only reading from a single log file like the following:
"SELECT DISTINCT EXTRACT_TOKEN(cs-uri-stem, 1, '/') AS DirectoryName, *
INTO E:\SummaryData\*\year_to_date.log
FROM E:\w3logs\corp.weyer.com\WAWTCAIIS21\ex061018.log
WHERE DirectoryName NOT IN ('_vti_bin' ;'')" -i:IISW3C -o:w3c
Statistics:
-----------
Elements processed: 3386
Elements output: 3383
Execution time: 0.14 seconds
No problem.
==========
But (There's always a but, isn't there?) when I try to multiplex out from multiple log files by putting a wildcard in the FROM clause in the same job as in the following:
"SELECT DISTINCT EXTRACT_TOKEN(cs-uri-stem, 1, '/') AS DirectoryName, *
INTO E:\SummaryData\*\year_to_date.log
FROM E:\w3logs\corp.weyer.com\WAWTCAIIS21\ex06*.log
WHERE DirectoryName NOT IN ('_vti_bin' ;'')" -i:IISW3C -o:w3c
logparser returns the error:
Task aborted.
Error while opening file "E:\SummaryData\weycodir\year_to_date.log": The
process cannot access the file because it is being used by another process.
I've checked the obvious to be sure that the file is not actually in use by another application and it doesn't
appear to be.
I've played around with the filemode output parameter to no avail and am probably doing something blatantly stupid.
Any help very much appreciated!
New Guy
====
Also added an attachment that will hopefully help illustrate what I'm trying to do.