<?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 How to get a dc on 2 fields? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-dc-on-2-fields/m-p/386906#M167986</link>
    <description>&lt;P&gt;I have two fields, "sender" and "recipient". I want to create a table that lists distinct sender-recipient pairs and the corresponding # of events for each pair. I can't think of how to use stats dc or dedup to do this. Any ideas?&lt;/P&gt;</description>
    <pubDate>Tue, 07 Aug 2018 13:02:42 GMT</pubDate>
    <dc:creator>mgao</dc:creator>
    <dc:date>2018-08-07T13:02:42Z</dc:date>
    <item>
      <title>How to get a dc on 2 fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-dc-on-2-fields/m-p/386906#M167986</link>
      <description>&lt;P&gt;I have two fields, "sender" and "recipient". I want to create a table that lists distinct sender-recipient pairs and the corresponding # of events for each pair. I can't think of how to use stats dc or dedup to do this. Any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 13:02:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-dc-on-2-fields/m-p/386906#M167986</guid>
      <dc:creator>mgao</dc:creator>
      <dc:date>2018-08-07T13:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a dc on 2 fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-dc-on-2-fields/m-p/386907#M167987</link>
      <description>&lt;PRE&gt;| stats count by sender recepient  &lt;/PRE&gt;

&lt;P&gt;or &lt;/P&gt;

&lt;PRE&gt;| eval sender_recepient = sender."-".recepient | stats count by sender_recepient  &lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Aug 2018 15:16:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-dc-on-2-fields/m-p/386907#M167987</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2018-08-07T15:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a dc on 2 fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-dc-on-2-fields/m-p/386908#M167988</link>
      <description>&lt;P&gt;How about this? This should give you "list of distinct sender-recipient pairs and the corresponding # of events for each pair"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YOur current search with field sender and recipient
| stats count by sender recipient
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Aug 2018 15:17:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-dc-on-2-fields/m-p/386908#M167988</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-08-07T15:17:07Z</dc:date>
    </item>
  </channel>
</rss>

