<?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>Advanced Topics</title><link>http://forums.iis.net/1143.aspx</link><description>Advanced topics such as COM Programming, Log file format conversions, and Multiplex features.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>How To Output the Filename Where Match Occurs?</title><link>http://forums.iis.net/thread/1924477.aspx</link><pubDate>Thu, 12 Nov 2009 16:58:33 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924477</guid><dc:creator>mOrrIsEmSaBeR</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1924477.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1924477</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I&amp;#39;m running logparser in a C# application, and I&amp;#39;m using the ExecuteBatch method.&lt;/p&gt;&lt;p&gt;This runs nicely (I think) because I do get the output file,&amp;nbsp; but the method returns false.&lt;/p&gt;&lt;p&gt;Now the main question I wanted to ask is.&lt;/p&gt;&lt;p&gt;since my query is searching in a bunch of files, I was wondering if it&amp;#39;s possible to output the file name where the match occurs?&lt;/p&gt;&lt;p&gt;&amp;nbsp;e.g.&lt;/p&gt;&lt;p&gt;Query: SELECT DESC INTO OutPutFile.csv FROM C:\\Somefolder\\*.* HAVING DESC LIKE &amp;#39;%My Match%&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;nbsp;the output file will only contain the DESC Field.&lt;/p&gt;&lt;p&gt;&amp;nbsp;And I wanted to have the DESC Field and also the FILENAME.&lt;/p&gt;&lt;p&gt;Thanks in advance,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; André Pedro Peixoto&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Urgent: Can not impersonate for MSutil with ASP.NET</title><link>http://forums.iis.net/thread/1923862.aspx</link><pubDate>Mon, 09 Nov 2009 08:46:10 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923862</guid><dc:creator>tuantomy</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1923862.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1923862</wfw:commentRss><description>&lt;p&gt;I created a website using ASP.NET and imported MSUtil as a reference. MSUtil.Interop&amp;nbsp; was installes into GAC.&lt;/p&gt;
&lt;p&gt;Then I create a code like this:&lt;/p&gt;
&lt;p&gt;LogQueryClassClass logQuery = new LogQueryClassClass();&lt;/p&gt;
&lt;p&gt;COMEventLogInputContextClassClass evtLog = new COMEventLogInputContextClassClass();&lt;/p&gt;
&lt;p&gt;ILogRecordset iLogRecordSet = logQuery.Execute(&amp;quot;SELECT top 10 FROM \\abc\security&amp;quot;, evtLog);&lt;/p&gt;
&lt;p&gt;---------------&lt;/p&gt;
&lt;p&gt;I publish this web application on IIS local, identity of this website is a domain account but this account did not belong to Local Admin Group.&lt;/p&gt;
&lt;p&gt;I rewrite the code using:&lt;/p&gt;
&lt;p&gt;using(Impersonate imp = new Impersonate(&amp;quot;account_A&amp;quot;,&amp;quot;domain&amp;quot;,&amp;quot;pass&amp;quot;))&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;///My code here&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;account_A is a domain account with full rights on that computer and belongs to Local Admin Group.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;But I still get an error, I mean I could not impersonate my code to admin account when I run the application with non-local admin account as identity.&lt;/p&gt;
&lt;p&gt;Please help me fix that.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>how to get the # of records from ILogRecordset?</title><link>http://forums.iis.net/thread/1921027.aspx</link><pubDate>Fri, 16 Oct 2009 19:48:01 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1921027</guid><dc:creator>jdelinger</dc:creator><slash:comments>6</slash:comments><comments>http://forums.iis.net/thread/1921027.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1921027</wfw:commentRss><description>&lt;p&gt;hello all,&lt;/p&gt;
&lt;p&gt;How Do I get the number of records using the code below? rsLP does not have a method for that :(&lt;/p&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; LogParser = &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;/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; pObjInput = &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="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ILogRecordset&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; rsLP = LogParser.Execute(query, pObjInput);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Thank you&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;J&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>How do you convert date format from dd/mm/yyyy to yyMMdd?</title><link>http://forums.iis.net/thread/1921661.aspx</link><pubDate>Thu, 22 Oct 2009 08:42:46 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1921661</guid><dc:creator>thaichi23</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1921661.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1921661</wfw:commentRss><description>&lt;p&gt;Hello all,&lt;/p&gt;
&lt;p&gt;I have my&amp;nbsp;IIS to record daily so the log name is ex091022.log.&amp;nbsp; I want logparser to&amp;nbsp;find the log that has the current date similar to &amp;quot;select * from ex%date%.log&amp;quot;&lt;/p&gt;
&lt;p&gt;The only problem is that %date% returns 10/22/09 and that will not automatically grab the right log. I want to grab the date in the yyMMdd format.&amp;nbsp; Is this possible?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;My logparser statement works great but this is the only problem.&amp;nbsp; I am going to save the logparser query as a .bat file and let task schedular run this everday at a certain time so that way it automatically grabs the current date&amp;#39;s log and slaps it into SQL.&amp;nbsp; &lt;/p&gt;</description></item><item><title>64 Bit version of LogParser.dll</title><link>http://forums.iis.net/thread/1891115.aspx</link><pubDate>Tue, 27 Jan 2009 11:29:57 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1891115</guid><dc:creator>usmanjamil</dc:creator><slash:comments>3</slash:comments><comments>http://forums.iis.net/thread/1891115.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1891115</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&amp;nbsp;In previous posts I&amp;#39;ve found out that 64 bit version of LogParser.dll has not be released yet. Many of the applications that are using LogParser.dll fail to run on 64 bit machine. Most of the web hosting industry is already migrating to 64 bit machine and all these applications will certainly fail to work in such environments. If Microsoft cannot find time to compile the code for 64 bit, I being a developer too, volunteer to do it for them for 64 bit if they can provide source code of it. It is really becoming a necessity for all the applications migrating on 64 bit platform and there&amp;#39;s no news of its official release from Microsoft. I guess there&amp;#39;s no other option for users but to compile it for themselves. I Hope, Microsoft takes a seriuos notice of it and either provide the 64 bit version of Logparser.dll themselves or let me do it for them (Free of cost offcourse)&amp;nbsp;:)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Regards&lt;/p&gt;
&lt;p&gt;Usman&lt;/p&gt;</description></item><item><title>LogParser through Windows Service</title><link>http://forums.iis.net/thread/1866831.aspx</link><pubDate>Mon, 07 Apr 2008 04:38:08 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1866831</guid><dc:creator>Ya Ya</dc:creator><slash:comments>12</slash:comments><comments>http://forums.iis.net/thread/1866831.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1866831</wfw:commentRss><description>&lt;p&gt;Hi all, I am working on small project using C# (2005)&amp;nbsp;to use LogParser to query a particular server to grab it&amp;#39;s log and transfer the log to SQL2005.&lt;/p&gt;
&lt;p&gt;I am able to do so if I access the LogParser through IE (through interface like letting the user select the server, date/time to parse etc). But when I transfer the entire script into Windows Service, I cannot get anything at all.&lt;/p&gt;
&lt;p&gt;Below is part of the codes that I have. For the Windows Service part, if I were to comment off the line&amp;nbsp;LogRecordSet oRecordSet = oLogQuery.Execute( query, oEVTInputFormat );&amp;nbsp;it works (as in if I were to .write the query string out, I am able to) but when I put that line in, nothing happens although the service is started. Hope some experts here can help me! Thanks in advance!&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;LogQuery oLogQuery = new LogQuery(); &lt;br /&gt;EventLogInputFormat oEVTInputFormat = new EventLogInputFormat(); &lt;br /&gt;oEVTInputFormat.direction = &amp;quot;BW&amp;quot;; &lt;br /&gt;string query = @&amp;quot;SELECT * FROM &amp;quot;; &lt;br /&gt;if ( _ip != null ) &lt;br /&gt;{ &lt;br /&gt;if ( _ip != &amp;quot;local&amp;quot; ) &lt;br /&gt;{ &lt;br /&gt;query = query + &amp;quot;\\\\&amp;quot; + _ip + &amp;quot;\\SYSTEM&amp;quot;; &lt;br /&gt;} &lt;br /&gt;} &lt;br /&gt;query = query + &amp;quot; WHERE (1 = 1)&amp;quot;; &lt;br /&gt;if ( _lastmessageon != null ) &lt;br /&gt;{ &lt;br /&gt;query = query + &amp;quot; AND (TO_DATE(TimeGenerated) &amp;gt; TO_DATE(TIMESTAMP( &amp;#39;&amp;quot; + Common.MyFunctions.FormatDateTime( _lastmessageon, &amp;quot;yyyy-MM-dd hh:mm:ss&amp;quot; ) + &amp;quot;&amp;#39;, &amp;#39;yyyy-MM-dd hh:mm:ss&amp;#39;)))&amp;quot;; &lt;br /&gt;} &lt;br /&gt;LogRecordSet oRecordSet = oLogQuery.Execute( query, oEVTInputFormat ); &lt;/p&gt;
&lt;p&gt;.... (codes to insert into SQL2005) &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;oRecordSet.close(); &lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Using LogParser v2.2 to query registry.</title><link>http://forums.iis.net/thread/1920609.aspx</link><pubDate>Tue, 13 Oct 2009 20:28:57 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1920609</guid><dc:creator>gcasella</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1920609.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1920609</wfw:commentRss><description>&lt;p&gt;Hello Everyone,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;i&amp;#39;m having a little issue with LogParser, i am able to do my query through the command line and recieve an appropriate and the correct result, however when i try implimenting it into my vb.net application written in visual studio i can&amp;#39;t seem to determine if the data is going to the application mainly because i don&amp;#39;t know how to display it. I&amp;#39;ve tried many examples but not a lot on vb.net for this situation. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any clues or insight would be awsome. &lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;gcasella&lt;/p&gt;</description></item><item><title>IIS Log parse user column empty</title><link>http://forums.iis.net/thread/1919601.aspx</link><pubDate>Tue, 06 Oct 2009 03:50:47 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1919601</guid><dc:creator>togo413</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1919601.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1919601</wfw:commentRss><description>&lt;p&gt;Dear everyone,&lt;/p&gt;&lt;p&gt; I got some question regard iis log need to ask.&lt;/p&gt;&lt;p&gt;I got a web application which require windows authentication to log in to access to the system.&lt;/p&gt;&lt;p&gt;Anonymous is&amp;nbsp; not allowed.&lt;/p&gt;&lt;p&gt;But when I parse the log or open the log to read it, I still see a lot of record with empty user column. Please advice why this could happen.&lt;/p&gt;&lt;p&gt;Thanks&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>iCheckPoint issue</title><link>http://forums.iis.net/thread/1917982.aspx</link><pubDate>Wed, 23 Sep 2009 17:39:49 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1917982</guid><dc:creator>jwaz1999</dc:creator><slash:comments>4</slash:comments><comments>http://forums.iis.net/thread/1917982.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1917982</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m having an issue when using the checkpoint functionality of the log parser.&amp;nbsp; The subsequent calls to the updated file always skip the first record.&amp;nbsp; This happens every time.&lt;/p&gt;
&lt;p&gt;It could be a format issue of my file where the last record is thought to exist even though it is incomplete.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Does anyone know a way around this?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Jeff&lt;/p&gt;</description></item><item><title>LogRecordSet.atEnd() bug</title><link>http://forums.iis.net/thread/1904111.aspx</link><pubDate>Mon, 18 May 2009 19:19:57 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1904111</guid><dc:creator>Undutchable</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1904111.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1904111</wfw:commentRss><description>Hi,

In Execute Method, the LogRecordSet.atEnd(), is never true, with ETW input in live session (real time mode).

For example tracelog and logman have the real time option.
It works very well with LogParser but the recordSet never reaches the end!

Which makes it almost impossible to script something unless you set system timers to exit the enumeration.

Awesome tool besides that. 5 stars!

Cheers!</description></item><item><title>Merging IIS logs</title><link>http://forums.iis.net/thread/1912932.aspx</link><pubDate>Sat, 08 Aug 2009 20:19:47 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1912932</guid><dc:creator>bigluz</dc:creator><slash:comments>12</slash:comments><comments>http://forums.iis.net/thread/1912932.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1912932</wfw:commentRss><description>&lt;p&gt;I need to write a script to merge two or more IIS logs. Any help will be greatly appreciated.&lt;/p&gt;</description></item><item><title>GZip / Named Pipe Support?</title><link>http://forums.iis.net/thread/1909183.aspx</link><pubDate>Sat, 04 Jul 2009 11:05:52 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909183</guid><dc:creator>sideout</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1909183.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1909183</wfw:commentRss><description>&lt;p&gt;My actual goal is to support streaming .gz log file support.&amp;nbsp; I saw an input plugin that essentially gunzipped the file to scratch but that&amp;#39;s not going to work out for me.&amp;nbsp; I&amp;#39;m not sure if a streaming version of that plug-in could be made or not.&lt;/p&gt;&lt;p&gt;In the meantime I got the idea to try using UnZipPipe (a named pipe that streams and gunzips) from here - http://jcarlossaez.spaces.live.com/blog/cns!B3378F057444B65C!108.entry&lt;/p&gt;&lt;p&gt;start /MIN UnZipPipe logpipe D:\06-16-09.gz &lt;br /&gt;&lt;/p&gt;&lt;p&gt;logparser -i:IISW3C -o:CSV file:testpipe.sql -headers:ON -fileMode:1 -q:OFF &amp;gt; zippipetest.csv&lt;/p&gt;&lt;p&gt;testpipe.sql: &lt;br /&gt;&lt;/p&gt;&lt;p&gt;SELECT &amp;nbsp;&amp;nbsp;&amp;nbsp; TO_STRING(TO_LOCALTIME(TO_TIMESTAMP(date,time)), &amp;#39;hh&amp;#39;) as hour,ADD(QUANTIZE(TO_INT(TO_STRING(time, &amp;#39;mm&amp;#39;)),15),15) AS minutestart, STRCAT(TO_STRING(sc-status), STRCAT(&amp;#39;.&amp;#39;, TO_STRING(sc-substatus))) AS Status, &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNT(*) AS Total &lt;br /&gt;FROM \\.\pipe\logpipe&lt;br /&gt;GROUP BY hour,minutestart,Status &lt;br /&gt;ORDER BY hour,minutestart,Status&lt;br /&gt;&lt;/p&gt;&lt;p&gt;LogParser appears to not support named pipes though.&amp;nbsp; It complains:&lt;/p&gt;&lt;p&gt;&amp;nbsp; Cannot open &amp;lt;from-entity&amp;gt;: Error opening files: Error searching for files in&lt;br /&gt;&amp;nbsp; folder \\.\pipe: The network path was not found.&lt;/p&gt;&lt;p&gt;I can pipe to logparsers STDIN cat \\.\pipe\logpipe | logparser but that doesn&amp;#39;t work out for me because I need to build reports based on multiple files and that would only let me pipe one.&lt;/p&gt;&lt;p&gt;Any chance LogParser can be updated to work with named pipes or other tricks anyone can think ok? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>LogParser Script to capture logon/logoff info on a remote computer</title><link>http://forums.iis.net/thread/1913051.aspx</link><pubDate>Mon, 10 Aug 2009 18:50:45 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1913051</guid><dc:creator>BCStryker</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1913051.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1913051</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;I am hoping to use Logparser to capture logon/logoff user info (ID&amp;#39;s 528 and 540) from the security logs of a Windows 2003 fileserver for only certain machine names using wildcards in a certain date range say weekly or monthly.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Ideally the script would be run remotely and would on a weekly schedule connect to the fileserver, capture only logon and logoff events of computer workstations with names like *wkstn and *srvr from the previous week, and would then dump the info into a CSV file into a remote file share somewhere for analysis.&lt;/p&gt;&lt;p&gt;Is that possible to do with Logparser and if so has something been already written out there that I could modify and use? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks for any help! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Scripts to capture logon/logoff works fine-does not work if run as a group policy logon/logoff script</title><link>http://forums.iis.net/thread/1864548.aspx</link><pubDate>Tue, 04 Mar 2008 04:12:27 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1864548</guid><dc:creator>BobJ</dc:creator><slash:comments>9</slash:comments><comments>http://forums.iis.net/thread/1864548.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1864548</wfw:commentRss><description>&lt;p&gt;I created a process to capture specific logon/logoff information - including date, time, user name, ip address, mac address, computer name, and some other site specific information. This all runs as part of a batch file that collects the data and ultimately echos all captured data to a csv file.&lt;/p&gt;
&lt;p&gt;I want to import this data at the time it is captured to a SQL database, so I modified my script to run logparser and read the csv file in order to import it directly to the SQL DB. All data is initially stored on the local machine of the user logging on. There do not appear to be any issues with creating&amp;nbsp;the text files in that directory.&amp;nbsp;If I manually run the batch file, everything works as planned - CSV is created, read and imported into SQL.&amp;nbsp; Works Great!&lt;/p&gt;
&lt;p&gt;But....if I set the batch files to run as the logon and logoff scripts in group policy (user), the CSV file is created, but the data is not imported into SQL. I tried to pipe the output of the SQL command to a text file for debugging and along with the statistics, it reports &amp;quot;task aborted&amp;quot;. That&amp;#39;s it. I couldn&amp;#39;t find anything else anywhere.&lt;/p&gt;
&lt;p&gt;This is the statement I&amp;#39;m trying to execute:&lt;/p&gt;
&lt;p&gt;&lt;a&gt;\\mydomain\NETLOGON\logparser.exe&lt;/a&gt; &amp;quot;select * INTO LogonLogoff from c:\logdata&lt;a&gt;\DataToImport.txt&lt;/a&gt;&amp;quot; -i:CSV -o:SQL -server:MySQLServer\ThisInstance -database:LogonLogoffDB -driver:&amp;quot;SQL Server&amp;quot; -username:loguser -password:logpassword -createtable:OFF -headerrow:off&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;d certainly appreciate any suggestions anyone may have.&lt;/p&gt;</description></item><item><title>Can we parse Event description (Message) into only what we want? RESOLVED!!!</title><link>http://forums.iis.net/thread/1883626.aspx</link><pubDate>Mon, 03 Nov 2008 17:39:57 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1883626</guid><dc:creator>wonderboyme</dc:creator><slash:comments>8</slash:comments><comments>http://forums.iis.net/thread/1883626.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1883626</wfw:commentRss><description>&lt;p&gt;Hi Everyone! &amp;nbsp; I&amp;#39;m newer to Log Parser and have been wracking my fingers over this.&amp;nbsp; I&amp;#39;m looking to parse Windows Event Log files and I&amp;#39;m hoping to find a method using Log Parser that allows me to customize (filter/parse) the Message field in the output file generated.&lt;/p&gt;&lt;p&gt;For example, if I want logon records 528 I use:&lt;/p&gt;&lt;p&gt;&amp;quot;SELECT Message INTO report.csv FROM SecEvent.Evt WHERE EventID=528&amp;quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp;But I don&amp;#39;t want everything in the description field for the record.&amp;nbsp; I only want: time generated, user name and domain.&amp;nbsp; So I modify my command to:&lt;/p&gt;&lt;p&gt;&amp;quot;SELECT TimeGenerated, EXTRACT_TOKEN(Strings, 0, &amp;#39;|&amp;#39;)AS UserName, EXTRACT_TOKEN(Strings, 1, &amp;#39;|&amp;#39;)AS Domain INTO report.csv FROM SecEvent.Evt WHERE EventID=528&amp;quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp;The above gives me my CSV file with the time generated, the user account and domain.&amp;nbsp; But the key piece of information I want is the first line of the Message (description) field in the event record: that of &amp;quot;Successful Logon:&amp;quot;.&lt;/p&gt;&lt;p&gt;Thus far I have not found a way to parse the Message field to pull this first line.&amp;nbsp; 0 is for the user name, 1 for the domain, 2 for the logon ID, etc., in the Security event log.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Is there a way to use Log Parser to parse the Message field in the event log to pull this &amp;quot;first&amp;quot; line?&amp;nbsp; I quote first because it&amp;#39;s the very first line of text displayed in the event viewer event properties window, followed by the user name, domain, etc.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Currently I&amp;#39;m outputting the entire Message field to a CSV file, then using OpenOffice to find and replace all the information I don&amp;#39;t want.&amp;nbsp; Not slow, but would like to know if Log Parser can write out what I want and only what I want.&lt;/p&gt;&lt;p&gt;Has anyone ideas or know how to get that first bit of information from the Message (description) field of event logs using Log Parser (along with the other two fields (strings) I&amp;#39;m interested in?&lt;/p&gt;&lt;p&gt;&amp;nbsp;Cheers!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;LT&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>not able to read .CSV file using LogParser</title><link>http://forums.iis.net/thread/1910568.aspx</link><pubDate>Thu, 16 Jul 2009 18:05:16 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1910568</guid><dc:creator>maximusdm</dc:creator><slash:comments>3</slash:comments><comments>http://forums.iis.net/thread/1910568.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1910568</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I managed to create a .CSV file using the COMIISW3CInputContextClassClass to read an IIS log, however I have a CSV file which I am trying to read and is giving me the error below:&lt;/p&gt;
&lt;p&gt;{&amp;quot;Error parsing query: SELECT clause: Syntax Error: unknown field &amp;#39;date1&amp;#39; [Record field does not exist.]&amp;quot;}&lt;br /&gt;&lt;br /&gt;Sample code:&lt;br /&gt;--------------------&lt;br /&gt;query=&amp;quot;select date1, date2 INTO C:\\A.csv FROM c:\\B.log&amp;quot;&lt;br /&gt;&lt;br /&gt;public static void GetResultsFromBatch_CSV(string query)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;LogQueryClassClass LogParser = new LogQueryClassClass();&lt;br /&gt;&amp;nbsp;COMCSVInputContextClassClass&amp;nbsp; pObjInput&amp;nbsp; = new COMCSVInputContextClassClass();&lt;br /&gt;&amp;nbsp;COMCSVOutputContextClassClass pObjOutput = new COMCSVOutputContextClassClass();&lt;/p&gt;
&lt;p&gt;&amp;nbsp;try&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;LogParser.ExecuteBatch(query, pObjInput, pObjOutput);&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;catch (Exception e)&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Sample source CSV file:&lt;br /&gt;------------------------&lt;br /&gt;#2009:07:15 11:00:26:23 - 2009:07:15 12:00:00:00&lt;br /&gt;date1,date2,id1,status1,sink1,sink2,sink3,id2,id3,status2&lt;br /&gt;2009:07:15 16:00:26:23,2009:07:15 11:00:26:23T-5,65535,Debug,LoggingTrace,AgentService.exe,,5564,4,[Debug] Init agent.^&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Any ideas? Thank you!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Query works via logparser window but won't work via COM programming</title><link>http://forums.iis.net/thread/1910689.aspx</link><pubDate>Fri, 17 Jul 2009 17:18:01 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1910689</guid><dc:creator>maximusdm</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1910689.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1910689</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;br /&gt;&lt;br /&gt;The query below works fine when I&amp;nbsp;ran&amp;nbsp;it off the logparser window:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;logparser &amp;quot;select date1,date2,id1 INTO C:\Sink.csv FROM C:\Sink.log WHERE date1 &amp;gt; &amp;#39;2009:07:15 16:30:31:36&amp;#39;&amp;quot;&lt;br /&gt;&amp;nbsp;-i:CSV -iHeaderFile:&amp;quot;c:\Header.csv&amp;quot; -nSkipLines:2 -iTsFormat:&amp;quot;yyyy-MM-dd?hh:mm:ss&amp;quot;&lt;/p&gt;
&lt;p&gt;Using C# and StringBuilder class I have the following output string:&lt;br /&gt;&lt;br /&gt;SELECT date1,date2&amp;nbsp; INTO &amp;#39;C:\Sink.csv&amp;#39; FROM c:\Sink.log&lt;br /&gt;&amp;nbsp;WHERE date1 &amp;gt; &amp;#39;2009-07-17 16:42:17&amp;#39; -i:CSV -iHeaderFile:&amp;quot;c:\Header.csv&amp;quot; -nSkipLines:2&lt;br /&gt;&amp;nbsp;-iTsFormat:&amp;quot;yyyy-MM-dd?hh:mm:ss&amp;quot;&lt;/p&gt;
&lt;p&gt;also tried with single quotes:&lt;/p&gt;
&lt;p&gt;SELECT date1,date2&amp;nbsp; INTO &amp;#39;C:\Sink.csv&amp;#39; FROM c:\Sink.log&lt;br /&gt;&amp;nbsp;WHERE date1 &amp;gt; &amp;#39;2009-07-17 16:50:36&amp;#39; -i:CSV -iHeaderFile:&amp;#39;c:\Header.csv&amp;#39; -nSkipLines:2&lt;br /&gt;&amp;nbsp;-iTsFormat:&amp;#39;yyyy-MM-dd?hh:mm:ss&amp;#39;&lt;/p&gt;
&lt;p&gt;When I call &amp;quot;LogParser.ExecuteBatch(query, pObjInput, pObjOutput)&amp;quot; I get the error:&lt;/p&gt;
&lt;p&gt;{&amp;quot;Error parsing query: Syntax Error: extra token(s) after query: &amp;#39;-i:CSV&amp;#39; [SQL query syntax invalid or unsupported.]&amp;quot;}&lt;br /&gt;System.Exception {System.Runtime.InteropServices.COMException}&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;</description></item><item><title>Creating a new Input Format in C#</title><link>http://forums.iis.net/thread/1910678.aspx</link><pubDate>Fri, 17 Jul 2009 15:00:44 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1910678</guid><dc:creator>ph</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1910678.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1910678</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I was looking at the different ways to write a new Input Format to be able to analyse my own log files with Log Parser.&lt;/p&gt;
&lt;p&gt;So I wrote a scriptlet, I included it in my&amp;nbsp;C# project and it is working well. &lt;/p&gt;
&lt;p&gt;Now I&amp;#39;m trying to do the same, but by writting a C# class. I though I just had then to compile (csc command) this C# class to generate a dll, and then to include it in my .net project, and to use it as an Input Format when executing my sql query with the LogQuery execute Method. &lt;/p&gt;
&lt;p&gt;But it seems it&amp;#39;s not the right way to do that because i get the message &lt;em&gt;The specified input object is not a built-in Log Parser input format, nor a custom ILogParserInputContext COM plugin [The parameter is incorrect.].&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know where I&amp;#39;m wrong, in the dll generation or in the class itself (I inspired me of the XML COM Input Format sample to write the class)&lt;/p&gt;
&lt;p&gt;Some idea? Somewhere some skeletton and the steps to follow to do that?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks a lot!&lt;/p&gt;
&lt;p&gt;PH&lt;/p&gt;</description></item><item><title>How do i get Log Parser to release its file handle so i can delete a .CSV file?</title><link>http://forums.iis.net/thread/1910294.aspx</link><pubDate>Tue, 14 Jul 2009 19:12:02 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1910294</guid><dc:creator>maximusdm</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1910294.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1910294</wfw:commentRss><description>&lt;div class="ForumPostContentText"&gt;Hi. I am using Log Parser 2.0 COM to parse a IISW3C log file to csv output format&amp;nbsp;from C#.NET. If an error is encountered whilst parsing i catch the error and i want to delete the file. However when i try and delete the csv file i get another error saying that i cannot delete it because &lt;font size="2"&gt;
&lt;p&gt;&amp;quot;The process cannot access the file xxx.yyy because it is being used by another process&amp;quot;. &lt;/p&gt;
&lt;p&gt;How do i get Log Parser to release its file handle so i can delete the csv file?&lt;/p&gt;
&lt;p&gt;-----here is the code-----&lt;br /&gt;&amp;nbsp;public static void GetResultsFromBatch(string query)&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;LogQueryClassClass LogParser = new LogQueryClassClass();&lt;br /&gt;&amp;nbsp;&amp;nbsp;COMIISW3CInputContextClassClass pObjInput = new COMIISW3CInputContextClassClass();&lt;br /&gt;&amp;nbsp;&amp;nbsp;COMCSVOutputContextClassClass pObjOutput = new COMCSVOutputContextClassClass();&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;try&lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;LogParser.ExecuteBatch(query, pObjInput, pObjOutput);&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;catch (Exception e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;finally&lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;//LogParser - need to find a way to release the handle or dispose this obj&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;}&lt;/p&gt;
&lt;p&gt;Error: [System.IO.IOException] = {&amp;quot;The process cannot access the file &amp;#39;C:\\test.csv&amp;#39; because it is being used by another process.&amp;quot;}&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Someone posted the same question here sometime ago but nobody was able to find a solution for this issue :(&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/div&gt;</description></item><item><title>Error opening event log "server\Application": Access is denied.</title><link>http://forums.iis.net/thread/1909367.aspx</link><pubDate>Tue, 07 Jul 2009 00:48:41 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909367</guid><dc:creator>kantravi</dc:creator><slash:comments>3</slash:comments><comments>http://forums.iis.net/thread/1909367.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1909367</wfw:commentRss><description>&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;Using Log Parser and I am getting this error when I am trying to read the Application Events log remotely using the following query.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cannot open &amp;lt;from-entity&amp;gt;: Error opening event log &amp;quot;server\Application&amp;quot;:&lt;br /&gt;&amp;nbsp; Access is denied.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;EXEC&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;xp_cmdshell&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;&amp;#39;C:\Parser\LogParser.EXE &amp;quot; SELECT 1,[EventID], [EventType], [SourceName], [TimeGenerated], [TimeWritten],[Message] INTO TempEvents12 FROM &lt;a&gt;\\server\Application&lt;/a&gt; &amp;quot; -i:EVT -o:SQL -server:servername -database:dbname -driver:&amp;quot;SQL Server&amp;quot; -createTable:ON -stats OFF &amp;#39;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;I am running the query from Sql Server Management Studio. And the environment is Windows Server Enterprise - 2008. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;The user I am using is the member of: [&lt;/font&gt;Administrators], [Event Log Readers] and [Remote Desktop Users] Groups. And also I have provided the read access to the log file directory. But still I am getting the Access is denied error.&lt;/p&gt;
&lt;p&gt;Is Anyone has faced this isssue before ??&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>which log should i concern about</title><link>http://forums.iis.net/thread/1908058.aspx</link><pubDate>Wed, 24 Jun 2009 03:56:59 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1908058</guid><dc:creator>gwl7810</dc:creator><slash:comments>5</slash:comments><comments>http://forums.iis.net/thread/1908058.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1908058</wfw:commentRss><description>&lt;p&gt;which log should i conern about? can someone tell me? &lt;/p&gt;
&lt;p&gt;thx in advance .&lt;/p&gt;</description></item><item><title>How can i make a good Printer Log (read system event log)</title><link>http://forums.iis.net/thread/1908385.aspx</link><pubDate>Fri, 26 Jun 2009 14:50:52 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1908385</guid><dc:creator>tuxus</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1908385.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1908385</wfw:commentRss><description>&lt;p&gt;Hi all&lt;/p&gt;&lt;p&gt;I want to make a good printer log. A printer log who count only the true page who was sent to the printer, but with this script when a print job is cancelled the page is counted.&lt;/p&gt;&lt;p&gt;I don&amp;#39;t know how i can substract the page who has cancelled (eventID=13)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;here my script&lt;/p&gt;&lt;p&gt;SELECT&lt;br /&gt;EXTRACT_TOKEN(Strings,2,&amp;#39;|&amp;#39;) As UserName,&lt;br /&gt;COUNT (*) As Docs ,&lt;br /&gt;SUM(TO_INT(EXTRACT_TOKEN(Strings,6,&amp;#39;|&amp;#39;))) As Pages&lt;br /&gt;FROM System&lt;br /&gt;Where EventID=10 AND timegenerated &amp;gt; &amp;#39;2009-06-25 00:00:00&amp;#39; and timegenerated &amp;lt; &amp;#39;2009-06-30 23:59:00&amp;#39;&lt;br /&gt;GROUP BY UserName ORDER By Pages DESC &lt;/p&gt;&lt;p&gt;Thanks for your help &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Logparser to syslog errors in the date</title><link>http://forums.iis.net/thread/1907998.aspx</link><pubDate>Tue, 23 Jun 2009 17:33:37 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1907998</guid><dc:creator>Ag3NT01</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1907998.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1907998</wfw:commentRss><description>&lt;p&gt;I have a script to export the w3svc log files to a syslog server. I actually found this on this forum and changed what I needed. I have a problem with this in that some of my logs from 2008 are being changed to 2009 when being exported. I do not see this behavior when exporting to a csv. Can anyone tell me why this is happening?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Script to syslog: &lt;br /&gt;&lt;/p&gt;&lt;p&gt;LogParser&amp;quot; &amp;quot;SELECT TO_TIMESTAMP(date,time), CASE QNTFLOOR_TO_DIGIT(sc-status, 1) WHEN 500 THEN &amp;#39;emerg&amp;#39; WHEN 400 THEN &amp;#39;err&amp;#39; ELSE &amp;#39;info&amp;#39; END AS MySeverity,&amp;nbsp; s-computername AS MyHostname, s-ip, cs-method, cs-uri-stem, c-ip, cs(User-Agent), sc-status, sc-substatus INTO @xxx.xxx.xxx.xxx FROM &amp;lt;1&amp;gt; WHERE sc-status &amp;gt;= 400&amp;quot; -o:SYSLOG -severity:$MySeverity -hostName:$MyHostname -iCheckpoint:MyCheckpoint.lpc&lt;/p&gt;&lt;p&gt;Script to csv:&lt;/p&gt;&lt;p&gt;&amp;nbsp;LogParser&amp;quot; &amp;quot;SELECT TO_TIMESTAMP(date,time), CASE QNTFLOOR_TO_DIGIT(sc-status, 1) WHEN 500 THEN &amp;#39;emerg&amp;#39; WHEN 400 THEN &amp;#39;err&amp;#39; ELSE &amp;#39;info&amp;#39; END AS MySeverity,&amp;nbsp; s-computername, s-ip, cs-method, cs-uri-stem, c-ip, cs(User-Agent), sc-status, sc-substatus INTO c:\test.csv FROM &amp;lt;1&amp;gt; WHERE sc-status &amp;gt;= 400&amp;quot; -o:CSV -iCheckpoint:test.lpc&lt;/p&gt;</description></item><item><title>LogRecordSet.getRecord() doesn't get whole message</title><link>http://forums.iis.net/thread/1901832.aspx</link><pubDate>Fri, 24 Apr 2009 23:59:59 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1901832</guid><dc:creator>ytsejam1</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1901832.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1901832</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;From some reason the LogRecordSet.getRecord() method doesn&amp;#39;t collecting the whole message.&lt;br /&gt;It collect only a part of the string , this is a problem when i have long messages with Exceptions.&lt;/p&gt;
&lt;p&gt;Example:&lt;br /&gt;&lt;br /&gt;Date -- Service -- Type -- Sub -- Text&lt;br /&gt;&lt;br /&gt;2009-04-17 01:15:15,875 -- SeedRetrival -- ERROR -- Inner Error -- Cannot insert duplicate key row in object &amp;#39;dbo.Tbl_Movie_Frames_1&amp;#39; with unique index &amp;#39;IX_Frames1&amp;#39;.The statement has been terminated. .Net SqlClient Data Provider at Video.NDS.BL.MovieServiceNew.StoreMovieFrames(String p_MetaId, IList p_movieFrames, String p_Source, String p_Query, Boolean SigIsInBinaryFormat, Single FrameRate) in C:\WebHaystack\102&lt;br /&gt;&amp;nbsp;&amp;nbsp; at SeedsRetrivalService.ItemsProcessor.ProcessSingleItem(ItemToProcess item) in C:\SeedsRetrivalService\ItemsProcessor.cs:line 144&lt;br /&gt;&lt;br /&gt;For this message the getRecord() got only the following string:&lt;br /&gt;2009-04-17 01:15:15,875 -- SeedRetrival -- ERROR -- Inner Error -- Cannot insert duplicate key row in object &amp;#39;dbo.Tbl_Movie_Frames_1&amp;#39; with unique index &amp;#39;IX_Frames1&amp;#39;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Chart generation fails with COM object but not from command line</title><link>http://forums.iis.net/thread/1903044.aspx</link><pubDate>Thu, 07 May 2009 18:05:15 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1903044</guid><dc:creator>kjmatt</dc:creator><slash:comments>7</slash:comments><comments>http://forums.iis.net/thread/1903044.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1903044</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve got a program that works perfectly on two different machines. Both have VS 2008 installed. On a new test server my program works perfectly generating .CSV files and using .TPL files to generate web pages but as soon as it attempts to generate the first chart it crashes the server. &lt;/p&gt;
&lt;p&gt;The program hangs for about 30 seconds and then the server states that the connection has been lost and ultimately logs me out, closing all my work. My error log shows no errors and the event log shows nothing either.&lt;/p&gt;
&lt;p&gt;Has anyone else seen anything like this?&lt;/p&gt;
&lt;p&gt;Windows server 2003 Enterprise SP 2 (Blade virtual server with clean install)&lt;br /&gt;.NET Framework 3.5&lt;br /&gt;Microsoft Office 2003 Excel &amp;amp; Powerpoint&lt;br /&gt;Office Web Components&lt;br /&gt;Logparser.exe&lt;/p&gt;
&lt;p&gt;I have LogParser.exe, LogParser.dll and Interop.MSUtil.dll in the same folder as my program. Am I missing something? Is it permission related?&lt;/p&gt;
&lt;p&gt;This is driving me crazy.&lt;/p&gt;
&lt;p&gt;kj&lt;/p&gt;</description></item></channel></rss>