<?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 Table count/dedup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Table-count-dedup/m-p/91022#M23413</link>
    <description>&lt;P&gt;Have a basic report being built and I am having troubles with counts/dedup so to say. Below is my current output. What I would like are 1 of the 2 outputs further below, either with a count and the other fields can be overwritten with whatever the last found value was, or extra special if I could concat the values like at the very bottom. Any ideas?&lt;/P&gt;

&lt;P&gt;source="Firewall" | table source dest blah1 blah2&lt;/P&gt;

&lt;P&gt;source dest blah1 blah2&lt;/P&gt;

&lt;P&gt;10.1.1.1 1.2.3.4 A B&lt;/P&gt;

&lt;P&gt;10.1.1.1 1.2.3.4 B B&lt;/P&gt;

&lt;P&gt;10.1.1.2 1.2.3.4 A B&lt;BR /&gt;
&lt;BR /&gt;
Attempted searches&lt;/P&gt;

&lt;P&gt;source="Firewall" | stats count by source dest blah1 blah2 count&lt;/P&gt;

&lt;P&gt;source="Firewall" | stats count by source | table source dest blah1 blah2 count&lt;/P&gt;

&lt;P&gt;source="Firewall" | stats count by source | join ?????? various types tried&lt;BR /&gt;
&lt;BR /&gt;
Output needed&lt;/P&gt;

&lt;P&gt;source dest blah1 blah2 count&lt;/P&gt;

&lt;P&gt;10.1.1.1 1.2.3.4 A B 2&lt;/P&gt;

&lt;P&gt;10.1.1.2 1.2.3.4 A B 1&lt;BR /&gt;
&lt;BR /&gt;
Or preferred&lt;/P&gt;

&lt;P&gt;source dest blah1 blah2 count&lt;/P&gt;

&lt;P&gt;10.1.1.1 1.2.3.4 A,B B,B 2&lt;/P&gt;

&lt;P&gt;10.1.1.2 1.2.3.4 A B 1&lt;/P&gt;</description>
    <pubDate>Tue, 13 Mar 2012 17:57:28 GMT</pubDate>
    <dc:creator>axinjakson</dc:creator>
    <dc:date>2012-03-13T17:57:28Z</dc:date>
    <item>
      <title>Table count/dedup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-count-dedup/m-p/91022#M23413</link>
      <description>&lt;P&gt;Have a basic report being built and I am having troubles with counts/dedup so to say. Below is my current output. What I would like are 1 of the 2 outputs further below, either with a count and the other fields can be overwritten with whatever the last found value was, or extra special if I could concat the values like at the very bottom. Any ideas?&lt;/P&gt;

&lt;P&gt;source="Firewall" | table source dest blah1 blah2&lt;/P&gt;

&lt;P&gt;source dest blah1 blah2&lt;/P&gt;

&lt;P&gt;10.1.1.1 1.2.3.4 A B&lt;/P&gt;

&lt;P&gt;10.1.1.1 1.2.3.4 B B&lt;/P&gt;

&lt;P&gt;10.1.1.2 1.2.3.4 A B&lt;BR /&gt;
&lt;BR /&gt;
Attempted searches&lt;/P&gt;

&lt;P&gt;source="Firewall" | stats count by source dest blah1 blah2 count&lt;/P&gt;

&lt;P&gt;source="Firewall" | stats count by source | table source dest blah1 blah2 count&lt;/P&gt;

&lt;P&gt;source="Firewall" | stats count by source | join ?????? various types tried&lt;BR /&gt;
&lt;BR /&gt;
Output needed&lt;/P&gt;

&lt;P&gt;source dest blah1 blah2 count&lt;/P&gt;

&lt;P&gt;10.1.1.1 1.2.3.4 A B 2&lt;/P&gt;

&lt;P&gt;10.1.1.2 1.2.3.4 A B 1&lt;BR /&gt;
&lt;BR /&gt;
Or preferred&lt;/P&gt;

&lt;P&gt;source dest blah1 blah2 count&lt;/P&gt;

&lt;P&gt;10.1.1.1 1.2.3.4 A,B B,B 2&lt;/P&gt;

&lt;P&gt;10.1.1.2 1.2.3.4 A B 1&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2012 17:57:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-count-dedup/m-p/91022#M23413</guid>
      <dc:creator>axinjakson</dc:creator>
      <dc:date>2012-03-13T17:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Table count/dedup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-count-dedup/m-p/91023#M23414</link>
      <description>&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/CommonStatsFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/CommonStatsFunctions&lt;/A&gt; so&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats latest(blah1) as blah1, latest(blah2) as blah2, count by src,dest
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats values(blah1) as blah1, values(blah2) as blah2, count by src,dest
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats list(blah1) as blah1, list(blah2) as blah2, count by src,dest
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Mar 2012 18:45:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-count-dedup/m-p/91023#M23414</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2012-03-13T18:45:43Z</dc:date>
    </item>
  </channel>
</rss>

