<?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: Why is my search on JSON data producing duplicate results for each line, except for the date and time? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-on-JSON-data-producing-duplicate-results-for/m-p/262907#M78913</link>
    <description>&lt;P&gt;Thanks guys. The solution works fine.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Mar 2016 18:45:38 GMT</pubDate>
    <dc:creator>rafamss</dc:creator>
    <dc:date>2016-03-15T18:45:38Z</dc:date>
    <item>
      <title>Why is my search on JSON data producing duplicate results for each line, except for the date and time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-on-JSON-data-producing-duplicate-results-for/m-p/262903#M78909</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;I have a problem. Every time I try to run the following search, the result is duplicated in each line, but the date and time. What can be? My log is in format JSON.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="my_index" source="my_source" sourcetype="my_sourcetype"
| rename field1 , field2, field3, ....
| eval Date = strftime(_time, "%d-%m-%Y")
| eval Hour = strftime(_time, "%H-%M-%S")
| spath output=Rules  path=field.sub-field{}.code
| table Date, Hour, field1 , field2, field3, ....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/869i18E1D1E28EFD1849/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 17:52:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-on-JSON-data-producing-duplicate-results-for/m-p/262903#M78909</guid>
      <dc:creator>rafamss</dc:creator>
      <dc:date>2015-12-04T17:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my search on JSON data producing duplicate results for each line, except for the date and time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-on-JSON-data-producing-duplicate-results-for/m-p/262904#M78910</link>
      <description>&lt;P&gt;The data is most likely being indexed with indexed extractions and also searched with search-time extractions.  Your indexer props.conf file likely has a line to do indexed extractions (not best practice):&lt;BR /&gt;
INDEXED_EXTRACTIONS = json&lt;BR /&gt;
On the search head props.conf:&lt;BR /&gt;
KV_MODE = json&lt;/P&gt;

&lt;P&gt;Deleting "INDEXED_EXTRACTIONS = json" from the indexer will solve the issue for everything indexed after the indexer is restarted.  Anything already indexed will retain their indexed extractions, so you might want to delete the indexed data and re-index everything.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:04:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-on-JSON-data-producing-duplicate-results-for/m-p/262904#M78910</guid>
      <dc:creator>landen99</dc:creator>
      <dc:date>2020-09-29T08:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my search on JSON data producing duplicate results for each line, except for the date and time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-on-JSON-data-producing-duplicate-results-for/m-p/262905#M78911</link>
      <description>&lt;P&gt;landen,&lt;/P&gt;

&lt;P&gt;This occurs every time that I try use the command &lt;CODE&gt;table&lt;/CODE&gt;. I changed the configuration but continuous similarity. Do you have any ideia ?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 19:42:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-on-JSON-data-producing-duplicate-results-for/m-p/262905#M78911</guid>
      <dc:creator>rafamss</dc:creator>
      <dc:date>2015-12-04T19:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my search on JSON data producing duplicate results for each line, except for the date and time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-on-JSON-data-producing-duplicate-results-for/m-p/262906#M78912</link>
      <description>&lt;P&gt;The &lt;CODE&gt;table&lt;/CODE&gt; command just accentuates the fact that the fields have multiple/duplicated values.  If you do not use &lt;CODE&gt;table&lt;/CODE&gt; and then click on the field in the left &lt;CODE&gt;fields&lt;/CODE&gt; panel, you will see that it is also duplicated there, even though you are not using &lt;CODE&gt;table&lt;/CODE&gt;.  This answer is probably the correct explanation.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2015 20:08:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-on-JSON-data-producing-duplicate-results-for/m-p/262906#M78912</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-12-05T20:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my search on JSON data producing duplicate results for each line, except for the date and time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-on-JSON-data-producing-duplicate-results-for/m-p/262907#M78913</link>
      <description>&lt;P&gt;Thanks guys. The solution works fine.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 18:45:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-on-JSON-data-producing-duplicate-results-for/m-p/262907#M78913</guid>
      <dc:creator>rafamss</dc:creator>
      <dc:date>2016-03-15T18:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my search on JSON data producing duplicate results for each line, except for the date and time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-on-JSON-data-producing-duplicate-results-for/m-p/520686#M146608</link>
      <description>&lt;P&gt;The other solution is to leave it as an indexed field and add KVMODE=false to the search head.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 20:21:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-on-JSON-data-producing-duplicate-results-for/m-p/520686#M146608</guid>
      <dc:creator>landen99</dc:creator>
      <dc:date>2020-09-21T20:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my search on JSON data producing duplicate results for each line, except for the date and time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-on-JSON-data-producing-duplicate-results-for/m-p/520875#M146729</link>
      <description>&lt;P&gt;Or index the field and set KVMODE to none.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 14:59:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-on-JSON-data-producing-duplicate-results-for/m-p/520875#M146729</guid>
      <dc:creator>landen99</dc:creator>
      <dc:date>2020-09-22T14:59:09Z</dc:date>
    </item>
  </channel>
</rss>

