<?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>Search results matching tag 'IIS Input Format'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=IIS+Input+Format&amp;orTags=0</link><description>Search results matching tag 'IIS Input Format'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>RE: Converting IIS Log Time to Local Time</title><link>http://forums.iis.net/p/1145241/1855226.aspx#1855226</link><pubDate>Fri, 11 May 2007 15:08:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1855226</guid><dc:creator>LogParser User : epoh977</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;FONT color=#1111dd&gt;LogParser "SELECT TO_TIMESTAMP(date, time) AS utc-timestamp, TO_LOCALTIME(utc-timestamp) AS local-timestamp, c-ip, cs-username, EXTRACT_TOKEN(cs-uri-stem,-1,'/') AS filename INTO DATAGRID FROM &lt;/FONT&gt;&lt;a target=_blank href="file://\\WEBSERVER\admin$\system32\logfiles\w3svc1\ex07"&gt;&lt;FONT color=#1111dd&gt;\\WEBSERVER\admin$\system32\logfiles\w3svc1\ex07&lt;/FONT&gt;&lt;/A&gt;&lt;FONT color=#1111dd&gt;*.log&lt;/FONT&gt;"&lt;/P&gt;&lt;P&gt;It worked for me.&lt;/P&gt;</description></item><item><title>RE: Combine IIS fields to create SQL Date</title><link>http://forums.iis.net/p/1146001/1855225.aspx#1855225</link><pubDate>Thu, 10 May 2007 18:00:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1855225</guid><dc:creator>LogParser User : epoh977</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>&lt;P&gt;Never mind, I found it of course in the thourough help file.&lt;/P&gt;&lt;P&gt;It is "&lt;FONT color=#3333dd&gt;TO_TIMESTAMP&lt;/FONT&gt; "&lt;/P&gt;&lt;P&gt;Works flawlessly.&lt;img src='images/emotions/smile.gif' height='20' width='20' border='0' title='Smile' align='absmiddle'&gt;&lt;/P&gt;</description></item><item><title>Combine IIS fields to create SQL Date</title><link>http://forums.iis.net/p/1146001/1851213.aspx#1851213</link><pubDate>Thu, 10 May 2007 17:44:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1851213</guid><dc:creator>LogParser User : epoh977</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>How can I combine two IIS fields (date, time) to create a field in a SQL table that is a TimeStamp?</description></item><item><title>Starter to Logphaser</title><link>http://forums.iis.net/p/1145983/1851195.aspx#1851195</link><pubDate>Thu, 05 Apr 2007 14:40:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1851195</guid><dc:creator>LogParser User : parsernovice</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>&lt;P&gt;logparser -q -stats&lt;img src='images/emotions/shocked.gif' height='20' width='20' border='0' title='Shocked' align='absmiddle'&gt;FF "SELECT distinct c-ip, cs-username FROM ex*.log WHERE c-ip NOT LIKE '%%168.114.191%%'"&amp;nbsp; -rtp:-1&lt;/P&gt;&lt;P&gt;&lt;BR&gt;running the above gives me the output below&lt;/P&gt;&lt;P&gt;90.9.253.132&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;90.9.253.132&amp;nbsp;&amp;nbsp;&amp;nbsp; test1&lt;BR&gt;214.230.225.208 -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;214.230.225.208&amp;nbsp;test2&amp;nbsp; &lt;BR&gt;76.132.136.195&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;76.132.136.195&amp;nbsp; test3&lt;BR&gt;212.139.115.4&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;81.240.77.124&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;81.240.77.124&amp;nbsp;&amp;nbsp; test4&lt;/P&gt;&lt;P&gt;I want to remove the extra logs where the IP is recurring with the [-] as the cs-username. So at the end i want the following made up output&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;90.9.253.132&amp;nbsp;&amp;nbsp;&amp;nbsp; test1&lt;BR&gt;214.230.225.208&amp;nbsp;test2&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;76.132.136.195&amp;nbsp; test3&lt;BR&gt;212.139.115.4&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt; this is distinct and&amp;nbsp;didnt have a duplicate so i want&amp;nbsp;it to&amp;nbsp;be kept.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;81.240.77.124&amp;nbsp;&amp;nbsp; test4&lt;/P&gt;&lt;P&gt;also, i require the last logged TIME&amp;nbsp;entry of the field c-ip or cs-username. included in the above SQL statement, any help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description></item><item><title>RE: PageViews and Unique are ok, but how do I calculate visits?</title><link>http://forums.iis.net/p/1145798/1855096.aspx#1855096</link><pubDate>Thu, 22 Feb 2007 16:37:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1855096</guid><dc:creator>LogParser User : Jeff</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>&lt;P&gt;The big problem with Log Parser and User level statistics is that Log Parser is designed to focus on a row of data and does not cross the row boundary.&amp;nbsp; When faced with a problem that goes cross rows, you really need to write a little code.&amp;nbsp; Just keep track of the first and last time for a "user" and clear/dump them when the last time is too far away from the "current" time (I have hacked similar using a pair of arrays in Java - nothing I would let anyone look at, but it can be done).&amp;nbsp; &lt;/P&gt;&lt;P&gt;The hardest part is actually defining "user".&amp;nbsp; This is simple if you force authentication.&amp;nbsp; If you don't, then you have to worry about proxies verses users.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>RE: PageViews and Unique are ok, but how do I calculate visits?</title><link>http://forums.iis.net/p/1145798/1855110.aspx#1855110</link><pubDate>Sun, 18 Feb 2007 02:48:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1855110</guid><dc:creator>LogParser User : squadjot</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>&lt;P&gt;nice querys tho.. very interesting for a newbie like me.. &lt;/P&gt;&lt;P&gt;WebLogExpert (Pro trial priod) gives me output like this&lt;BR&gt;The one called total visitors is users that has been away from the&amp;nbsp;site more than 30 minutes (this is something that u set analyzer options panel)&lt;BR&gt;Unfortuneatle i could not disable it..to see if it gave the same result as your "time sesssion" - query. I could set it at 10000 minutes at max..but the two numbers were not that far from eachother.&lt;/P&gt;&lt;P&gt;&lt;TABLE cellSpacing=0 cellPadding=0 width="90%" bgColor=#000000 border=0&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;TABLE cellSpacing=1 cellPadding=2 width="100%" border=0&gt;&lt;TBODY&gt;&lt;TR class=TableSolidRow&gt;&lt;TD class=TableCell colSpan=2&gt;&lt;FONT color=#ddddff&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;U&gt;Hits&lt;/U&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=TableRow1&gt;&lt;TD class=TableCell width="100%"&gt;&lt;FONT color=#ddddff&gt;Total Hits&lt;/FONT&gt;&lt;/TD&gt;&lt;TD class=TableCell width=0%&gt;&lt;FONT color=#ddddff&gt;744,422&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=TableRow2&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;Average Hits per Day&lt;/FONT&gt;&lt;/TD&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;9,667&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=TableRow1&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;Average Hits per Visitor&lt;/FONT&gt;&lt;/TD&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;25.05&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=TableRow2&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;Cached Requests&lt;/FONT&gt;&lt;/TD&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;67,743&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=TableRow1&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;Failed Requests&lt;/FONT&gt;&lt;/TD&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;13,257&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=TableSolidRow&gt;&lt;TD class=TableCell colSpan=2&gt;&lt;FONT color=#ddddff&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;U&gt;Page Views&lt;/U&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=TableRow1&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;Total Page Views&lt;/FONT&gt;&lt;/TD&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;37,320&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=TableRow2&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;Average Page Views per Day&lt;/FONT&gt;&lt;/TD&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;484&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=TableRow1&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;Average Page Views per Visitor&lt;/FONT&gt;&lt;/TD&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;1.26&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=TableSolidRow&gt;&lt;TD class=TableCell colSpan=2&gt;&lt;FONT color=#ddddff&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;U&gt;Visitors&lt;/U&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=TableRow1&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;Total Visitors&lt;/FONT&gt;&lt;/TD&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;29,716&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=TableRow2&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;Average Visitors per Day&lt;/FONT&gt;&lt;/TD&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;385&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=TableRow1&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;Total Unique IPs&lt;/FONT&gt;&lt;/TD&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;23,220&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=TableSolidRow&gt;&lt;TD class=TableCell colSpan=2&gt;&lt;FONT color=#ddddff&gt;Bandwidth&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=TableRow1&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;Total Bandwidth&lt;/FONT&gt;&lt;/TD&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;0&amp;nbsp;B&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=TableRow2&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;Average Bandwidth per Day&lt;/FONT&gt;&lt;/TD&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;0&amp;nbsp;B&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=TableRow1&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;Average Bandwidth per Hit&lt;/FONT&gt;&lt;/TD&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;0&amp;nbsp;B&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=TableRow2&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;Average Bandwidth per Visitor&lt;/FONT&gt;&lt;/TD&gt;&lt;TD class=TableCell&gt;&lt;FONT color=#ddddff&gt;0&amp;nbsp;B&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have more sweet query lines throw them this way ^_^&lt;/P&gt;</description></item><item><title>cannot find end of line</title><link>http://forums.iis.net/p/1145816/1851028.aspx#1851028</link><pubDate>Tue, 12 Dec 2006 15:07:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1851028</guid><dc:creator>LogParser User : eliassal</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>&lt;P&gt;&lt;SPAN class=a&gt;&lt;FONT color=#008000&gt;Hi, I am parsing IIS log and sometimes with the switch -e:1000&amp;nbsp;I get some errors displayed as follows&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=a&gt;************************************************&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=a&gt;Cannot find end-of-line - extra characters detected at the end of log entry&lt;BR&gt;&amp;nbsp; LogFile "&lt;a target=_blank href="file://webserver/LogFiles/W3SVC2/ex061211.log"&gt;\\WEBserver\LogFiles\W3SVC2\ex061211.log&lt;/A&gt;", Row number 411810&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=a&gt;*************************************************&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=a&gt;I checked the line , the line ends with 3 dashes as follows&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=a&gt;2006-12-11 22:17:50 172.185.254.41 - W3SVC2 WEBserver 192.20.128.71 80 - /software/guide_cederoms_2006/img/19.gif - 400 87 224 283 0 SEGMENTDATE=11%2F12%2F2006+23%3A15%3A59; SEGMENT=100; NBART=0; SID=53165d95%2Dfd67%2D87a3%2Df992%2Db3b3240d5504; UID=097ff39c0%2D2f8a%2D9257%2De96c%2Dee75a00822c2; Nav2=1677832/; CR=0/2/0/0/; LSA=1677832|-2; LSASubsite=-2=2=1677832 - - -&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=a&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;</description></item><item><title>RE: PageViews and Unique are ok, but how do I calculate visits?</title><link>http://forums.iis.net/p/1145798/1854803.aspx#1854803</link><pubDate>Tue, 07 Nov 2006 12:51:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1854803</guid><dc:creator>LogParser User : aromedia</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>&lt;P&gt;And you have to have dynamic pages, because IIS f.e. does not log the session cookie in case of an .HTM(L) file. If the same user visits an ASP page&amp;nbsp;too&amp;nbsp;then it is no problem, but if your website is mainly static pages.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cees&lt;/P&gt;</description></item><item><title>RE: PageViews and Unique are ok, but how do I calculate visits?</title><link>http://forums.iis.net/p/1145798/1854844.aspx#1854844</link><pubDate>Tue, 07 Nov 2006 12:34:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1854844</guid><dc:creator>LogParser User : DEinspanjer</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>I will go back on my prior comments and say that if you have a session cookie stored in the logs that you can group by that in LP and get fair sessionization from that.  Of course, it will still have holes for people who leave their browser open all day and people who have cookies turned off, but those are the trade-offs. &lt;img src='images/emotions/smile.gif' height='20' width='20' border='0' title='Smile' align='absmiddle'&gt;</description></item><item><title>RE: PageViews and Unique are ok, but how do I calculate visits?</title><link>http://forums.iis.net/p/1145798/1854888.aspx#1854888</link><pubDate>Tue, 07 Nov 2006 11:49:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1854888</guid><dc:creator>LogParser User : aromedia</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>&lt;P&gt;I did think about looking at AWStats, but the first glimpse learned that it is not as flexible as Logparser is. That's why I love it, I just output a number, add it to an HTML table, throw in the company logo and export it to PDF. My manager loves me for it!!!&lt;/P&gt;&lt;P&gt;Thanks for the reply Daniel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cees&lt;/P&gt;</description></item></channel></rss>