<?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: JSON is being cut off at &amp;quot;created&amp;quot; key in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/JSON-is-being-cut-off-at-quot-created-quot-key/m-p/448603#M77973</link>
    <description>&lt;P&gt;Hi, to make sure it is not  a timestamp parsing issue, you can add the &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; DATETIME_CONFIG = CURRENT
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to the &lt;STRONG&gt;props.conf&lt;/STRONG&gt;. That will set the timestamp to the indexed time. If the events are still breaking I would look at the sourcetype configuration. You can also try to set the &lt;CODE&gt;TIME_PREFIX = "created :"&lt;/CODE&gt; to set the timestamp field. &lt;/P&gt;

&lt;P&gt;It might be a good idea to add the &lt;BR /&gt;
     INDEXED_EXTRACTIONS = json&lt;BR /&gt;&lt;BR /&gt;
to the props.conf make sure the Json is parsed correctly. &lt;/P&gt;

&lt;P&gt;If all fails. I usually take a sample of the json logs and use the data import in the gui to make sure that the data is being parsed correctly. It will give you instant feedback and you have the possibility to set the props specs. &lt;/P&gt;</description>
    <pubDate>Wed, 25 Jul 2018 12:55:56 GMT</pubDate>
    <dc:creator>YoungDaniel</dc:creator>
    <dc:date>2018-07-25T12:55:56Z</dc:date>
    <item>
      <title>JSON is being cut off at "created" key</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-is-being-cut-off-at-quot-created-quot-key/m-p/448600#M77970</link>
      <description>&lt;P&gt;I've got a pretty strange issue, and I'm sure there is a simple answer for it. Here is my env:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;7.1.2&lt;/LI&gt;
&lt;LI&gt;All default configs, but the inputs.conf which contains&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;[monitor:///Users/MYUSER/splunk_messages]&lt;BR /&gt;
index = test&lt;BR /&gt;
sourcetype = json&lt;/P&gt;

&lt;P&gt;When I update the splunk_messages file with the following JSON, it's cutting it off right before "created":&lt;/P&gt;

&lt;P&gt;{&lt;BR /&gt;
  "Data": {&lt;BR /&gt;
    "id": "-LGDT2S8qYVIJvqoLJwC",&lt;BR /&gt;
    "created": "2018-06-30T02:14:18Z",&lt;BR /&gt;
    "expires": "2018-07-01T02:14:18Z",&lt;BR /&gt;
    "status": "WAITING",&lt;BR /&gt;
    "completed": 0,&lt;BR /&gt;
    "reason": "NONE"&lt;BR /&gt;
  }&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;The result is &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/5389i3FC8456228AD075D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
There are no other events after or before this event. It's not like it's splitting the event.&lt;/P&gt;

&lt;P&gt;I then remove "created" key and value and the full JSON event shows:&lt;/P&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/5390iF5DA833159CAB5FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Does anyone know what could be causing this? I've been looking through the default conf files and can't find anything to cause this. Maybe it's a default behavior of splunk and I'm not seeing it in the docs.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 14:47:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-is-being-cut-off-at-quot-created-quot-key/m-p/448600#M77970</guid>
      <dc:creator>helius</dc:creator>
      <dc:date>2018-07-19T14:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: JSON is being cut off at "created" key</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-is-being-cut-off-at-quot-created-quot-key/m-p/448601#M77971</link>
      <description>&lt;P&gt;Hello @helius,&lt;/P&gt;

&lt;P&gt;Just guessing here, but it probably comes from the fact that the timestamp recognition  of the event changes if you remove the line containing created, according to your screenshots.&lt;/P&gt;

&lt;P&gt;In case your set of json events share the 'created' key, please try to set the TIME_PREFIX of the sourcetype.&lt;/P&gt;

&lt;P&gt;I hope this helps&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 17:00:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-is-being-cut-off-at-quot-created-quot-key/m-p/448601#M77971</guid>
      <dc:creator>poete</dc:creator>
      <dc:date>2018-07-19T17:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: JSON is being cut off at "created" key</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-is-being-cut-off-at-quot-created-quot-key/m-p/448602#M77972</link>
      <description>&lt;P&gt;Tried that and also MAX_TIMESTAMP_LOOKAHEAD = 0. No difference after a restart.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:31:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-is-being-cut-off-at-quot-created-quot-key/m-p/448602#M77972</guid>
      <dc:creator>helius</dc:creator>
      <dc:date>2020-09-29T20:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: JSON is being cut off at "created" key</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-is-being-cut-off-at-quot-created-quot-key/m-p/448603#M77973</link>
      <description>&lt;P&gt;Hi, to make sure it is not  a timestamp parsing issue, you can add the &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; DATETIME_CONFIG = CURRENT
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to the &lt;STRONG&gt;props.conf&lt;/STRONG&gt;. That will set the timestamp to the indexed time. If the events are still breaking I would look at the sourcetype configuration. You can also try to set the &lt;CODE&gt;TIME_PREFIX = "created :"&lt;/CODE&gt; to set the timestamp field. &lt;/P&gt;

&lt;P&gt;It might be a good idea to add the &lt;BR /&gt;
     INDEXED_EXTRACTIONS = json&lt;BR /&gt;&lt;BR /&gt;
to the props.conf make sure the Json is parsed correctly. &lt;/P&gt;

&lt;P&gt;If all fails. I usually take a sample of the json logs and use the data import in the gui to make sure that the data is being parsed correctly. It will give you instant feedback and you have the possibility to set the props specs. &lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 12:55:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-is-being-cut-off-at-quot-created-quot-key/m-p/448603#M77973</guid>
      <dc:creator>YoungDaniel</dc:creator>
      <dc:date>2018-07-25T12:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: JSON is being cut off at "created" key</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-is-being-cut-off-at-quot-created-quot-key/m-p/448604#M77974</link>
      <description>&lt;P&gt;Finally figured this out.&lt;/P&gt;

&lt;P&gt;The entire log wasn't just JSON. It was a mix of text and JSON ON DIFFERENT LINES:&lt;/P&gt;

&lt;PRE&gt;2018-07-25 00:00:04,169 DEBUG [1532476571629] [49] Coral job status response: {
  "Data": {
    "id": "-LIDiA9URgCSYRGHoIPj",
    "created": "2018-07-24T23:56:08Z",
    "expires": "2018-07-25T23:56:08Z",
    "status": "PROCESSING",
    "completed": 1,
    "reason": "NONE"
  }
}&lt;/PRE&gt;

&lt;P&gt;The suggestions by YoungDaniel was helpful, but it was only working if it was pure JSON all on one line.&lt;BR /&gt;
I had a suspicion that MAX_TIMESTAMP_LOOKAHEAD was the real culprit here. Setting &lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD = 1&lt;/CODE&gt; seems to be working!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:38:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-is-being-cut-off-at-quot-created-quot-key/m-p/448604#M77974</guid>
      <dc:creator>helius</dc:creator>
      <dc:date>2020-09-29T20:38:39Z</dc:date>
    </item>
  </channel>
</rss>

