<?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 Using join statement with count and dedup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-join-statement-with-count-and-dedup/m-p/66136#M16418</link>
    <description>&lt;P&gt;I have the current statement using append:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search_term1 | stats count by ip_address | table ip_address count | append [search search_term1 | dedup ip_address | table ipaddress _raw]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which makes a table rows:&lt;/P&gt;

&lt;P&gt;ip_address---------- count ------------ _raw &lt;/P&gt;

&lt;P&gt;123.456.1.1 -------- 520 ------------------&lt;/P&gt;

&lt;P&gt;123.456.1.1 ----------------------------- raw data&lt;/P&gt;

&lt;P&gt;I would like to combine my data into single lines:&lt;/P&gt;

&lt;P&gt;ip_address---------- count ------------ _raw &lt;/P&gt;

&lt;P&gt;123.456.1.1 -------- 520 -------------- raw data&lt;/P&gt;

&lt;P&gt;It seems that I should use the join statement but when I do the raw data refuses to display at all. Please help! Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2013 21:22:11 GMT</pubDate>
    <dc:creator>cpeteman</dc:creator>
    <dc:date>2013-06-17T21:22:11Z</dc:date>
    <item>
      <title>Using join statement with count and dedup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-join-statement-with-count-and-dedup/m-p/66136#M16418</link>
      <description>&lt;P&gt;I have the current statement using append:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search_term1 | stats count by ip_address | table ip_address count | append [search search_term1 | dedup ip_address | table ipaddress _raw]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which makes a table rows:&lt;/P&gt;

&lt;P&gt;ip_address---------- count ------------ _raw &lt;/P&gt;

&lt;P&gt;123.456.1.1 -------- 520 ------------------&lt;/P&gt;

&lt;P&gt;123.456.1.1 ----------------------------- raw data&lt;/P&gt;

&lt;P&gt;I would like to combine my data into single lines:&lt;/P&gt;

&lt;P&gt;ip_address---------- count ------------ _raw &lt;/P&gt;

&lt;P&gt;123.456.1.1 -------- 520 -------------- raw data&lt;/P&gt;

&lt;P&gt;It seems that I should use the join statement but when I do the raw data refuses to display at all. Please help! Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2013 21:22:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-join-statement-with-count-and-dedup/m-p/66136#M16418</guid>
      <dc:creator>cpeteman</dc:creator>
      <dc:date>2013-06-17T21:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using join statement with count and dedup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-join-statement-with-count-and-dedup/m-p/66137#M16419</link>
      <description>&lt;P&gt;I was able to solve this by using selfjoin statement: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search_term1 | stats count by ip_address | rename ip_address as sip_address | rename count as scount | table sip_address,scount | append [ search search_term1 | dedup ip_address | rename ip_address as sip_address | table sip_address,_raw ] | selfjoin sip_address
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Jun 2013 23:38:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-join-statement-with-count-and-dedup/m-p/66137#M16419</guid>
      <dc:creator>cpeteman</dc:creator>
      <dc:date>2013-06-17T23:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using join statement with count and dedup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-join-statement-with-count-and-dedup/m-p/66138#M16420</link>
      <description>&lt;P&gt;Although I would still like to know why it is that count must be renamed.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2013 21:01:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-join-statement-with-count-and-dedup/m-p/66138#M16420</guid>
      <dc:creator>cpeteman</dc:creator>
      <dc:date>2013-06-28T21:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using join statement with count and dedup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-join-statement-with-count-and-dedup/m-p/66139#M16421</link>
      <description>&lt;P&gt;If anyone need help with a problem similar to this feel free to comment.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2013 23:16:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-join-statement-with-count-and-dedup/m-p/66139#M16421</guid>
      <dc:creator>cpeteman</dc:creator>
      <dc:date>2013-07-01T23:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using join statement with count and dedup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-join-statement-with-count-and-dedup/m-p/66140#M16422</link>
      <description>&lt;P&gt;I've had to do a fair bit more on this stuff since I asked so I may have a shot at helping&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2013 23:17:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-join-statement-with-count-and-dedup/m-p/66140#M16422</guid>
      <dc:creator>cpeteman</dc:creator>
      <dc:date>2013-07-01T23:17:23Z</dc:date>
    </item>
  </channel>
</rss>

