<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Format Email Direction and Count in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Format-Email-Direction-and-Count/m-p/121024#M32536</link>
    <description>&lt;P&gt;Instead of table, xyseries will do it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=dmzmail sourcetype=sendmail_syslog (process=extin sender_domain=ml.com) OR (process=extout recipient_domain=fortis.com) | head 50| eval DIRECTION = case direction=="inbound", "INBOUND", direction=="outbound", "OUTBOUND") | eval DOMAIN = case (sender_domain=="xyz.COM", "xyz.COM", recipient_domain=="xyz.COM", "xyz.COM")| stats count by DIRECTION, DOMAIN| stats count by DIRECTION, DOMAIN| xyseries DOMAIN DIRECTION count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Sat, 05 Apr 2014 07:09:11 GMT</pubDate>
    <dc:creator>linu1988</dc:creator>
    <dc:date>2014-04-05T07:09:11Z</dc:date>
    <item>
      <title>Format Email Direction and Count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Format-Email-Direction-and-Count/m-p/121023#M32535</link>
      <description>&lt;P&gt;Hi, am hoping for help with this.   I want to format output as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Domain      OUTBOUND_COUNT   INBOUND_COUNT  
xyz.COM                  24               16         
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The best I can come up with is via the search below, but it gives:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; DIRECTION      DOMAIN      count  
 INBOUND        xyz.COM     26  
 OUTBOUND       xyz.COM     24 


index=dmzmail sourcetype=sendmail_syslog (process=extin* sender_domain=ml.com) OR (process=extout* recipient_domain=fortis.com) | head 50  | eval DIRECTION = case (direction=="inbound", "INBOUND", direction=="outbound", "OUTBOUND")| eval DOMAIN = case (sender_domain=="xyz.COM", "xyz.COM", recipient_domain=="xyz.COM", "xyz.COM")| stats count by DIRECTION, DOMAIN | table DIRECTION DOMAIN count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Apr 2014 00:16:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Format-Email-Direction-and-Count/m-p/121023#M32535</guid>
      <dc:creator>RB5</dc:creator>
      <dc:date>2014-04-05T00:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Format Email Direction and Count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Format-Email-Direction-and-Count/m-p/121024#M32536</link>
      <description>&lt;P&gt;Instead of table, xyseries will do it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=dmzmail sourcetype=sendmail_syslog (process=extin sender_domain=ml.com) OR (process=extout recipient_domain=fortis.com) | head 50| eval DIRECTION = case direction=="inbound", "INBOUND", direction=="outbound", "OUTBOUND") | eval DOMAIN = case (sender_domain=="xyz.COM", "xyz.COM", recipient_domain=="xyz.COM", "xyz.COM")| stats count by DIRECTION, DOMAIN| stats count by DIRECTION, DOMAIN| xyseries DOMAIN DIRECTION count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 05 Apr 2014 07:09:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Format-Email-Direction-and-Count/m-p/121024#M32536</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-04-05T07:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Format Email Direction and Count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Format-Email-Direction-and-Count/m-p/121025#M32537</link>
      <description>&lt;P&gt;Thanks!  Sorry, didn't know about the xyseries function, very convenient.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Apr 2014 15:36:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Format-Email-Direction-and-Count/m-p/121025#M32537</guid>
      <dc:creator>RB5</dc:creator>
      <dc:date>2014-04-05T15:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Format Email Direction and Count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Format-Email-Direction-and-Count/m-p/121026#M32538</link>
      <description>&lt;P&gt;If worked please mark it as answer...&lt;/P&gt;</description>
      <pubDate>Sat, 05 Apr 2014 16:20:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Format-Email-Direction-and-Count/m-p/121026#M32538</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-04-05T16:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Format Email Direction and Count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Format-Email-Direction-and-Count/m-p/121027#M32539</link>
      <description>&lt;P&gt;I do not see where I can mark this as being answered.  Also, odds are I'll never get this posted as it is impossible to read those dam 'CAPTCHA' phrases.  I'm logged in, why don't you let me do a post instead of fighting over those captions.  Personal Problem apparently.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Apr 2014 16:59:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Format-Email-Direction-and-Count/m-p/121027#M32539</guid>
      <dc:creator>RB5</dc:creator>
      <dc:date>2014-04-05T16:59:24Z</dc:date>
    </item>
  </channel>
</rss>

