<?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: counting combination of fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/counting-combination-of-fields/m-p/168600#M186212</link>
    <description>&lt;P&gt;Great. Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2014 13:15:58 GMT</pubDate>
    <dc:creator>a212830</dc:creator>
    <dc:date>2014-02-28T13:15:58Z</dc:date>
    <item>
      <title>counting combination of fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/counting-combination-of-fields/m-p/168595#M186207</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;How would I count a combination of fields in splunk? For example, I have a "from_ip_addr" and a "to_ip_addr" in an event, and I want to count unique combinations of those two. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:59:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/counting-combination-of-fields/m-p/168595#M186207</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2020-09-28T15:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: counting combination of fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/counting-combination-of-fields/m-p/168596#M186208</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | stats count by from_op_addr, to_ip_addr | stats count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Feb 2014 16:06:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/counting-combination-of-fields/m-p/168596#M186208</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-02-27T16:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: counting combination of fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/counting-combination-of-fields/m-p/168597#M186209</link>
      <description>&lt;P&gt;Or this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | eval from_to = from_ip_addr.to_ip_addr | stats dc(from_to)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Feb 2014 16:21:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/counting-combination-of-fields/m-p/168597#M186209</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-02-27T16:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: counting combination of fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/counting-combination-of-fields/m-p/168598#M186210</link>
      <description>&lt;P&gt;Thanks. Is there a way to get the combo's listed as well? &lt;/P&gt;

&lt;P&gt;from_ip to_ip count&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:00:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/counting-combination-of-fields/m-p/168598#M186210</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2020-09-28T16:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: counting combination of fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/counting-combination-of-fields/m-p/168599#M186211</link>
      <description>&lt;P&gt;Leave the final &lt;CODE&gt;stats&lt;/CODE&gt; off the first suggestion to get this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | stats count by from_op_addr, to_ip_addr
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Feb 2014 18:58:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/counting-combination-of-fields/m-p/168599#M186211</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-02-27T18:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: counting combination of fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/counting-combination-of-fields/m-p/168600#M186212</link>
      <description>&lt;P&gt;Great. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2014 13:15:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/counting-combination-of-fields/m-p/168600#M186212</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2014-02-28T13:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: counting combination of fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/counting-combination-of-fields/m-p/168601#M186213</link>
      <description>&lt;P&gt;It works for me! Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 02:15:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/counting-combination-of-fields/m-p/168601#M186213</guid>
      <dc:creator>sssignals</dc:creator>
      <dc:date>2017-11-13T02:15:52Z</dc:date>
    </item>
  </channel>
</rss>

