<?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>Re: Help with Exchange tracking logs</title><link>http://forums.iis.net/thread/1881215.aspx</link><pubDate>Fri, 03 Oct 2008 21:17:35 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1881215</guid><dc:creator>1Fastrider</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1881215.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1881215</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ll play with it but I should be able to get it. Thank you again.&lt;/p&gt;</description></item><item><title>Re: Help with Exchange tracking logs</title><link>http://forums.iis.net/thread/1881214.aspx</link><pubDate>Fri, 03 Oct 2008 21:16:08 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1881214</guid><dc:creator>KristoferG</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1881214.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1881214</wfw:commentRss><description>&lt;p&gt;That is great!&lt;/p&gt;
&lt;p&gt;As you say, that square icon is probably some kind of character. Once you have figured out what it is, you may remove it by using EXTRACT_SUFFIX, EXTRACT_PREFIX or EXTRACT_TOKEN, depending on whichever is better.&lt;/p&gt;</description></item><item><title>Re: Help with Exchange tracking logs</title><link>http://forums.iis.net/thread/1881202.aspx</link><pubDate>Fri, 03 Oct 2008 20:52:59 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1881202</guid><dc:creator>1Fastrider</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1881202.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1881202</wfw:commentRss><description>&lt;p&gt;That did the trick.&amp;nbsp; Thanks very much.&amp;nbsp; The only thing to figure out is after the domain name in the chart is a small square icon (null character?). Not sure how to remove that but at least the chart looks good so far.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Below is what I ran&amp;nbsp;&lt;/p&gt;
&lt;p&gt;logparser -i:w3c -o:chart &amp;quot;SELECT TOP 10 EXTRACT_SUFFIX([Sender-Address],0,&amp;#39;@&amp;#39;), count(*) as Inbound_Domains into chart.gif from&amp;nbsp;&amp;#39;\\servername\servername.LOG\20080925.log&amp;#39; GROUP BY EXTRACT_SUFFIX([Sender-Address],0,&amp;#39;@&amp;#39;)&amp;quot; -charttype:column3d&lt;/p&gt;</description></item><item><title>Re: Help with Exchange tracking logs</title><link>http://forums.iis.net/thread/1881188.aspx</link><pubDate>Fri, 03 Oct 2008 20:25:19 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1881188</guid><dc:creator>KristoferG</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1881188.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1881188</wfw:commentRss><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Please forgive me, but i don&amp;#39;t work with Exchange logs, but from my understanding of your message, Sender-Address gives you &lt;a href="mailto:name@domain.tld"&gt;name@domain.tld&lt;/a&gt;. You want to get &amp;quot;domain.tld&amp;quot; from this field in the log file. Is this correct?&lt;/p&gt;
&lt;p&gt;If this is correct, then you should look into the EXTRACT_SUFFIX(...) function. If I remember the syntax correctly, your query would be:&lt;/p&gt;
&lt;p&gt;SELECT TOP 10 EXTRACT_SUFFIX([Sender-Address],0,&amp;#39;@&amp;#39;), count(*) as .... GROUP BY EXTRACT_SUFFIX([Sender-Address],0,&amp;#39;@&amp;#39;) ...&lt;/p&gt;</description></item><item><title>Help with Exchange tracking logs</title><link>http://forums.iis.net/thread/1881163.aspx</link><pubDate>Fri, 03 Oct 2008 17:30:07 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1881163</guid><dc:creator>1Fastrider</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1881163.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1140&amp;PostID=1881163</wfw:commentRss><description>&lt;p&gt;Been doing some reading but I&amp;#39;m still new to this. I want to parse my exchange logs and count the domain names and return the top 10 sending domains.&amp;nbsp; All our mail comes through a hosted service so can&amp;#39;t use the server IP value.&amp;nbsp; Here&amp;#39;s what I&amp;#39;m using to get the top senders but I only want the domain, not individual addresses:&lt;/p&gt;
&lt;p&gt;&amp;gt;logparser -i:w3c -o:chart &amp;quot;SELECT TOP 10 [Sender-address], count(*) as Inbound_Domains into chart.gif from &amp;#39;\\server\server.LOG\*.log&amp;#39; GROUP BY [Sender-Address] &amp;quot; -charttype:column3d&lt;/p&gt;</description></item></channel></rss>