<?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 'CHART output target'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=CHART+output+target&amp;orTags=0</link><description>Search results matching tag 'CHART output target'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Charting with LogParser and OWC</title><link>http://forums.iis.net/p/1148146/1864287.aspx#1864287</link><pubDate>Thu, 28 Feb 2008 10:37:51 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1864287</guid><dc:creator>circle.hk</dc:creator><cs:applicationKey>output_targets-51</cs:applicationKey><description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;I know that LogParser uses the MS Office Web Component (OWC) to create chart images. Does anybody know which version is it using exactly? Or does it vary on different computers, depends on version installed? If it does, it may be interesting for LP to have different charting capability on different computers.&lt;/p&gt;&lt;p&gt;Besides, I found a list of available chart types for excel 2003 from &lt;a href="http://office.microsoft.com/en-us/excel/HA010346071033.aspx" target="_blank"&gt;here&lt;/a&gt;, are they equivalent to those available in OWC? If they are, can they be used in LP too? I noticed that the list contains some extra ones compared to that returned by the &lt;font face="courier new,courier"&gt;-h -o:CHART&lt;/font&gt; switch of LP. This seems to require more knowledge in the internal design of LP, maybe only the author knows the answer, but I would really appreciate anyone who can tell me more about it.&lt;/p&gt;&lt;p&gt;Thanks,&lt;br /&gt;&lt;br /&gt;circle&amp;nbsp;&lt;/p&gt;</description></item><item><title>using vbs config script with logparser</title><link>http://forums.iis.net/p/1145138/1858822.aspx#1858822</link><pubDate>Tue, 06 Nov 2007 23:49:54 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1858822</guid><dc:creator>nigeldude</dc:creator><cs:applicationKey>output_targets-51</cs:applicationKey><description>&lt;p&gt;a year or so ago I found 2 good word documents I believe written by Igor on manipulating the charts with some advanced techniques.&amp;nbsp; I am trying to find those documents but all the links I find on the site go to logparser.com and are not valid.&amp;nbsp; Mainly I recall they had ways to adjust the colors of certain parts of the bar charts, for example if processor was over 70, then the portion above the 70 would be yellow or red, and below 70 would be say green.&amp;nbsp; The documents were great but I can no longer locate them on here and would like to review them again.&lt;/p&gt;
&lt;p&gt;Some of the examples were something similar to this, below I am dynamically building the config before running the chart.&lt;/p&gt;
&lt;p&gt;echo chart.Title.Font.Size=16 &amp;gt;&amp;gt; chart_config.vbs&lt;br /&gt;echo chart.Title.Font.Name=&amp;quot;Trebuchet MS&amp;quot; &amp;gt;&amp;gt; chart_config.vbs&lt;br /&gt;echo chart.GapDepth = 30 &amp;gt;&amp;gt; chart_config.vbs&lt;br /&gt;echo chart.GapWidth = 30 &amp;gt;&amp;gt; chart_config.vbs&lt;br /&gt;echo chart.ChartDepth = 75 &amp;gt;&amp;gt; chart_config.vbs&lt;br /&gt;echo chart.Rotation = %therotation% &amp;gt;&amp;gt; chart_config.vbs&lt;br /&gt;echo chart.Inclination = %theincline% &amp;gt;&amp;gt; chart_config.vbs&lt;br /&gt;echo chart.LightNormal = 0.8 &amp;gt;&amp;gt; chart_config.vbs&lt;br /&gt;echo chart.AmbientLightIntensity = 0.7 &amp;gt;&amp;gt; chart_config.vbs&lt;br /&gt;echo chart.DirectionalLightRotation = picnum &amp;gt;&amp;gt; chart_config.vbs&lt;/p&gt;
&lt;p&gt;Thanks for the help,&lt;/p&gt;
&lt;p&gt;Nigel&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Problem with graphing statement</title><link>http://forums.iis.net/p/1146635/1857902.aspx#1857902</link><pubDate>Wed, 17 Oct 2007 06:34:34 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1857902</guid><dc:creator>vji6697</dc:creator><cs:applicationKey>output_targets-51</cs:applicationKey><description>&lt;p&gt;Sorry about the original post, I tried to re-edit but couldnt save the changes.  Hope this is clearer&lt;/p&gt;

&lt;p&gt;

Hi,&lt;/p&gt;

&lt;p&gt;Im new to logparser and my SQL is gained by reading the logparser help file, so please go easy :)&lt;/p&gt;

&lt;p&gt;I have a huge CSV file that I have managed to split into unique CSVs using a SELECT DISTICT statement, however I am having great trouble trying to graph the output.&lt;/p&gt;

&lt;p&gt;The source file looks like this  (the real file is over 1000000 lines long)&lt;/p&gt;

&lt;p&gt;Application,Time,Alert&lt;/p&gt;
&lt;p&gt;Fred,15/10/2007 12:00,234&lt;/p&gt;
&lt;p&gt;Fred,15/10/2007 13:00,42&lt;/p&gt;
&lt;p&gt;Fred,15/10/2007 14:00,4354&lt;/p&gt;
&lt;p&gt;Fred,15/10/2007 15:00,3453&lt;/p&gt;
&lt;p&gt;Fred,15/10/2007 16:00,654&lt;/p&gt;
&lt;p&gt;Fred,15/10/2007 17:00,756&lt;/p&gt;
&lt;p&gt;Dave,15/10/2007 13:00,234&lt;/p&gt;
&lt;p&gt;Dave,15/10/2007 14:00,764&lt;/p&gt;
&lt;p&gt;Dave,15/10/2007 15:00,876&lt;/p&gt;
&lt;p&gt;Dave,15/10/2007 16:00,353&lt;/p&gt;
&lt;p&gt;Dave,15/10/2007 17:00,645&amp;gt;&lt;/p&gt;

&lt;p&gt;I use the statement...&lt;/p&gt;

&lt;p&gt;logparser &amp;quot;SELECT DISTINCT Application, * INTO *.csv FROM test.txt&amp;quot;&amp;quot; -i:CSV -o:CSV&lt;/p&gt;

&lt;p&gt;This will give me a separate csv for Fred and for Dave.  I now want to plot, via a scattergraph the Alerts over Time for each Application.&lt;/p&gt;

&lt;p&gt;This is where I am getting stuck.&lt;/p&gt;

&lt;p&gt;I tried...&lt;/p&gt;

&lt;p&gt;logparser &amp;quot;SELECT DISTINCT Application, *  INTO *.csv FROM test.txt group by time order by alert&amp;quot; -i:CSV -o:Chart -chartType:ScatterMarkers&lt;/p&gt;

&lt;p&gt;but i got&lt;/p&gt;

&lt;p&gt;Error: Semantic Error: SELECT clause field-expression &amp;quot;Application&amp;quot; is not an aggregate function and does not contain GROUP BY field-expressions&lt;/p&gt;

&lt;p&gt;Im a bit stuck as I cant understand what the error is telling me so am now stuck.&lt;/p&gt;

&lt;p&gt;Any help ?</description></item><item><title>RE: Empty samples not showing</title><link>http://forums.iis.net/p/1146056/1855273.aspx#1855273</link><pubDate>Wed, 20 Jun 2007 12:57:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1855273</guid><dc:creator>LogParser User : DEinspanjer</dc:creator><cs:applicationKey>output_targets-51</cs:applicationKey><description>I believe someone else posted a solution to this a while back. Do some searching here on the forums for chart and grouping.</description></item><item><title>Empty samples not showing</title><link>http://forums.iis.net/p/1146056/1851268.aspx#1851268</link><pubDate>Wed, 20 Jun 2007 06:56:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1851268</guid><dc:creator>LogParser User : ClasG</dc:creator><cs:applicationKey>output_targets-51</cs:applicationKey><description>&lt;P&gt;I'm using LogParser to make beautiful graphs.&amp;nbsp;Typically using our database logs and statistic files as input, showing how many times a certain event has happened each hour over a day.&lt;/P&gt;&lt;P&gt;There are however hours when no activity has taken place and i can't get theese to show in the graph. If I output to a the default table format or a DATAGRID I can see the empty hours.&lt;/P&gt;&lt;P&gt;This is the SQL question I use:&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;QUANTIZE(EventStart,3600) AS Time,&lt;/P&gt;&lt;P&gt;SUM(CASE Action when 'Login' THEN 1 ELSE 0 END) As Login,&lt;/P&gt;&lt;P&gt;SUM(CASE Action when 'Search' THEN 1 ELSE 0 END) As Search,&lt;/P&gt;&lt;P&gt;SUM(CASE Action when 'Query' THEN 1 ELSE 0 END) As Query,&lt;/P&gt;&lt;P&gt;SUM(CASE Action when 'Raise' THEN 1 ELSE 0 END) As Raise&lt;/P&gt;&lt;P&gt;into stat.gif&lt;/P&gt;&lt;P&gt;from 'c:\statistics\Actions_070610.log'&lt;/P&gt;&lt;P&gt;where User&amp;lt;&amp;gt;'' AND SUBSTR(User,0,3)&amp;lt;&amp;gt;'WWW'&lt;/P&gt;&lt;P&gt;group by Time&lt;/P&gt;&lt;P&gt;This results in a nice graph from the time the actions start until they end, but the hours prior and after, and more importent, any empty hours in the middle of the sample just aren't displayed.&lt;/P&gt;&lt;P&gt;Can any one help me on what to do to see the empty samples?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Clas&lt;/P&gt;&lt;/FONT&gt;</description></item><item><title>RE: When reading from CSV, chart is actually charting data instead of placing on x or y axis.</title><link>http://forums.iis.net/p/1146020/1855233.aspx#1855233</link><pubDate>Thu, 19 Apr 2007 22:16:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1855233</guid><dc:creator>LogParser User : nigeldude</dc:creator><cs:applicationKey>output_targets-51</cs:applicationKey><description>&lt;P&gt;Jeff,&lt;/P&gt;&lt;P&gt;Thank you very much for the assistance. You are correct.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the final Resolution:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;logparser "Select TO_STRING(Hour) AS theHour, count(*) as distinctuser INTO Unique_HITS_PER_HOUR_03_TESTING.gif from nigel.log group by theHour" -q -i:csv -o:CHART -values:off -chartType:BAR3d -chartTitle:"TESTING Unqiue Hits By Hour" -groupSize:600x480 -view&lt;/P&gt;&lt;P&gt;This ends up making the desired graph!&lt;/P&gt;&lt;P&gt;The help is much appreciated.&lt;/P&gt;&lt;P&gt;-Nigel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>RE: When reading from CSV, chart is actually charting data instead of placing on x or y axis.</title><link>http://forums.iis.net/p/1146020/1855210.aspx#1855210</link><pubDate>Thu, 19 Apr 2007 16:04:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1855210</guid><dc:creator>LogParser User : Jeff</dc:creator><cs:applicationKey>output_targets-51</cs:applicationKey><description>&lt;P&gt;I think to_string() is what you need to do.&amp;nbsp; Logparser likes to graph numbers so forcing it to not be a number should fix your problems (assuming I read it all correctly).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>RE: When reading from CSV, chart is actually charting data instead of placing on x or y axis.</title><link>http://forums.iis.net/p/1146020/1855243.aspx#1855243</link><pubDate>Wed, 18 Apr 2007 20:49:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1855243</guid><dc:creator>LogParser User : nigeldude</dc:creator><cs:applicationKey>output_targets-51</cs:applicationKey><description>&lt;P&gt;Sample graphs included.&lt;/P&gt;&lt;P&gt;-Nigel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>When reading from CSV, chart is actually charting data instead of placing on x or y axis.</title><link>http://forums.iis.net/p/1146020/1851232.aspx#1851232</link><pubDate>Wed, 18 Apr 2007 20:47:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1851232</guid><dc:creator>LogParser User : nigeldude</dc:creator><cs:applicationKey>output_targets-51</cs:applicationKey><description>&lt;P&gt;Problem:&lt;/P&gt;&lt;P&gt;When selecting via the input format CSV, it charts differently than reading from the &lt;/P&gt;&lt;P&gt;IISW3C.&amp;nbsp; The subsequent graphs do not come out as expected.&lt;/P&gt;&lt;P&gt;1) This works fine and creates a wonderful graph:&lt;/P&gt;&lt;P&gt;query 1:&lt;BR&gt;logparser "SELECT TO_STRING (TO_localtime( to_timestamp ( date, time) ), 'HH' ) AS Hour, &lt;/P&gt;&lt;P&gt;COUNT(*) AS Hits INTO %filename%HITS_PER_HOUR_03_Working.gif FROM %_inputfile% where cs-&lt;/P&gt;&lt;P&gt;uri-stem like '%webpage%'GROUP BY Hour ORDER BY Hour ASC" -i:IISW3C -o:CHART -values:off &lt;/P&gt;&lt;P&gt;-chartType:%1 -chartTitle:"Hits Per Hour Working" -groupSize:620x460&lt;/P&gt;&lt;P&gt;In above case the input file is the IISLOG.&amp;nbsp; It ends up creating a superb graph utilizing &lt;/P&gt;&lt;P&gt;either line or bar3d as the chartType, and places the hour either along the X or Y Axis, &lt;/P&gt;&lt;P&gt;(depending on graph type) which is great.&lt;/P&gt;&lt;P&gt;&lt;BR&gt;2)&lt;BR&gt;Unfortunately, I want to capture the distinct c-ips per our, so I run this, and throw it &lt;/P&gt;&lt;P&gt;into a file for later reading, since we cannot utilize distinct with group by.&lt;/P&gt;&lt;P&gt;rem grab distinct IP's per hour&lt;BR&gt;logparser "Select TO_STRING (TO_localtime( to_timestamp ( date, time) ), 'HH' ) AS Hour, &lt;/P&gt;&lt;P&gt;c-ip into nigel.log from %_inputfile% group by Hour, c-ip " -q -o:csv -i:IISW3C&lt;/P&gt;&lt;P&gt;And then to create the graph:&lt;/P&gt;&lt;P&gt;rem create chart&lt;BR&gt;logparser "Select Hour, count(*) as distinctuser INTO %filename%&lt;/P&gt;&lt;P&gt;Unique_HITS_PER_HOUR_03.gif from nigel.log group by Hour order by Hour asc " -q -i:csv -&lt;/P&gt;&lt;P&gt;o:CHART -values:off -chartType:%1 -chartTitle:"%1 Unqiue Hits By Hour" -groupSize:300x200&lt;/P&gt;&lt;P&gt;The graph does not come out at all as expected it graphs the hour as values instead of &lt;/P&gt;&lt;P&gt;placing on the x or y axis.&lt;/P&gt;&lt;P&gt;3)&lt;/P&gt;&lt;P&gt;So I attempted a little test, and this should work, I place the data from query 1 above &lt;/P&gt;&lt;P&gt;and then create the graph from that data, unfortunately this messes up the x and y axis &lt;/P&gt;&lt;P&gt;as well and plots the hours instead of running them along the x or y.&lt;/P&gt;&lt;P&gt;Place data from query 1 above into file hitstomainpage.txt&lt;/P&gt;&lt;P&gt;logparser "SELECT TO_STRING (TO_localtime( to_timestamp ( date, time) ), 'HH' ) AS Hour, &lt;/P&gt;&lt;P&gt;COUNT(*) AS Hits into Hitstomainpage.TXT FROM %_inputfile% where cs-uri-stem like '%&lt;/P&gt;&lt;P&gt;webpage%'GROUP BY Hour ORDER BY Hour ASC" -i:IISW3C -q -o:csv&lt;/P&gt;&lt;P&gt;This gives us simple data:&lt;BR&gt;Hour,Hits&lt;BR&gt;00,22&lt;BR&gt;01,19&lt;BR&gt;02,1&lt;BR&gt;03,4&lt;BR&gt;04,33&lt;BR&gt;05,31&lt;BR&gt;06,110&lt;BR&gt;07,135&lt;BR&gt;08,288&lt;BR&gt;09,365&lt;BR&gt;10,466&lt;BR&gt;11,346&lt;BR&gt;12,394&lt;BR&gt;13,382&lt;BR&gt;14,321&lt;/P&gt;&lt;P&gt;And now all I would like to do is create a simple graph with the hour along the x or y &lt;/P&gt;&lt;P&gt;axis, and the HITS graphed. So this query should work well for that:&lt;/P&gt;&lt;P&gt;logparser "Select&amp;nbsp; Hour, Hits INTO %filename%TOTAL_HITS_PER_HOUR_03_TEST.gif from &lt;/P&gt;&lt;P&gt;Hitstomainpage.TXT order by Hour asc " -q -i:csv -o:CHART -values:off -chartType:%1 -&lt;/P&gt;&lt;P&gt;chartTitle:" hits to main page not working" -groupSize:640x480&lt;/P&gt;&lt;P&gt;Unfortunately the above creates a line or bar3d graph, graphing the hour as well as the &lt;/P&gt;&lt;P&gt;hits number, instead of the desired results.&lt;/P&gt;&lt;P&gt;I believe it may be the way logparser is reading the data type, or for some reason chart &lt;/P&gt;&lt;P&gt;is acting differently with input as a CSV as opposed to the actual raw iisw3c format.&lt;/P&gt;&lt;P&gt;&lt;BR&gt;Thanks for any help,&lt;BR&gt;Nigel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" hspace=0 src="C:\Users\a-niglen\Desktop\results25074.txtHITS_PER_HOUR_03_Working.gif" align=baseline border=0&gt;&lt;BR&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Any way to get 45 degree angle in chart?</title><link>http://forums.iis.net/p/1145975/1851187.aspx#1851187</link><pubDate>Fri, 06 Apr 2007 21:56:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1851187</guid><dc:creator>LogParser User : jake20</dc:creator><cs:applicationKey>output_targets-51</cs:applicationKey><description>i got just about everything else i need, but just cannot figure out how to get a 45 degree angle for my x axis time labels using a config script .&lt;br&gt;&lt;br&gt;&lt;br&gt;anyone?&lt;br&gt;</description></item></channel></rss>