<?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 How can I avoid duplication of data pulled by REST API? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-avoid-duplication-of-data-pulled-by-REST-API/m-p/298323#M56445</link>
    <description>&lt;P&gt;I have Splunk instance where I configure Data Inputs as "REST API input for polling data from RESTful endpoints". I have almost around 20+ endpoints and where I am pulling data in JSON format and loading in single index.&lt;/P&gt;

&lt;P&gt;However, each time any reports or search query runs it will double same data again, like very first fetch brings 5 values and subsequent fetch will bring another 5 and so on and keep increasing.&lt;/P&gt;

&lt;P&gt;Now in my dashboards and reports I kind of landed into problem of duplicate data. How I should avoid it? So for very unusual work around I increased interval from 1 min to 1 months, which helps me to avoid data duplication. However, I cannot have stale data for month...I can still survive with 1 day interval, but not with 1 month.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Is there any way in Splunk where I can keep my REST API Call tidy(avoid duplicates) ... to make my dashboards and reports on the fly?&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Here is snippet of my inputs.conf file for REST API:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[rest://rst_sl_get_version]
auth_password = ccccc
auth_type = basic
auth_user = vvvvvvv
endpoint = &lt;A href="https://api.xx.com/rest/v3/xx_version" target="test_blank"&gt;https://api.xx.com/rest/v3/xx_version&lt;/A&gt;
host = slrestdata
http_method = GET
index = sldata
index_error_response_codes = 0
response_type = json
sequential_mode = 0
sourcetype = _json
streaming_request = 0
polling_interval = 2592000
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 23 Aug 2017 10:12:43 GMT</pubDate>
    <dc:creator>niravhjoshi</dc:creator>
    <dc:date>2017-08-23T10:12:43Z</dc:date>
    <item>
      <title>How can I avoid duplication of data pulled by REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-avoid-duplication-of-data-pulled-by-REST-API/m-p/298323#M56445</link>
      <description>&lt;P&gt;I have Splunk instance where I configure Data Inputs as "REST API input for polling data from RESTful endpoints". I have almost around 20+ endpoints and where I am pulling data in JSON format and loading in single index.&lt;/P&gt;

&lt;P&gt;However, each time any reports or search query runs it will double same data again, like very first fetch brings 5 values and subsequent fetch will bring another 5 and so on and keep increasing.&lt;/P&gt;

&lt;P&gt;Now in my dashboards and reports I kind of landed into problem of duplicate data. How I should avoid it? So for very unusual work around I increased interval from 1 min to 1 months, which helps me to avoid data duplication. However, I cannot have stale data for month...I can still survive with 1 day interval, but not with 1 month.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Is there any way in Splunk where I can keep my REST API Call tidy(avoid duplicates) ... to make my dashboards and reports on the fly?&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Here is snippet of my inputs.conf file for REST API:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[rest://rst_sl_get_version]
auth_password = ccccc
auth_type = basic
auth_user = vvvvvvv
endpoint = &lt;A href="https://api.xx.com/rest/v3/xx_version" target="test_blank"&gt;https://api.xx.com/rest/v3/xx_version&lt;/A&gt;
host = slrestdata
http_method = GET
index = sldata
index_error_response_codes = 0
response_type = json
sequential_mode = 0
sourcetype = _json
streaming_request = 0
polling_interval = 2592000
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Aug 2017 10:12:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-avoid-duplication-of-data-pulled-by-REST-API/m-p/298323#M56445</guid>
      <dc:creator>niravhjoshi</dc:creator>
      <dc:date>2017-08-23T10:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I avoid duplication of data pulled by REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-avoid-duplication-of-data-pulled-by-REST-API/m-p/298324#M56446</link>
      <description>&lt;P&gt;Try splunk_server=xxx&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.1/SearchReference/Rest"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.1/SearchReference/Rest&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2018 19:39:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-avoid-duplication-of-data-pulled-by-REST-API/m-p/298324#M56446</guid>
      <dc:creator>valiquet</dc:creator>
      <dc:date>2018-12-21T19:39:05Z</dc:date>
    </item>
  </channel>
</rss>

