<?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: Duplicate Values in REST API in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Duplicate-Values-in-REST-API/m-p/509736#M2678</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have a savedsearch named -&amp;nbsp;License Usage Data Cube?&lt;/P&gt;&lt;P&gt;I have reproduced the error with this savedsearch.&lt;/P&gt;&lt;P&gt;In splunk - I ran this search for 1 minute and filtered one component where in splunk I am getting 1 log, when I try connecting the API with the same savedsearch for same timing and same filters applied, I am able to see 4 logs in JSON Mode.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jul 2020 15:32:10 GMT</pubDate>
    <dc:creator>VijaySrrie</dc:creator>
    <dc:date>2020-07-17T15:32:10Z</dc:date>
    <item>
      <title>Duplicate Values in REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Duplicate-Values-in-REST-API/m-p/509642#M2671</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using below REST API Call and able to see the results - But it is giving me duplicate values.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In splunk I am able to see only one log whereas in REST API Call I am able to see 3 logs.&amp;nbsp; &amp;nbsp;Please let me know how to eliminate the duplicate values in REST API Call&lt;/P&gt;&lt;P&gt;https://splunk-api-url:8089/servicesNS/nobody/appname/search/jobs/export?output_mode=json&amp;amp;segmentation=none&amp;amp;latest_time=2020-07-15T00%3A05%3A00.000&amp;amp;earliest_time=2020-07-15T00%3A00%3A00.000&amp;amp;search=|savedsearch%20savedsearchname%20|search%20Code=XXX-10-12&lt;/P&gt;&lt;P&gt;Note: This duplicate value could be seen only for JSON Format, for other formats it is working fine. Let me know how to eliminate duplicate values for JSON Format&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 05:34:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Duplicate-Values-in-REST-API/m-p/509642#M2671</guid>
      <dc:creator>VijaySrrie</dc:creator>
      <dc:date>2020-07-17T05:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Values in REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Duplicate-Values-in-REST-API/m-p/509717#M2676</link>
      <description>Can you reproduce the error using a "standard" saved search (one delivered with Splunk)? I don't have a saved search called "savedsearchname" with a Code field.</description>
      <pubDate>Fri, 17 Jul 2020 14:10:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Duplicate-Values-in-REST-API/m-p/509717#M2676</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-17T14:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Values in REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Duplicate-Values-in-REST-API/m-p/509736#M2678</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have a savedsearch named -&amp;nbsp;License Usage Data Cube?&lt;/P&gt;&lt;P&gt;I have reproduced the error with this savedsearch.&lt;/P&gt;&lt;P&gt;In splunk - I ran this search for 1 minute and filtered one component where in splunk I am getting 1 log, when I try connecting the API with the same savedsearch for same timing and same filters applied, I am able to see 4 logs in JSON Mode.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 15:32:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Duplicate-Values-in-REST-API/m-p/509736#M2678</guid>
      <dc:creator>VijaySrrie</dc:creator>
      <dc:date>2020-07-17T15:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Values in REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Duplicate-Values-in-REST-API/m-p/523601#M3702</link>
      <description>&lt;P&gt;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957" target="_blank"&gt;@richgalloway&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;we met the same problem on Splunk Enterprise 7.2.6.&lt;BR /&gt;if we added the savedsearch like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_index
| dedup name
| table name value&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;and assume the savedsearch result is like this&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;name&lt;/TD&gt;&lt;TD width="50%"&gt;value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;aa&lt;/TD&gt;&lt;TD width="50%"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;bb&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;but if we use splunk export API, we&amp;nbsp;will get the result like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"preview":false,"offset":0,"result": {"name": "a", value:"1"}
{"preview":false,"offset":1,"result": {"name": "b", value:"2"}
{"preview":false,"offset":0,"result": {"name": "a", value:"1"}
{"preview":false,"offset":1,"result": {"name": "b", value:"2"}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 07:15:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Duplicate-Values-in-REST-API/m-p/523601#M3702</guid>
      <dc:creator>davidgogogo</dc:creator>
      <dc:date>2020-10-08T07:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Values in REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Duplicate-Values-in-REST-API/m-p/523769#M3710</link>
      <description>&lt;P&gt;I suggest filing a report with Splunk Support.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 17:35:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Duplicate-Values-in-REST-API/m-p/523769#M3710</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-10-08T17:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Values in REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Duplicate-Values-in-REST-API/m-p/525442#M3862</link>
      <description>&lt;P&gt;Having the same issue. Is there any solution?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 18:49:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Duplicate-Values-in-REST-API/m-p/525442#M3862</guid>
      <dc:creator>ngohel</dc:creator>
      <dc:date>2020-10-19T18:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Values in REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Duplicate-Values-in-REST-API/m-p/525473#M3865</link>
      <description>&lt;P&gt;No solution.&lt;/P&gt;&lt;P&gt;The respective application team filtered the JSON result at their end.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 01:02:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Duplicate-Values-in-REST-API/m-p/525473#M3865</guid>
      <dc:creator>VijaySrrie</dc:creator>
      <dc:date>2020-10-20T01:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Values in REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Duplicate-Values-in-REST-API/m-p/525478#M3868</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;suggested, this look like a good candidate for Splunk Support ticket!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 01:38:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Duplicate-Values-in-REST-API/m-p/525478#M3868</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2020-10-20T01:38:40Z</dc:date>
    </item>
  </channel>
</rss>

