<?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: Not all field values are extracted for long JSON files in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-are-not-all-field-values-are-extracted-for-long-JSON-files/m-p/573853#M199983</link>
    <description>&lt;P&gt;I have the similar kind of issue where we are ingesting the logs from mulesoft cloud to Splunk cloud via HEC.there are few Json payloads which are so heavy close to 2 million bytes.we have set the truncate limit to 4,50,000 bytes instead of 0 since splunk said it is not recommendable to keep it to 0.&lt;/P&gt;&lt;P&gt;Since these heavy payloads are nested json, we are seeing line breaking issues as well along with truncation of event, Is this something can be fixed by changing any settings?&lt;/P&gt;&lt;P&gt;Any help on this would be highly appreciated.&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/120335"&gt;@wu_weidong&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Nov 2021 19:26:06 GMT</pubDate>
    <dc:creator>Roy_9</dc:creator>
    <dc:date>2021-11-05T19:26:06Z</dc:date>
    <item>
      <title>Why are not all field values are extracted for long JSON files?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-not-all-field-values-are-extracted-for-long-JSON-files/m-p/573446#M199832</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to ingest long JSON files into my Splunk index, where a record could contain more than 10000 characters. To prevent long records from getting truncated, I added a "TRUNCATE=0" into my props.conf, and the entire record was ingested into the index.&amp;nbsp;All events are forwarded and stored in the index, but I'm having problems with fields that appear towards the end of the JSON records.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm currently testing with 2 files:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;File A has 382 records, of which 166 are long records.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;File B has 252 records, of which all are long records.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;All 634 events are returned with a simple search of the index, and I can see all fields in each event, regardless of how long the event is.&lt;/P&gt;
&lt;P&gt;However, not all fields are extracted and directly searchable. For example, one of the fields is called "name", and it appears towards the end of each JSON record.&amp;nbsp;On the "Interesting fields" pane, under "name", it shows only a count of 216 events from File A, and none of the remaining 166 + 252 long events in Files A and B. This is the same for other fields that appear towards the end of each JSON record, but fields towards the beginning of the record show all 634 events.&lt;/P&gt;
&lt;P&gt;If I negate the 216 events, then these fields do not appear on the Fields pane at all.&lt;/P&gt;
&lt;P&gt;Also, while I'm not able to directly search for "name=&amp;lt;name in File B&amp;gt;", I can still select the field from the event and "add to search", and all 252 events would be returned.&lt;/P&gt;
&lt;P&gt;I'm not sure why these fields are not properly extracted even though they did not appear to be truncated. How can I extract them properly?&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 17:20:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-not-all-field-values-are-extracted-for-long-JSON-files/m-p/573446#M199832</guid>
      <dc:creator>wu_weidong</dc:creator>
      <dc:date>2022-05-23T17:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Not all field values are extracted for long JSON files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-not-all-field-values-are-extracted-for-long-JSON-files/m-p/573459#M199839</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;did these help you?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/INDEXED-EXTRACTIONS-JSON-limiting-multivalued-fields-to-10/td-p/279893" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/INDEXED-EXTRACTIONS-JSON-limiting-multivalued-fields-to-10/td-p/279893&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Splunk-Cloud-Increase-limit-in-field-extraction-from-JSON/td-p/397477" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/Splunk-Cloud-Increase-limit-in-field-extraction-from-JSON/td-p/397477&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Parsing-very-long-JSON-lines/m-p/189341" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/Parsing-very-long-JSON-lines/m-p/189341&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;There are some limits to amount of records etc. Just check those and if needed proper configuration file documentation too.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 10:06:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-not-all-field-values-are-extracted-for-long-JSON-files/m-p/573459#M199839</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-11-03T10:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Not all field values are extracted for long JSON files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-not-all-field-values-are-extracted-for-long-JSON-files/m-p/573757#M199951</link>
      <description>&lt;P&gt;Thanks for the suggestions! While the 3 posts didn't specifically solve my problem, they did lead me to look at the settings in limits.conf (&lt;A href="https://community.splunk.com/t5/Getting-Data-In/advice-for-when-you-have-more-than-100-automatically-extracted/m-p/115951" target="_self"&gt;post here&lt;/A&gt;&amp;nbsp;), and I was able to extract all fields from my long JSON records by changing some of the settings.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I modified $SPLUNK_HOME/etc/system/local/limits.conf to&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;[kv]
limit = 0&lt;BR /&gt;indexed_kv_limit = 0
maxcols = 100000
maxchars = 1500000&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;Now I'm wondering if there's any issue with setting such high values.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 07:11:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-not-all-field-values-are-extracted-for-long-JSON-files/m-p/573757#M199951</guid>
      <dc:creator>wu_weidong</dc:creator>
      <dc:date>2021-11-05T07:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Not all field values are extracted for long JSON files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-not-all-field-values-are-extracted-for-long-JSON-files/m-p/573850#M199982</link>
      <description>Good to hear that it works now!&lt;BR /&gt;&lt;BR /&gt;As you increased those values, it’s meaning more resource usage like memory, you should follow up if there are any weird behavior. Basically it shouldn’t do anything special as those limits are still quite reasonable.</description>
      <pubDate>Fri, 05 Nov 2021 19:16:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-not-all-field-values-are-extracted-for-long-JSON-files/m-p/573850#M199982</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-11-05T19:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Not all field values are extracted for long JSON files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-not-all-field-values-are-extracted-for-long-JSON-files/m-p/573853#M199983</link>
      <description>&lt;P&gt;I have the similar kind of issue where we are ingesting the logs from mulesoft cloud to Splunk cloud via HEC.there are few Json payloads which are so heavy close to 2 million bytes.we have set the truncate limit to 4,50,000 bytes instead of 0 since splunk said it is not recommendable to keep it to 0.&lt;/P&gt;&lt;P&gt;Since these heavy payloads are nested json, we are seeing line breaking issues as well along with truncation of event, Is this something can be fixed by changing any settings?&lt;/P&gt;&lt;P&gt;Any help on this would be highly appreciated.&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/120335"&gt;@wu_weidong&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 19:26:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-not-all-field-values-are-extracted-for-long-JSON-files/m-p/573853#M199983</guid>
      <dc:creator>Roy_9</dc:creator>
      <dc:date>2021-11-05T19:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Not all field values are extracted for long JSON files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-not-all-field-values-are-extracted-for-long-JSON-files/m-p/573953#M200022</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224632"&gt;@Roy_9&lt;/a&gt;&amp;nbsp;My JSON records are all flattened to a single line, e.g. {"name": "John.Smith", "phone": "1234567"}, and I have a "LINE_BREAKER = ([\r\n]+)" in my props.conf under the stanza for my sourcetype. Not sure if that helps.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 01:56:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-not-all-field-values-are-extracted-for-long-JSON-files/m-p/573953#M200022</guid>
      <dc:creator>wu_weidong</dc:creator>
      <dc:date>2021-11-08T01:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Not all field values are extracted for long JSON files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-not-all-field-values-are-extracted-for-long-JSON-files/m-p/598941#M208526</link>
      <description>&lt;P&gt;Hi all&lt;BR /&gt;We have a similar problem. We read k8s-logs coming from fluentd and HEC into splunk. There is a message-field in the json, which can be a very long string. Using rex, it is possible to extract the field form json, but without this message and all following fields in _raw stay undefined (isnull(...) is true).&lt;/P&gt;&lt;P&gt;I tested several settings, including&amp;nbsp;/opt/splunk/etc/system/local/limits.conf with the following content:&lt;/P&gt;&lt;PRE&gt;[realtime]&lt;BR /&gt;indexed_realtime_use_by_default = true&lt;BR /&gt;&lt;BR /&gt;[spath]&lt;BR /&gt;extract_all = true&lt;BR /&gt;#number of characters to read from an XML or JSON event when auto extracting&lt;BR /&gt;extraction_cutoff = 50000&lt;BR /&gt;&lt;BR /&gt;[kv]&lt;BR /&gt;maxchars = 1500000&lt;BR /&gt;limit = 0&lt;BR /&gt;indexed_kv_limit = 0&lt;BR /&gt;maxcols = 100000&lt;BR /&gt;&lt;BR /&gt;[rex]&lt;BR /&gt;match_limit = 500000&lt;/PRE&gt;&lt;P&gt;Any idea how to solve this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Matthias&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 17:03:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-not-all-field-values-are-extracted-for-long-JSON-files/m-p/598941#M208526</guid>
      <dc:creator>cssmdi</dc:creator>
      <dc:date>2022-05-23T17:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Not all field values are extracted for long JSON files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-not-all-field-values-are-extracted-for-long-JSON-files/m-p/684939#M233754</link>
      <description>&lt;P&gt;Hi.&lt;BR /&gt;&lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;limits.conf&lt;/STRONG&gt;&lt;/U&gt; &lt;/EM&gt;on &lt;STRONG&gt;Indexers&lt;/STRONG&gt; or simple on &lt;STRONG&gt;SearchHead(s)&lt;/STRONG&gt;? Or better both?&lt;BR /&gt;&lt;BR /&gt;EDIT: better on Indexers side, since&lt;/P&gt;&lt;PRE&gt;limit =&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;is for SearchTime from SH to Indexer peer, and 100 is default limit &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I also had this "problem" with a ~150 fields JSON, and a simple,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;[kv]
limit = 0&lt;BR /&gt;indexed_kv_limit = 0
maxcols = 512
maxchars = 102400&lt;/PRE&gt;&lt;P&gt;Solved Indexer(s) side &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;Thanks for the trick &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 09:11:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-not-all-field-values-are-extracted-for-long-JSON-files/m-p/684939#M233754</guid>
      <dc:creator>verbal_666</dc:creator>
      <dc:date>2024-04-22T09:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Not all field values are extracted for long JSON files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-not-all-field-values-are-extracted-for-long-JSON-files/m-p/700973#M237811</link>
      <description>&lt;P&gt;We also had some inconsistencies with these field extractions. Figured out that we needed to push the new limits configuration to the indexers, as well as the search head. Only pushing to the search head will work if you have a centralizing command before the spath field extraction, but not for streaming field extractions.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 12:13:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-not-all-field-values-are-extracted-for-long-JSON-files/m-p/700973#M237811</guid>
      <dc:creator>hettervik</dc:creator>
      <dc:date>2024-10-04T12:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Not all field values are extracted for long JSON files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-not-all-field-values-are-extracted-for-long-JSON-files/m-p/755437#M242936</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/28550"&gt;@verbal_666&lt;/a&gt;&amp;nbsp; on a Splunk distributed or cluster, did you apply on HF, SHC or IDX side(s) then? In our case we receive json logs from HF.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;what do you think?&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 16:49:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-not-all-field-values-are-extracted-for-long-JSON-files/m-p/755437#M242936</guid>
      <dc:creator>splunkreal</dc:creator>
      <dc:date>2025-11-12T16:49:20Z</dc:date>
    </item>
  </channel>
</rss>

