<?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: How can I dedup one part of a combined search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-dedup-one-part-of-a-combined-search/m-p/170933#M48957</link>
    <description>&lt;P&gt;Thanks, I did try that but it didn't seem to do the job. If I search just that source and dedup, fine. But if I include multiple sources, duplicate records reappeared. I am also piping the results to transaction command, and that may have an impact too.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jun 2015 05:46:42 GMT</pubDate>
    <dc:creator>rjlohan</dc:creator>
    <dc:date>2015-06-24T05:46:42Z</dc:date>
    <item>
      <title>How can I dedup one part of a combined search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-dedup-one-part-of-a-combined-search/m-p/170931#M48955</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;How can I dedup one input to a combined search?&lt;/P&gt;

&lt;P&gt;e.g;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=dataA OR index=dataB | dedup &amp;lt;some field only present in dataB&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;dataB has duplicate records, and I want to exclude only those records in dataB, by a field present in only those records.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2015 01:26:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-dedup-one-part-of-a-combined-search/m-p/170931#M48955</guid>
      <dc:creator>rjlohan</dc:creator>
      <dc:date>2015-06-24T01:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I dedup one part of a combined search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-dedup-one-part-of-a-combined-search/m-p/170932#M48956</link>
      <description>&lt;P&gt;Assuming that the field is only present in dataB, you could do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dedup &amp;lt;field only present in dataB&amp;gt; keepempty=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will keep unique values of that field plus all events where the field isn't present. See &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/SearchReference/dedup"&gt;the docs on dedup&lt;/A&gt; for more specific detail, and other options.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2015 03:36:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-dedup-one-part-of-a-combined-search/m-p/170932#M48956</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2015-06-24T03:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I dedup one part of a combined search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-dedup-one-part-of-a-combined-search/m-p/170933#M48957</link>
      <description>&lt;P&gt;Thanks, I did try that but it didn't seem to do the job. If I search just that source and dedup, fine. But if I include multiple sources, duplicate records reappeared. I am also piping the results to transaction command, and that may have an impact too.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2015 05:46:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-dedup-one-part-of-a-combined-search/m-p/170933#M48957</guid>
      <dc:creator>rjlohan</dc:creator>
      <dc:date>2015-06-24T05:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I dedup one part of a combined search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-dedup-one-part-of-a-combined-search/m-p/170934#M48958</link>
      <description>&lt;P&gt;try with  &lt;CODE&gt;fields&lt;/CODE&gt;  command to remove  this fields  before use it, like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=dataA OR index=dataB | ...|fields -source_name_fields, host, ip, ....
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Jun 2015 09:33:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-dedup-one-part-of-a-combined-search/m-p/170934#M48958</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2015-06-24T09:33:28Z</dc:date>
    </item>
  </channel>
</rss>

