<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>General Discussion</title><link>http://forums.iis.net/1140.aspx</link><description>General discussion of all facets of Microsoft Log Parser and of the Microsoft Log Parser toolkit book.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Inner Join 2 files</title><link>http://forums.iis.net/thread/1925067.aspx</link><pubDate>Tue, 17 Nov 2009 16:05:53 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1925067</guid><dc:creator>frank@slimcd.com</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1925067.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1925067</wfw:commentRss><description>&lt;p&gt;Can log parser be used to inner join to separate log files to build a combined report?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>A dedicate serveur for logs management</title><link>http://forums.iis.net/thread/1924643.aspx</link><pubDate>Fri, 13 Nov 2009 16:24:59 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924643</guid><dc:creator>zeraphul</dc:creator><slash:comments>2</slash:comments><comments>http://forums.iis.net/thread/1924643.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1924643</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m still loocking a way to manage and centralize on one server:&lt;/p&gt;
&lt;p&gt;- The logs collecting&lt;br /&gt;- The logs processing&lt;br /&gt;- The logs reports &lt;br /&gt;&lt;br /&gt;Does someone knew a good third-party app that do this kind of job ?&lt;br /&gt;I&amp;#39;ll thingking of create a collections of scripts to do the job but i think that this is sometings that may be allready exist ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>IIS log parsing timestamp woes</title><link>http://forums.iis.net/thread/1924364.aspx</link><pubDate>Wed, 11 Nov 2009 23:34:43 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924364</guid><dc:creator>Apoco</dc:creator><slash:comments>3</slash:comments><comments>http://forums.iis.net/thread/1924364.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1924364</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m trying to count the number of hits for a particular URL on our web site by parsing our IIS logs using Log Parser 2.2.  Everything seems to be working fine, except that its handling of timestamps is greatly confusing me.&lt;/p&gt;

&lt;p&gt;The IIS logs have all of the timestamps expressed in UTC time.  Therefore, in my application, I convert the server&amp;#39;s time to UTC before plugging it into the query.  However, when I try to query for the current day&amp;#39;s data, I get back a zero count, despite me seeing the records in the log file.  The generated query I try to run to get everything within the current day looks something like this:&lt;/p&gt;

&lt;pre&gt;
    SELECT COUNT(*) 
    FROM \\Server\IIS Logs\LogFiles\W3SVC1\u_ex*.log
    WHERE 
        cs-method = &amp;#39;GET&amp;#39; 
        AND cs(Referer) NOT LIKE &amp;#39;%ntorus%&amp;#39;
        AND c-ip NOT LIKE &amp;#39;192%&amp;#39;
        AND c-ip NOT LIKE &amp;#39;127%&amp;#39;
        AND (
            cs-uri-stem = &amp;#39;/&amp;#39; 
            OR cs-uri-stem = &amp;#39;/myurl&amp;#39;)
        AND sc-status BETWEEN 200 AND 299 
        AND date BETWEEN 
            TIMESTAMP(&amp;#39;2009-11-11 07:00&amp;#39;, &amp;#39;yyyy-MM-dd hh:mm&amp;#39;) 
            AND TIMESTAMP(&amp;#39;2009-11-12 07:00&amp;#39;, &amp;#39;yyyy-MM-dd hh:mm&amp;#39;)
&lt;/pre&gt;

&lt;p&gt;It looks like for some reason the current day&amp;#39;s data is getting skipped.  When expanding the date range, I get back data just fine.  Why is this happening?&lt;/p&gt;</description></item><item><title>New GUI tool for MS Log Parser, Log Parser Lizard</title><link>http://forums.iis.net/thread/1860124.aspx</link><pubDate>Wed, 05 Dec 2007 12:10:29 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1860124</guid><dc:creator>lizardlabs</dc:creator><slash:comments>63</slash:comments><comments>http://forums.iis.net/thread/1860124.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1860124</wfw:commentRss><description>&lt;p&gt;Becouse the command-line interface for Microsoft Log Parser is not very intuitive, I have created Log Parser Lizard, a Microsoft Log Parser GUI tool for managing queries, exporting results to Excel, charts, etc… In addition I have added input filters for log4net file format and SQL server T-SQL queries.&lt;/p&gt;
&lt;p&gt;You can&amp;nbsp;download Log Parser Lizard from&amp;nbsp;here &lt;a href="http://www.lizardl.com/"&gt;www.lizardl.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Microsoft.Net 2.0 is required.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.lizardl.com/"&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Help with parsing activesync data</title><link>http://forums.iis.net/thread/1921730.aspx</link><pubDate>Thu, 22 Oct 2009 14:48:07 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1921730</guid><dc:creator>Ebucel</dc:creator><slash:comments>2</slash:comments><comments>http://forums.iis.net/thread/1921730.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1921730</wfw:commentRss><description>&lt;p&gt;I copied the information from http://msexchangeteam.com/archive/2006/02/14/419562.aspx&lt;/p&gt;&lt;p&gt;but It does not output any info:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Statistics:&lt;br /&gt;-----------&lt;br /&gt;Elements processed: 762475&lt;br /&gt;Elements output:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;br /&gt;Execution time:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.25 seconds&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;is what i get after running the sql with this commandline:&lt;/p&gt;&lt;p&gt;&amp;nbsp;C:\Program Files\Log Parser 2.2&amp;gt;LogParser.exe -i:IISW3C -o:CSV file:C:\lpar\Hits&lt;br /&gt;_by_User.sql&lt;/p&gt;&lt;p&gt;I know we have Iphone users and other activesync devices.&lt;/p&gt;&lt;p&gt;I want to generate a report that list users, device, last sync, last sync attempt which I thought the SQL i found would do it just doesn&amp;#39;t seem to output the data or create the csv file.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks In Advance &lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to divide a number in SQL</title><link>http://forums.iis.net/thread/1920597.aspx</link><pubDate>Tue, 13 Oct 2009 17:33:39 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1920597</guid><dc:creator>massel</dc:creator><slash:comments>2</slash:comments><comments>http://forums.iis.net/thread/1920597.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1920597</wfw:commentRss><description>&lt;p&gt;Hello, I have the following SQL query that works fine:&lt;/p&gt;&lt;p&gt;SELECT cs-uri-stem, SUM(sc-bytes) as GB, count(*) AS hits INTO C:\test.csv FROM * GROUP BY cs-uri-stem&amp;quot; -i: w3c -o: csv&lt;/p&gt;&lt;p&gt;What I want to do is divide the number I get in SUM(sc-bytes) as GB&amp;nbsp; by 1000000000.&amp;nbsp; I was able to use the DIV function, but it drops all the zeros after the decimal and I want to keep those.&amp;nbsp; I tried using a simple statement like SUM(sc-bytes) / 1000000000 as GB, but I get an error in LogParser.&amp;nbsp; Thanks for any help.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Windows Event Logs</title><link>http://forums.iis.net/thread/1924270.aspx</link><pubDate>Wed, 11 Nov 2009 15:31:01 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924270</guid><dc:creator>Hybrid125</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1924270.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1924270</wfw:commentRss><description>&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;I&amp;#39;ve been trying to import specific security events from about 50 computers on my network to a SQL database using a scheduled automated task.&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;I have&amp;nbsp;a batch file (Batch1) that first populates a text file with a list of all the computers on our network&amp;nbsp;using a vbscript.&amp;nbsp; Then the batch file (Batch1) runs another VBScript that adds the servername and time range variables to another batch file (Batch2).&amp;nbsp; Batch2 executes logparser with the variables specified and imports from every computer on my network to my SQL database.&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;This works all fine and dandy, but when I go to specify the events I&amp;#39;d like to import on the Logparser execution line in Batch2, I exceed the limit of the batch line.&amp;nbsp; &lt;/span&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;I setup a sql file with the complete query for logparser and have used logparser to do a &amp;quot;file:&lt;em&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;filename&amp;quot;&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&amp;nbsp;but when I do this, I can no longer use the variable for the computer name.&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;&amp;nbsp;I&amp;#39;m not very proficient with VBscript.&amp;nbsp; The couple scripts I&amp;#39;m using both were modified from others I&amp;#39;ve found online where people were trying to accomplish a similar objective.&lt;/span&gt;&lt;/p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;Does anyone know of a way to integrate both methods so I can use the SQL file in the Logparser&amp;nbsp;batch with a variable for the computername?&lt;/span&gt;</description></item><item><title>What is the future (or sucessor) to Log Parser?</title><link>http://forums.iis.net/thread/1924109.aspx</link><pubDate>Tue, 10 Nov 2009 18:21:57 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924109</guid><dc:creator>msdn_dave</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1924109.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1924109</wfw:commentRss><description>&lt;p&gt;Not trying to be provactive here, but just wondering if there is anything that I might have missed indicating that we&amp;#39;ll see any fixes (or a sucessor) to Log Parser 2.2.10?&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Looks like its been three years since the creator&amp;#39;s departure.&amp;nbsp;In Nov 2006, there was a hint at good things to come in a post from the creator, but doesn&amp;#39;t look like that has happened.&amp;nbsp; Has anyone from MS made any sort of satement one way or the other, or pointed to what we &amp;quot;should&amp;quot; be moving to?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Web files not hit</title><link>http://forums.iis.net/thread/1901813.aspx</link><pubDate>Fri, 24 Apr 2009 19:17:36 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1901813</guid><dc:creator>jasoncamp</dc:creator><slash:comments>3</slash:comments><comments>http://forums.iis.net/thread/1901813.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1901813</wfw:commentRss><description>&lt;p&gt;Is it possible to use the log parser to demermine what pages under wwwroot have not been hit in the past month?&lt;/p&gt;</description></item><item><title>Oddity processing logs: transition from 10-31 to 11-01</title><link>http://forums.iis.net/thread/1923507.aspx</link><pubDate>Thu, 05 Nov 2009 14:41:29 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923507</guid><dc:creator>REHilliard</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1923507.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1923507</wfw:commentRss><description>Using version 2.2.10, processing Exchange 2003 tracking logs, grouping by day, when I tried to process the week 10-26 thru 11-01, I would only get data thru 10-31. The output from 11-01 would never show. I&amp;#39;ve been using the job to process logs for a couple of months and had not had any issues. 

When I process 11-1 by itself, it works just fine. Immediately I assumed it was because of the single-digit day (2009-11-1), but that proved wrong, because transitioning from 09-30 to 10-1 showed no such problems. But to test, I manually changed the day to 2-digits...to no avail.

If I &amp;quot;reverse&amp;quot; the processing order (11-1 and then 10-31), it works just fine. If I try 11-2 instead of 11-1, the same thing happens:

&amp;quot;Error while parsing field Date: Vaule &amp;quot;2009-11-1&amp;quot; is not a vaild W3C date (&amp;quot;yyyy-MM-dd&amp;quot;)&amp;quot; is the error.

As I said, processing by itself or ahead of the 10-31 logs works just fine, it&amp;#39;s only when it transitions from 10-31 to 11-1. (and not from 09-30 to 10-01). 

It&amp;#39;s not a show stopper, except trying to use the charting options for the entire 7 day spread. 

Really just passing this along in case someone runs into this issue.
</description></item><item><title>Create combined chart (or table)</title><link>http://forums.iis.net/thread/1923480.aspx</link><pubDate>Thu, 05 Nov 2009 10:28:46 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923480</guid><dc:creator>saturno</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1923480.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1923480</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have a log file from which I would like to produce a combined chart.&lt;/p&gt;
&lt;p&gt;That file log&amp;#39;s all the fax&amp;#39;s sent by a fax server. &lt;/p&gt;
&lt;p&gt;From that log I would like to extract (and already done that) the total fax&amp;#39;s sent by specific users and (not achieved yet) in the same chart, the total number which were sent with result = &amp;quot;success&amp;quot;.&lt;/p&gt;
&lt;p&gt;The log has many other fields, but for this I only need &amp;quot;SenderName&amp;quot; and &amp;quot;result&amp;quot;.&lt;/p&gt;
&lt;p&gt;I can extract and chart each COUNT in two different graphs, one for total fax&amp;#39;s sent by a User, and a second for total fax&amp;#39;s sent with &amp;#39;SUCCESS&amp;#39;. &lt;/p&gt;
&lt;p&gt;I would like to create just one chart with two columns for each user: one for the total fax&amp;#39;s sent, and another with all which were successfully sent.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Can someone help me?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>I need help figuring out how to tell what is an .exe using logparser on IIS 5.0 -6.1</title><link>http://forums.iis.net/thread/1923087.aspx</link><pubDate>Mon, 02 Nov 2009 15:04:30 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923087</guid><dc:creator>warpig</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1923087.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1923087</wfw:commentRss><description>&lt;p&gt;Hi Folks,&lt;/p&gt;
&lt;p&gt;I have been trying to figure out how to get this info from multiple places on the net , have come close but not all the way.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So here is the deal I need to know if there is a way I can use log parser with a script command to tell what the real running applications are on IIS web servers.&lt;/p&gt;
&lt;p&gt;I have 31 web servers some have 180 folders some have 30 and cannot assume each web folder is running application in the virtual directory but cannot assume they are not.&lt;/p&gt;
&lt;p&gt;can someone help me with this? is it possible?&lt;/p&gt;</description></item><item><title>Need help parse IIS log</title><link>http://forums.iis.net/thread/1918914.aspx</link><pubDate>Wed, 30 Sep 2009 04:00:13 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1918914</guid><dc:creator>togo413</dc:creator><slash:comments>6</slash:comments><comments>http://forums.iis.net/thread/1918914.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1918914</wfw:commentRss><description>&lt;p&gt;Hi everyone,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am new to log parse. Currently&amp;nbsp; download logparse2.2 . I need to implement a .net web app to parse the&amp;nbsp; iis site usage detail for iis log. I have try the sample provided in logparse2.2 . It seem doesn&amp;#39;t work accordingly. Need help for sample code or any good guidance web site.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Querying logs having single quotes in field data.</title><link>http://forums.iis.net/thread/1922616.aspx</link><pubDate>Thu, 29 Oct 2009 06:27:12 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1922616</guid><dc:creator>rhitam_sanyal</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1922616.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1922616</wfw:commentRss><description>Hi all I am trying to use the logparser vis COM using c# code . I am usign a function pareLog which returns a dataset after querying the TSV file . Lets say I have a data which looks like this :


Field1              Field2
Data1             Da&amp;#39;ta2nsomemore



Notice the single quote in the data under field2.Now my query looks something like this :


string strSQL = &amp;quot;select * from &amp;#39;C:\20091014_ErrorLogs.log&amp;#39; where Field2 like &amp;#39;%Da&amp;#39;ta&amp;#39;&amp;quot;;
Dataset DS  = parselog(strsql);

the parselog function i am using from the following link : 

http://www.leastprivilege.com/UsingLogParserFromC.aspx




obviously the above query is throwing an exception since anything after the second single quote in the where condition is taken as a part of the query. So how to tackle this problem ? Any help greatly appreciated.</description></item><item><title>Run LogParser from Removable media</title><link>http://forums.iis.net/thread/1922425.aspx</link><pubDate>Wed, 28 Oct 2009 02:09:42 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1922425</guid><dc:creator>keydet89</dc:creator><slash:comments>3</slash:comments><comments>http://forums.iis.net/thread/1922425.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1922425</wfw:commentRss><description>&lt;p&gt;Is it possible to run LogParser from removable media, such as a CD or a thumb drive?&lt;/p&gt;&lt;p&gt;&amp;nbsp;The reason I&amp;#39;m asking this is to perform incident response on Windows 2008 systems in a data center, most often when I don&amp;#39;t own those systems.&amp;nbsp; The goal here is to get the contents of the Windows Event Logs in an easily parseable format.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks, your assistance is greatly appreciated. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Cannot find any file matching "C:\inetpub\logs\LogFiles\W3SVC4\ex*.log"</title><link>http://forums.iis.net/thread/1919578.aspx</link><pubDate>Mon, 05 Oct 2009 21:17:52 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1919578</guid><dc:creator>saphua</dc:creator><slash:comments>13</slash:comments><comments>http://forums.iis.net/thread/1919578.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1919578</wfw:commentRss><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve made a WinForms application that gets the traffic of a single site. This works perfectly, until I decided to make a WebForms application out of it instead. The exact same code (see below) now throws the following exception:&lt;/p&gt;
&lt;p&gt;System.IO.FileNotFoundException: Error executing query: Cannot open : Cannot find any file matching &amp;quot;C:\inetpub\logs\LogFiles\W3SVC4\ex*.log&amp;quot;&lt;/p&gt;
&lt;p&gt;The exception makes sence, since all log files are prefixed with &amp;#39;&lt;strong&gt;u_&lt;/strong&gt;ex&amp;#39; and not &amp;#39;ex&amp;#39;. It&amp;#39;s just strange that it does work when ran from a WinForms application.&lt;/p&gt;
&lt;p&gt;Could anyone please help me with this?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Code:&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;private&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; UpdateByDateRange(&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;DateTime&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; dateFrom, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;DateTime&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; dateTo)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; siteId = Request.ServerVariables[&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;INSTANCE_ID&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;];&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;LogQueryClassClass&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; logger = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;LogQueryClassClass&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;();&lt;/p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;COMIISW3CInputContextClass&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; inputContext = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;COMIISW3CInputContextClassClass&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; query = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;SELECT SUM(TO_REAL(sc-bytes)) AS sentTotal, SUM(TO_REAL(cs-bytes)) AS receivedTotal FROM &amp;lt;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; + siteId + &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;gt; WHERE TO_TIMESTAMP(date, time) &amp;gt;= TO_TIMESTAMP(&amp;#39;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; + dateFrom.ToString(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;yyyy-MM-dd HH:mm:ss&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;) + &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;#39;, &amp;#39;yyyy-MM-dd HH:mm:ss&amp;#39;) AND TO_TIMESTAMP(date, time) &amp;lt;= TO_TIMESTAMP(&amp;#39;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; + dateTo.ToString(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;yyyy-MM-dd HH:mm:ss&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;) + &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;#39;, &amp;#39;yyyy-MM-dd HH:mm:ss&amp;#39;)&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ILogRecord&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; record = logger.Execute(query, inputContext).getRecord();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;decimal&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; trafficSent = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;decimal&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Parse(record.getValue(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;sentTotal&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;).ToString());&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;decimal&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; trafficReceived = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;decimal&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Parse(record.getValue(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;receivedTotal&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;).ToString());&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;// ...&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Import from (Unix) CSV to SQL</title><link>http://forums.iis.net/thread/1921914.aspx</link><pubDate>Fri, 23 Oct 2009 16:36:27 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1921914</guid><dc:creator>NickStan</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1921914.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1921914</wfw:commentRss><description>&lt;p&gt;I am having issues importing from CSV to a SQL table using Logparser.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The csv file was created on a unix box so the line breaks are just Char(10)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Here is the command I am using:&lt;/p&gt;
&lt;p&gt;LogParser -o:SQL&amp;nbsp;-i:CSV &amp;quot;SELECT merchant_id,merchant_name,aw_product_id,merchant_product_id,product_name,description,category_id,category_name,merchant_category,aw_deep_link,aw_image_url,search_price,delivery_cost,merchant_deep_link,merchant_image_url,aw_thumb_url,brand_id,brand_name,commission_amount,commission_group,condition,currency,delivery_time,display_price,ean,in_stock,is_hot_pick,isbn,is_for_sale,language,merchant_thumb_url,model_number,mpn,parent_product_id,pre_order,product_type,promotional_text,rrp_price,specifications,stock_quantity,store_price,upc,valid_from,valid_to,warranty,web_offer INTO dbo.product_import FROM C:\Shares\data\23_10_2009.csv&amp;quot; &lt;br /&gt;-server:UK-App -database:test -driver:&amp;quot;SQL Server&amp;quot; -username:i_writer -password:i_writer777* -createTable:OFF &lt;/p&gt;
&lt;p&gt;Error messge:&lt;/p&gt;
&lt;p&gt;Task aborted.&lt;br /&gt;SQL table column &amp;quot;merchant_product_id&amp;quot; data type is not compatible with&lt;br /&gt;&amp;nbsp; SELECT clause item &amp;quot;merchant_product_id&amp;quot; (type INTEGER)&lt;br /&gt;&lt;br /&gt;What I cant&amp;nbsp;understand is that merchant_product_id is setup as an Int in the database, yet the error message is saying that the data type is not compatible?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Nick&lt;/p&gt;</description></item><item><title>Logging Application Block (Enterprise Libary 4.1)LogParser GUI?</title><link>http://forums.iis.net/thread/1906742.aspx</link><pubDate>Fri, 12 Jun 2009 10:57:48 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1906742</guid><dc:creator>brix</dc:creator><slash:comments>2</slash:comments><comments>http://forums.iis.net/thread/1906742.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1906742</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am using the Enterprise Library Application Block and wondering if there is a Visual GUI ,heard of Log Parser Lizard or any other will do that I can easily point to a folder or something similar and view my logs etc....&lt;/p&gt;
&lt;p&gt;Before reiventing the wheel and writing my own can somebody tell me&amp;nbsp;if such a tool&amp;nbsp;already exists. I have quickly looked at Log Parser but not sure it works with enterprise library logs etc...&lt;/p&gt;
&lt;p&gt;thanks for any suggestions or input&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Merge two outputs</title><link>http://forums.iis.net/thread/1921397.aspx</link><pubDate>Tue, 20 Oct 2009 16:46:31 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1921397</guid><dc:creator>saturno</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1921397.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1921397</wfw:commentRss><description>&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have two LP queries that return different results from the same origin.&lt;/p&gt;
&lt;p&gt;One output&amp;#39;s a 3d exploded pie chart, and a second that return a table with 4 columns with a sumarized result of a second query.&lt;/p&gt;
&lt;p&gt;How can I run this both (separate)&amp;nbsp;queries keeping in mind that the result should be (for example) just one html page? (chart on top, and data below).&lt;/p&gt;
&lt;p&gt;I also would like to embed in the output the LogParser statistics presented in the end of processing: &lt;/p&gt;
&lt;p&gt;Elements processed: &lt;/p&gt;
&lt;p&gt;Elements output:&lt;/p&gt;
&lt;p&gt;Execution time:&lt;/p&gt;
&lt;p&gt;How can I achieve this?&lt;/p&gt;
&lt;p&gt;P.S.: I have the Logparser Toolkit (Syngress), and altough it is quite extensive, I didn&amp;#39;t found the answer for this questions...&lt;/p&gt;</description></item><item><title>Retrieving username through logparser</title><link>http://forums.iis.net/thread/1921673.aspx</link><pubDate>Thu, 22 Oct 2009 10:14:11 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1921673</guid><dc:creator>shikhar_99</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1921673.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1921673</wfw:commentRss><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;I need a query to retrieve a particular user from the security event logs through logparser.For eg: there is user named JOHN then i want to know how many times JOHN logged in on a particular server.Any help regarding this would be appreciated.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks in Advance&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Reading data FROM an ODBC data source (such as MySQL)</title><link>http://forums.iis.net/thread/1921360.aspx</link><pubDate>Tue, 20 Oct 2009 09:54:49 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1921360</guid><dc:creator>Kevinst</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1921360.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1921360</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;is there a way to READ the data from an ODBC data source (such as MySQL) instead of log files?&lt;/p&gt;
&lt;p&gt;I know that it is possible to write the results to a data base. But is it possible to read data from a data base to build charts and so on?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks,&lt;/p&gt;
&lt;p&gt;Kevin&lt;/p&gt;</description></item><item><title>Logparser with KMS logs</title><link>http://forums.iis.net/thread/1916937.aspx</link><pubDate>Mon, 14 Sep 2009 23:13:45 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1916937</guid><dc:creator>jf</dc:creator><slash:comments>3</slash:comments><comments>http://forums.iis.net/thread/1916937.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1916937</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello..&lt;/p&gt;&lt;p&gt;&amp;nbsp;I would like to generate reports off of a KMS server. &amp;nbsp; More specifically I would like to query a remote kms server {logs for the server} and output the log results to an html page every hour or so.&amp;nbsp; I have figured out how to query the application/security logs on a remote server but I have not been able to get to the kms logs. &amp;nbsp; Any example queries would be greatly appreciated :) &amp;nbsp; Thanks.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>NAT parameters -rtp:-1</title><link>http://forums.iis.net/thread/1920797.aspx</link><pubDate>Wed, 14 Oct 2009 23:26:19 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1920797</guid><dc:creator>dronebee</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1920797.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1920797</wfw:commentRss><description>&lt;p&gt;I am having some issues using the parameter -rtp-1. It comes up with an invalid value. However if I put it in single quotes -rtp:&amp;#39; -1&amp;#39; it works. All the documentation states otherwise. What am I doing wrong ?&lt;/p&gt;</description></item><item><title>How to write space in log parser query folder path</title><link>http://forums.iis.net/thread/1920140.aspx</link><pubDate>Fri, 09 Oct 2009 11:03:54 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1920140</guid><dc:creator>togo413</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1920140.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1920140</wfw:commentRss><description>&lt;p&gt;Hi guys,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;My iis log folder path got space in between. It generate the error below&lt;/p&gt;&lt;p&gt;Please help. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Below is my code :&lt;br /&gt;&lt;/p&gt;&lt;p&gt;path = @&amp;quot;C:\iis log\servera\log\&amp;quot;;
      
                query = @&amp;quot;SELECT distinct date, cs-uri-stem, cs-uri-query,  cs-username, time FROM &amp;quot; + path + filename;
                query += &amp;quot; WHERE cs-uri-stem LIKE &amp;#39;%.aspx%&amp;#39; &amp;quot;;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Error code :&amp;nbsp;&lt;/p&gt;&lt;p&gt;Unexpected error: Error parsing query: Syntax Error: extra token(s) after query: &amp;#39;log\servera\log\ex090901.log&amp;#39; [SQL query syntax invalid or unsupported.]&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Timestamping output file</title><link>http://forums.iis.net/thread/1918842.aspx</link><pubDate>Tue, 29 Sep 2009 19:03:17 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1918842</guid><dc:creator>mattsmith321</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1918842.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1918842</wfw:commentRss><description>&lt;p&gt;Hi everyone! &lt;/p&gt;
&lt;p&gt;I currently use the following format for running my LogParser queries: &lt;br /&gt;- Name.bat - A batch file used for all of the command line settings. When needed, I can get fancy with looping and scripts but for the most part it is just the call to LogParser with all the params. &lt;br /&gt;- Name.sql - A file that contains the LogParser query that I want to execute. I use this separate file with the .sql extension so that I can format my query a little better and the extension helps pick up some sql syntax highlighting in some editors. &lt;br /&gt;- Name.txt - The actual output file. &lt;/p&gt;
&lt;p&gt;Note that the &amp;#39;Name&amp;#39; prefix above is often replaced with a name that is relevant to the particular queries I am performing: UniqueUsers, HitsByDay, etc. &lt;/p&gt;
&lt;p&gt;Lately I have just been using the same .sql file and commenting out and modifying the query as needed. This works fine until I either need to get back to a previous or inadvertently overwrite an output file that I wanted to keep. &lt;/p&gt;
&lt;p&gt;What I would like is for each execution of the batch file, the output is sent to a file that is named is name with the current timestamp. In addition, I would like for the contents of the .sql file to be copied to the top of the file. That way, all of my queries and output are saved for future reference. &lt;/p&gt;
&lt;p&gt;I&amp;#39;m assuming I would probably just end up doing it in the batch file and passing in the timestamp/filename to the .sql file? &lt;/p&gt;
&lt;p&gt;Here are some examples of my current files: &lt;/p&gt;
&lt;p&gt;NAME.BAT&lt;br /&gt;======= &lt;br /&gt;&amp;quot;C:\Program Files (x86)\Log Parser 2.2\LogParser.exe&amp;quot; file:Web.qry -i:iisw3c -o:csv -headers:on -tabs:off -filemode:1 -q:off &lt;/p&gt;
&lt;p&gt;NAME.SQL &lt;br /&gt;======= &lt;br /&gt;SELECT &lt;br /&gt;COUNT(*) AS Hits, &lt;br /&gt;cs-username &lt;br /&gt;INTO TopURIs.txt &lt;br /&gt;FROM &amp;#39;E:\IIS Log Files\ex090511*.log&amp;#39; &lt;br /&gt;GROUP BY cs-username &lt;br /&gt;ORDER BY Hits DESC &lt;/p&gt;
&lt;p&gt;Thanks, Matt&lt;/p&gt;</description></item></channel></rss>