<?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: Duplicated JSON fields on search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Duplicated-JSON-fields-on-search/m-p/755758#M242984</link>
    <description>&lt;P class="lia-align-left"&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;for the answer. I am doing my tests on a test environment so far, so I have no issue editing system local files or such. I plan to have an app, with Global permissions, once I managed to have the correct settings.&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;gt;&amp;nbsp;First things first - don't use indexed extractions unless there is absolutely no other way.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;so, simply removing INDEXED_EXTRACTIONS=JSON would do the trick here ? I tried to do so, and :&lt;/P&gt;&lt;P class="lia-align-left"&gt;- the fields are not duplicated (yay!)&lt;/P&gt;&lt;P class="lia-align-left"&gt;- file which contents is a json array are not supported anymore, for example [{'key1': 'val1'}, {'key2':'val2'}], while they were supposed before&lt;/P&gt;&lt;P class="lia-align-left"&gt;- the web search display some extracted key values, but there is a field named "punct" with just a list of comma / quotes / brackets, which led me to believe that the data isn't read / parsed fully&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;I'd check if there aren't other effective settings (host and source-based settings have precedence over general sourcetype-defined ones).&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;Out of a quick check, I do not find anything. Is there a good way to check for everything ?&lt;/P&gt;&lt;P class="lia-align-left"&gt;Just know that, for a test only, I added the following stanza in my search head /opt/splunk/etc/system/local/props.conf&lt;/P&gt;&lt;LI-CODE lang="python"&gt;[default]
KV_MODE = none
AUTO_KV = false
AUTO_KV_JSON = false
FIELD_DISCOVERY = false&lt;/LI-CODE&gt;&lt;P class="lia-align-left"&gt;to try to have precedence over any other props.conf setting file, but this did not change anything.&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Nov 2025 13:42:07 GMT</pubDate>
    <dc:creator>john789789</dc:creator>
    <dc:date>2025-11-21T13:42:07Z</dc:date>
    <item>
      <title>Duplicated JSON fields on search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Duplicated-JSON-fields-on-search/m-p/755724#M242973</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running into the "common" issue of duplicated JSON fields. I use Splunk Enterprise 9.2, with an Universal Forwarder, an indexer cluster, and a search head cluster.&lt;BR /&gt;&lt;BR /&gt;My forwarder as the following configuration files :&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;/opt/splunkforward/etc/system/local/inputs.conf&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Forwarder, /opt/splunkforward/etc/system/local/inputs.conf 
[batch:///opt/splunk_input/index_d/*]
move_policy = sinkhole
index= index_d
source = index_d
sourcetype = index_d
time_before_close = 0
crcSalt = &amp;lt;SOURCE&amp;gt;
blacklist = \.lock$

&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;/opt/splunkforward/etc/system/local/props.conf&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;[index_d]
# Universal Forwarder,  /opt/splunkforward/etc/system/local/props.conf 
INDEXED_EXTRACTIONS = JSON
KV_MODE = none
AUTO_KV = false
AUTO_KV_JSON = false&lt;/LI-CODE&gt;&lt;P&gt;On my search head, I directly edited the system file /&lt;STRONG&gt;opt/splunk/etc/system/local/props.conf&lt;/STRONG&gt; with the following :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;[index_d]
# Search Head, /opt/splunk/etc/system/local/props.conf
INDEXED_EXTRACTION = JSON
KV_MODE = none
AUTO_KV = false
AUTO_KV_JSON = false
FIELD_DISCOVERY = false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With this configuration, I get duplicated values for all extracted fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked on my search head that those fields are correctly applied, using :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;splunk btool props list index_d&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;which correctly lists the value from the props.conf file, I would assume those are correctly setup. If i edited directly the local file on the system folder, it was to avoid permissions issues as listed here&amp;nbsp; :&amp;nbsp;&lt;A href="https://splunk.my.site.com/customer/s/article/Field-Value-Type-Discrepancies-in-KV-MODE" target="_blank"&gt;https://splunk.my.site.com/customer/s/article/Field-Value-Type-Discrepancies-in-KV-MODE&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I also tried to run on the search head :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;[index_d]
# Commenting out the INDEXED_EXTRACTION field on the Search head
# INDEXED_EXTRACTION = JSON
KV_MODE = none
AUTO_KV = false
AUTO_KV_JSON = false
FIELD_DISCOVERY = false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But no luck&lt;/P&gt;&lt;P&gt;I spent some time reading similar questions about this topic, and sadly no solution tried so far helped me.&lt;/P&gt;&lt;P&gt;I happily welcome any suggestion, thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 17:00:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Duplicated-JSON-fields-on-search/m-p/755724#M242973</guid>
      <dc:creator>john789789</dc:creator>
      <dc:date>2025-11-20T17:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicated JSON fields on search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Duplicated-JSON-fields-on-search/m-p/755728#M242974</link>
      <description>&lt;P&gt;First things first - don't use indexed extractions unless there is absolutely no other way.&lt;/P&gt;&lt;P&gt;BTW, crcSalt=&amp;lt;SOURCE&amp;gt; is also very rarely the way to go. Usually it's better to make the checksum block longer if the files have common header. It also shouldn't be needed with batch input.&lt;/P&gt;&lt;P&gt;And avoid touching etc/system/local. Whenever possible, deploy your settings in an app.&lt;/P&gt;&lt;P&gt;OK, having this one out of the way - I'd check if there aren't other effective settings (host and source-based settings have precedence over general sourcetype-defined ones).&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 19:00:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Duplicated-JSON-fields-on-search/m-p/755728#M242974</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-11-20T19:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicated JSON fields on search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Duplicated-JSON-fields-on-search/m-p/755758#M242984</link>
      <description>&lt;P class="lia-align-left"&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;for the answer. I am doing my tests on a test environment so far, so I have no issue editing system local files or such. I plan to have an app, with Global permissions, once I managed to have the correct settings.&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;gt;&amp;nbsp;First things first - don't use indexed extractions unless there is absolutely no other way.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;so, simply removing INDEXED_EXTRACTIONS=JSON would do the trick here ? I tried to do so, and :&lt;/P&gt;&lt;P class="lia-align-left"&gt;- the fields are not duplicated (yay!)&lt;/P&gt;&lt;P class="lia-align-left"&gt;- file which contents is a json array are not supported anymore, for example [{'key1': 'val1'}, {'key2':'val2'}], while they were supposed before&lt;/P&gt;&lt;P class="lia-align-left"&gt;- the web search display some extracted key values, but there is a field named "punct" with just a list of comma / quotes / brackets, which led me to believe that the data isn't read / parsed fully&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;I'd check if there aren't other effective settings (host and source-based settings have precedence over general sourcetype-defined ones).&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;Out of a quick check, I do not find anything. Is there a good way to check for everything ?&lt;/P&gt;&lt;P class="lia-align-left"&gt;Just know that, for a test only, I added the following stanza in my search head /opt/splunk/etc/system/local/props.conf&lt;/P&gt;&lt;LI-CODE lang="python"&gt;[default]
KV_MODE = none
AUTO_KV = false
AUTO_KV_JSON = false
FIELD_DISCOVERY = false&lt;/LI-CODE&gt;&lt;P class="lia-align-left"&gt;to try to have precedence over any other props.conf setting file, but this did not change anything.&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 13:42:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Duplicated-JSON-fields-on-search/m-p/755758#M242984</guid>
      <dc:creator>john789789</dc:creator>
      <dc:date>2025-11-21T13:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicated JSON fields on search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Duplicated-JSON-fields-on-search/m-p/755769#M242987</link>
      <description>&lt;P&gt;Since you have all search-time extractions disabled, Splunk is not... doing extractions. That's why the fields are not parsed out. You disabled index-time parsing, you should enable KV_MODE=json.&lt;/P&gt;&lt;P&gt;It is puzzling though why you had duplicate fields with just indexed extractions. Normally this is a sign of both extractions taking place - index-time with indexed extractions and search time with kvmode (either explicitly set or automatic).&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 17:33:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Duplicated-JSON-fields-on-search/m-p/755769#M242987</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-11-21T17:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicated JSON fields on search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Duplicated-JSON-fields-on-search/m-p/755783#M242993</link>
      <description>&lt;P&gt;I have some speculations.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The initial problem of double extraction could be caused by&amp;nbsp;&lt;SPAN&gt;INDEXED_EXTRACTIONS=JSON used in both forwarder and indexer. &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;After removing&amp;nbsp;INDEXED_EXTRACTIONS from both, I can think of two ways the search head fails to extract all fields automatically. &amp;nbsp;One is some data violates JSON. &amp;nbsp;This is unlikely if no field is missing when&amp;nbsp;INDEXED_EXTRACTIONS=JSON is on. &amp;nbsp;The other possibility is that event size is too big.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;- the web search display some extracted key values, but there is a field named "punct" with just a list of comma / quotes / brackets, which led me to believe that the data isn't read / parsed fully&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;addition of punct is consistent with event being too big for search-time extraction.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Nov 2025 21:47:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Duplicated-JSON-fields-on-search/m-p/755783#M242993</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2025-11-22T21:47:18Z</dc:date>
    </item>
  </channel>
</rss>

