<?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: Exporting only dedup'd entries? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Exporting-only-dedup-d-entries/m-p/459581#M79364</link>
    <description>&lt;P&gt;Here's what I would suggest.&lt;/P&gt;

&lt;P&gt;Run your query once with the &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.0/SearchReference/Outputcsv"&gt;outputcsv&lt;/A&gt; command like you want to save your data. Now modify your search to make an input lookup with &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.2.0/SearchReference/Inputcsv"&gt;inputcsv&lt;/A&gt; on that csv file. Get your data in, do a dedup on the specified fields and after that, you're safe to do your outputcsv again. You can exclude unnecessary fields like mentioned in the outputcsv documentation.&lt;/P&gt;

&lt;P&gt;If you need further assistance I'd need an example of your search.&lt;/P&gt;

&lt;P&gt;Skall&lt;/P&gt;</description>
    <pubDate>Tue, 06 Nov 2018 12:15:22 GMT</pubDate>
    <dc:creator>skalliger</dc:creator>
    <dc:date>2018-11-06T12:15:22Z</dc:date>
    <item>
      <title>Exporting only dedup'd entries?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exporting-only-dedup-d-entries/m-p/459580#M79363</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I've searched quite a lot but cant find a good method to get this workflow to work.&lt;/P&gt;

&lt;P&gt;I've got a python script in splunk which returns a JSON and a dashboard which tables the results.&lt;/P&gt;

&lt;P&gt;The script will import new entries when it is run daily.&lt;/P&gt;

&lt;P&gt;I want to export the new table values as a .csv from Splunk and ensure I'm not exporting duplicates or entries that I've exported previously.&lt;/P&gt;

&lt;P&gt;At the moment my thought process is that if I can tag entries with an import date I can filter out previous days imports.&lt;/P&gt;

&lt;P&gt;Is there documentation or suggestions on how I can have new entries dedup'd and then only export new and unique entries?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 23:59:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exporting-only-dedup-d-entries/m-p/459580#M79363</guid>
      <dc:creator>Davvvem</dc:creator>
      <dc:date>2018-11-05T23:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting only dedup'd entries?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exporting-only-dedup-d-entries/m-p/459581#M79364</link>
      <description>&lt;P&gt;Here's what I would suggest.&lt;/P&gt;

&lt;P&gt;Run your query once with the &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.0/SearchReference/Outputcsv"&gt;outputcsv&lt;/A&gt; command like you want to save your data. Now modify your search to make an input lookup with &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.2.0/SearchReference/Inputcsv"&gt;inputcsv&lt;/A&gt; on that csv file. Get your data in, do a dedup on the specified fields and after that, you're safe to do your outputcsv again. You can exclude unnecessary fields like mentioned in the outputcsv documentation.&lt;/P&gt;

&lt;P&gt;If you need further assistance I'd need an example of your search.&lt;/P&gt;

&lt;P&gt;Skall&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 12:15:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exporting-only-dedup-d-entries/m-p/459581#M79364</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2018-11-06T12:15:22Z</dc:date>
    </item>
  </channel>
</rss>

