<?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 are JSON fields extracted and displayed twice? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464228#M80056</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I also faced a similar issue a while ago.&lt;BR /&gt;
I believe the JSON rows are getting duplicated in the SH UI.&lt;/P&gt;

&lt;P&gt;Possibly, this is due to multiple JSON parsing for the source type due to splunk config file precedence.&lt;/P&gt;

&lt;P&gt;Kindly check on the btool configuration to troubleshoot the issue&lt;BR /&gt;
Use the below command to see the conf for source type.&lt;BR /&gt;
1)Go to your Splunk bin directory where your app resides.&lt;BR /&gt;
2) ./splunk btool props list --debug | grep "your source type"&lt;BR /&gt;
3)See if the JSON conf are coming from a higher precedence file.&lt;BR /&gt;
4)Set the KV_MODE=none and AUTO_KV_JSON=false based on this.&lt;/P&gt;

&lt;P&gt;Hope this helps!!&lt;/P&gt;

&lt;P&gt;dP&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 01:54:49 GMT</pubDate>
    <dc:creator>dindpau</dc:creator>
    <dc:date>2020-09-30T01:54:49Z</dc:date>
    <item>
      <title>Why are JSON fields extracted and displayed twice?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464222#M80050</link>
      <description>&lt;P&gt;JSON fields are extracted twice.&lt;/P&gt;

&lt;P&gt;On Universal forwarder (7.0.3) the settings &lt;CODE&gt;props.conf&lt;/CODE&gt; are like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_sourcetype]
SHOULD_LINEMERGE=true
LINE_BREAKER=([\r\n]+)
NO_BINARY_CHECK=true
CHARSET=UTF-8
INDEXED_EXTRACTIONS=json
KV_MODE=none
category=Structured
disabled=false
pulldown_type=true
TIMESTAMP_FIELDS=timestamp
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;On Search Head(7.2.6), tried all combinations of below in &lt;CODE&gt;props.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_sourcetype]
INDEXED_EXTRACTIONS=json
KV_MODE=none
AUTO_KV_JSON = false
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Aug 2019 22:07:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464222#M80050</guid>
      <dc:creator>thirusama</dc:creator>
      <dc:date>2019-08-26T22:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why are JSON fields extracted and displayed twice?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464223#M80051</link>
      <description>&lt;P&gt;What do you mean with "JSON fields are extracted twice."?&lt;/P&gt;

&lt;P&gt;Also INDEXED_EXTRACTIONS is use during indexing stage in UFs or IDXs. So unless you are indexing data using you search head, there is no point on this particular atribute being there.&lt;/P&gt;

&lt;P&gt;check this. It shows where in the indexing pipeline each atribute is used.&lt;BR /&gt;
&lt;A href="https://wiki.splunk.com/Community:HowIndexingWorks"&gt;https://wiki.splunk.com/Community:HowIndexingWorks&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 23:32:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464223#M80051</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2019-08-26T23:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why are JSON fields extracted and displayed twice?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464224#M80052</link>
      <description>&lt;P&gt;Correct. I tried below as well on SH.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_sourcetype]
 KV_MODE=none
 AUTO_KV_JSON = false
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Aug 2019 23:34:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464224#M80052</guid>
      <dc:creator>thirusama</dc:creator>
      <dc:date>2019-08-26T23:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why are JSON fields extracted and displayed twice?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464225#M80053</link>
      <description>&lt;P&gt;try to run a btool to check whatever is also being used with you sourcetype&lt;BR /&gt;
in CLI &lt;CODE&gt;splunk btool props list --debug my_sourcetype&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 23:42:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464225#M80053</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2019-08-26T23:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why are JSON fields extracted and displayed twice?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464226#M80054</link>
      <description>&lt;P&gt;It shows this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    [root@lgpbdus4101 bin]# ./splunk btool props list --debug my_sourcetype
/data/splunk/etc/apps/my_app/local/props.conf [my_sourcetype]
/data/splunk/etc/system/default/props.conf           ADD_EXTRA_TIME_FIELDS = True
/data/splunk/etc/system/default/props.conf           ANNOTATE_PUNCT = True
/data/splunk/etc/apps/my_app/local/props.conf AUTO_KV_JSON = false
/data/splunk/etc/system/default/props.conf           BREAK_ONLY_BEFORE =
/data/splunk/etc/system/default/props.conf           BREAK_ONLY_BEFORE_DATE = True
/data/splunk/etc/system/default/props.conf           CHARSET = UTF-8
/data/splunk/etc/system/default/props.conf           DATETIME_CONFIG = /etc/datetime.xml
/data/splunk/etc/system/default/props.conf           DEPTH_LIMIT = 1000
/data/splunk/etc/system/default/props.conf           HEADER_MODE =
/data/splunk/etc/apps/my_app/local/props.conf KV_MODE = none
/data/splunk/etc/system/default/props.conf           LEARN_MODEL = true
/data/splunk/etc/system/default/props.conf           LEARN_SOURCETYPE = true
/data/splunk/etc/system/default/props.conf           LINE_BREAKER_LOOKBEHIND = 100
/data/splunk/etc/system/default/props.conf           MATCH_LIMIT = 100000
/data/splunk/etc/system/default/props.conf           MAX_DAYS_AGO = 2000
/data/splunk/etc/system/default/props.conf           MAX_DAYS_HENCE = 2
/data/splunk/etc/system/default/props.conf           MAX_DIFF_SECS_AGO = 3600
/data/splunk/etc/system/default/props.conf           MAX_DIFF_SECS_HENCE = 604800
/data/splunk/etc/system/default/props.conf           MAX_EVENTS = 256
/data/splunk/etc/system/default/props.conf           MAX_TIMESTAMP_LOOKAHEAD = 128
/data/splunk/etc/system/default/props.conf           MUST_BREAK_AFTER =
/data/splunk/etc/system/default/props.conf           MUST_NOT_BREAK_AFTER =
/data/splunk/etc/system/default/props.conf           MUST_NOT_BREAK_BEFORE =
/data/splunk/etc/system/default/props.conf           SEGMENTATION = indexing
/data/splunk/etc/system/default/props.conf           SEGMENTATION-all = full
/data/splunk/etc/system/default/props.conf           SEGMENTATION-inner = inner
/data/splunk/etc/system/default/props.conf           SEGMENTATION-outer = outer
/data/splunk/etc/system/default/props.conf           SEGMENTATION-raw = none
/data/splunk/etc/system/default/props.conf           SEGMENTATION-standard = standard
/data/splunk/etc/system/default/props.conf           SHOULD_LINEMERGE = True
/data/splunk/etc/system/default/props.conf           TRANSFORMS =
/data/splunk/etc/system/default/props.conf           TRUNCATE = 10000
/data/splunk/etc/system/default/props.conf           detect_trailing_nulls = false
/data/splunk/etc/system/default/props.conf           maxDist = 100
/data/splunk/etc/system/default/props.conf           priority =
/data/splunk/etc/system/default/props.conf           sourcetype =
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Aug 2019 23:59:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464226#M80054</guid>
      <dc:creator>thirusama</dc:creator>
      <dc:date>2019-08-26T23:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why are JSON fields extracted and displayed twice?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464227#M80055</link>
      <description>&lt;P&gt;Anyone has anymore clues as how to debug this?. I have also run the query on CM, there also I see the duplicate JSON values.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 18:51:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464227#M80055</guid>
      <dc:creator>thirusama</dc:creator>
      <dc:date>2019-08-27T18:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why are JSON fields extracted and displayed twice?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464228#M80056</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I also faced a similar issue a while ago.&lt;BR /&gt;
I believe the JSON rows are getting duplicated in the SH UI.&lt;/P&gt;

&lt;P&gt;Possibly, this is due to multiple JSON parsing for the source type due to splunk config file precedence.&lt;/P&gt;

&lt;P&gt;Kindly check on the btool configuration to troubleshoot the issue&lt;BR /&gt;
Use the below command to see the conf for source type.&lt;BR /&gt;
1)Go to your Splunk bin directory where your app resides.&lt;BR /&gt;
2) ./splunk btool props list --debug | grep "your source type"&lt;BR /&gt;
3)See if the JSON conf are coming from a higher precedence file.&lt;BR /&gt;
4)Set the KV_MODE=none and AUTO_KV_JSON=false based on this.&lt;/P&gt;

&lt;P&gt;Hope this helps!!&lt;/P&gt;

&lt;P&gt;dP&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:54:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464228#M80056</guid>
      <dc:creator>dindpau</dc:creator>
      <dc:date>2020-09-30T01:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why are JSON fields extracted and displayed twice?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464229#M80057</link>
      <description>&lt;P&gt;Thanks for your response.&lt;BR /&gt;
I checked above steps and props are coming/used from where I defined. They are same as what you mentioned in step-4. Still same issue.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$/opt/splunk/bin/splunk btool props list --debug | grep "my_sourcetype"
/data/splunk/etc/apps/my_app/local/props.conf            [my_sourcetype]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Aug 2019 17:04:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464229#M80057</guid>
      <dc:creator>thirusama</dc:creator>
      <dc:date>2019-08-28T17:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why are JSON fields extracted and displayed twice?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464230#M80058</link>
      <description>&lt;P&gt;This is the correct command &lt;CODE&gt;/opt/splunk/bin/splunk btool props list --debug my_sourcetype&lt;/CODE&gt;&lt;BR /&gt;
gripping the name of "my_sourcetype" will just show you the sourcetype stanza and not the attribute being applied to it&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 00:15:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464230#M80058</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2019-08-29T00:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why are JSON fields extracted and displayed twice?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464231#M80059</link>
      <description>&lt;P&gt;from where did you took this btool? UF, IDX, SH? check mainly in UF and IDX&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 00:17:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464231#M80059</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2019-08-29T00:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why are JSON fields extracted and displayed twice?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464232#M80060</link>
      <description>&lt;P&gt;I checked that on SH.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 16:47:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464232#M80060</guid>
      <dc:creator>thirusama</dc:creator>
      <dc:date>2019-08-29T16:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why are JSON fields extracted and displayed twice?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464233#M80061</link>
      <description>&lt;P&gt;We ended up doing below which works the way we want i.e. no duplicate json values.&lt;/P&gt;

&lt;P&gt;On UF, do NOT define any props.&lt;BR /&gt;
On Indexers, nothing specific to JSON props, but we had defined props related time field&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_sourcetype]
NO_BINARY_CHECK=true
CHARSET=UTF-8
MAX_TIMESTAMP_LOOKAHEAD=14000
TIME_PREFIX=timestamp":"?
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;On SH, do NOT define any props&lt;/P&gt;

&lt;P&gt;With this set up, The JSON values are by default extracted in Indexing layer. Because on Indexers, this property is set up in system/default location.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
AUTO_KV_JSON = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Aug 2019 16:53:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464233#M80061</guid>
      <dc:creator>thirusama</dc:creator>
      <dc:date>2019-08-29T16:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why are JSON fields extracted and displayed twice?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464234#M80062</link>
      <description>&lt;P&gt;We ended up doing below which works the way we want i.e. no duplicate json values.&lt;/P&gt;

&lt;P&gt;On UF, do NOT define any props.&lt;BR /&gt;
On Indexers, nothing specific to JSON props, but we had defined props related time field&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_sourcetype]
NO_BINARY_CHECK=true
CHARSET=UTF-8
MAX_TIMESTAMP_LOOKAHEAD=14000
TIME_PREFIX=timestamp":"?
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;On SH, do NOT define any props&lt;/P&gt;

&lt;P&gt;With this set up, The JSON values are by default extracted in Indexing layer. Because on Indexers, this property is set up in system/default location.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
AUTO_KV_JSON = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Aug 2019 16:56:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-JSON-fields-extracted-and-displayed-twice/m-p/464234#M80062</guid>
      <dc:creator>thirusama</dc:creator>
      <dc:date>2019-08-29T16:56:46Z</dc:date>
    </item>
  </channel>
</rss>

