<?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 to efficiently resend data into Splunk with a REST API that will replace old data if it has been updated in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-efficiently-resend-data-into-Splunk-with-a-REST-API-that/m-p/489272#M83663</link>
    <description>&lt;P&gt;That isn’t how Splunk works. It’s not a database so has no feature like that. &lt;/P&gt;</description>
    <pubDate>Sat, 23 Nov 2019 04:44:03 GMT</pubDate>
    <dc:creator>starcher</dc:creator>
    <dc:date>2019-11-23T04:44:03Z</dc:date>
    <item>
      <title>How to efficiently resend data into Splunk with a REST API that will replace old data if it has been updated</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-efficiently-resend-data-into-Splunk-with-a-REST-API-that/m-p/489271#M83662</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I am looking to resend data to Splunk in the most efficient way.  I want to resend data into Splunk with a REST API that will replace old data if it has been updated.  I don't want to resend all of the data, only anything that has changed.  &lt;/P&gt;

&lt;P&gt;The goal is to not give Splunk more data than it needs. &lt;BR /&gt;
I am searching the data based on a by-minute time range so even in the course of 5-10 minutes, resending all of that would be a lot of data if most of it is repeating events.  &lt;/P&gt;

&lt;P&gt;I'm very new to all of this so I was looking for some guidance on where to start or helpful links to get started.  &lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 22:26:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-efficiently-resend-data-into-Splunk-with-a-REST-API-that/m-p/489271#M83662</guid>
      <dc:creator>kdanielsobrien</dc:creator>
      <dc:date>2019-11-22T22:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to efficiently resend data into Splunk with a REST API that will replace old data if it has been updated</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-efficiently-resend-data-into-Splunk-with-a-REST-API-that/m-p/489272#M83663</link>
      <description>&lt;P&gt;That isn’t how Splunk works. It’s not a database so has no feature like that. &lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2019 04:44:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-efficiently-resend-data-into-Splunk-with-a-REST-API-that/m-p/489272#M83663</guid>
      <dc:creator>starcher</dc:creator>
      <dc:date>2019-11-23T04:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to efficiently resend data into Splunk with a REST API that will replace old data if it has been updated</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-efficiently-resend-data-into-Splunk-with-a-REST-API-that/m-p/489273#M83664</link>
      <description>&lt;P&gt;Hi @kdanielsobrien,&lt;BR /&gt;
maybe my words could seem strange: are you sure that you need Splunk?&lt;BR /&gt;
Splunk works in a different way than a database:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;ingested data aren't modifiable (also by REST API),&lt;/LI&gt;
&lt;LI&gt;you have always all the data (in the retention period) and not only the data you want, you have all the data you ingested and you cannot delete them,&lt;/LI&gt;
&lt;LI&gt;if you use the delete command, data continue to stand in the buckets  (in the retention period) but aren't searchable;&lt;/LI&gt;
&lt;LI&gt;for this reason Splunk is commonly used for compliance better than a DB!&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Anyway, the first question is: way you want to have this approach? to save storage or what else?&lt;/P&gt;

&lt;P&gt;Anyway, if you want to do this, you could create a summary index populating it every day with all the correct data you want ( &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/Knowledge/Usesummaryindexing"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/Knowledge/Usesummaryindexing&lt;/A&gt; ).&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2019 08:57:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-efficiently-resend-data-into-Splunk-with-a-REST-API-that/m-p/489273#M83664</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-11-23T08:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to efficiently resend data into Splunk with a REST API that will replace old data if it has been updated</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-efficiently-resend-data-into-Splunk-with-a-REST-API-that/m-p/489274#M83665</link>
      <description>&lt;P&gt;Hi Giuseppe,&lt;/P&gt;

&lt;P&gt;I guess I want to filter what data is being sent to Splunk.. For example, I send all the data to Splunk for a 10 minute time span. After I have sent the data to Splunk,  a few minutes of data have been replaced with  updated new values/data.  I only want to resend the new/updated data to Splunk for the few minutes that have been changed.  &lt;/P&gt;

&lt;P&gt;I want to filter what data is being sent to Splunk because I will waste a lot of GB of data if I resend all of the data from a time span, just to update a few events in Splunk search. &lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 13:30:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-efficiently-resend-data-into-Splunk-with-a-REST-API-that/m-p/489274#M83665</guid>
      <dc:creator>kdanielsobrien</dc:creator>
      <dc:date>2019-11-25T13:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to efficiently resend data into Splunk with a REST API that will replace old data if it has been updated</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-efficiently-resend-data-into-Splunk-with-a-REST-API-that/m-p/489275#M83666</link>
      <description>&lt;P&gt;You can only do that if you store the data in a &lt;CODE&gt;Lookup File&lt;/CODE&gt; in Splunk.  If you do this, you would update it like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Some search to pull in new data here (could be dbxquery or something else)
| some SPL to transform the data and ensure that a distinct key field such as "host" exists
| inputlookup append=true YourLookupFIleHere.csv
| dedup host
| outputlookup YourLookupFIleHere.csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Nov 2019 16:16:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-efficiently-resend-data-into-Splunk-with-a-REST-API-that/m-p/489275#M83666</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-25T16:16:10Z</dc:date>
    </item>
  </channel>
</rss>

