<?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 extra value &amp;quot;none&amp;quot; timestamp field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/JSON-extra-value-quot-none-quot-timestamp-field/m-p/555182#M91973</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233896"&gt;@kwarre3036&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you can accept the solution for original problem that would be great.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The `_&lt;/SPAN&gt;&lt;STRONG&gt;indextime&lt;/STRONG&gt;&lt;SPAN&gt;` field contains the time that an event was indexed, expressed in Unix time. You might use this field to focus on or filter out events that were indexed within a specific range of time. The&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;_indextime&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;is a default field available, it's time when&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Splunk&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;writes the event to disk OR about to write to disk.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;_time is timestamp in your event, you have to check monitoring console of splunk to find the reason for delay in indexing or it could be you haven't set the TZ aka timezone correctly. Open a new post for this one.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;An upvote would be appreciated if it helps!&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jun 2021 21:02:22 GMT</pubDate>
    <dc:creator>venkatasri</dc:creator>
    <dc:date>2021-06-09T21:02:22Z</dc:date>
    <item>
      <title>JSON extra value "none" timestamp field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-extra-value-quot-none-quot-timestamp-field/m-p/554915#M91927</link>
      <description>&lt;P&gt;I am attempting to index and search JSON logs and each event contains an extra value ("none") for timestamp that I would like to eliminate.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my inputs.conf&lt;/P&gt;&lt;P&gt;[monitor:///home/username/json_test.log]&lt;BR /&gt;index = index_name&lt;BR /&gt;source = json_test.log&lt;BR /&gt;sourcetype = json_kwarre_v3&lt;BR /&gt;host = myhostname&lt;/P&gt;&lt;P&gt;Here is my&amp;nbsp; props.conf&lt;/P&gt;&lt;P&gt;[json_kwarre_v3]&lt;BR /&gt;BREAK_ONLY_BEFORE = ^{&lt;BR /&gt;MUST_BREAK_AFTER = }$&lt;BR /&gt;LINE_BREAKER = ^{&lt;BR /&gt;KV_MODE= json&lt;BR /&gt;NO_BINARY_CHECK = true&lt;BR /&gt;TIME_PREFIX = timestamp\"\:\ \"&lt;BR /&gt;TIME_FORMAT=%Y-%m-%dT%H:%M:%S:%3N&lt;BR /&gt;category = Structured&lt;BR /&gt;description = A variant of the JSON source type, with support for nonexistent timestamps&lt;BR /&gt;disabled = false&lt;BR /&gt;pulldown_type = true&lt;BR /&gt;BREAK_ONLY_BEFORE_DATE =&lt;/P&gt;&lt;P&gt;Below, I have pasted the json event from the log.&amp;nbsp; The event actually looks like one line in the log, but when pasted into the ticket it appears as several lines.&lt;/P&gt;&lt;P&gt;{"sessionId":"5b8d6d8d-8e63-413b-876e-34cfaa894676","service":"RAF","request":{"vendorId":"Digital","clientId":"2234567890g"},"response":{"vendorId":"Digital","clientId":"2234567890g","transactionStatus":"1000","transactionMessage":"Success"},"routing_time":"10","elapsedTime":"107","timestamp_begin":"2021-06-06T17:51:30.895Z","level":"info","message":"SUCCESS","timestamp":"2021-06-06T17:51:31.002Z"}&lt;/P&gt;&lt;P&gt;I have attached screenshot of my results.&amp;nbsp; The only unexpected result I would like to eliminate is the extra "none" associated with the timestamp field&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 14:06:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-extra-value-quot-none-quot-timestamp-field/m-p/554915#M91927</guid>
      <dc:creator>kwarre3036</dc:creator>
      <dc:date>2021-06-08T14:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: JSON extra value "none" timestamp field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-extra-value-quot-none-quot-timestamp-field/m-p/555005#M91944</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233896"&gt;@kwarre3036&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You shall correct the TIME_PREFIX as follows and retest. It's kind of weird could be a splunk bug its not supposed add value none to timestamp event field which is the original source for _time.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TIME_PREFIX = timestamp\"\:\"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;----------&lt;/P&gt;&lt;P&gt;An upvote would be appreciated if it helps!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 05:04:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-extra-value-quot-none-quot-timestamp-field/m-p/555005#M91944</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-06-09T05:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: JSON extra value "none" timestamp field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-extra-value-quot-none-quot-timestamp-field/m-p/555006#M91945</link>
      <description>&lt;P&gt;You shall correct your TIME_FORMAT as well.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%3N&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 09 Jun 2021 05:07:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-extra-value-quot-none-quot-timestamp-field/m-p/555006#M91945</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-06-09T05:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: JSON extra value "none" timestamp field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-extra-value-quot-none-quot-timestamp-field/m-p/555086#M91956</link>
      <description>&lt;P&gt;Making these two modifications to the props.conf did eliminate the value "none" in the timestamp field.&amp;nbsp; Now, my timestamp is being parsed and only one value is present.&amp;nbsp; This is good!&lt;/P&gt;&lt;P&gt;However, now my &lt;STRONG&gt;_time = timestamp&lt;/STRONG&gt; which is what you indicated in your note.&amp;nbsp; When I had the parameters set the other way, my &lt;STRONG&gt;_time = indextime&lt;/STRONG&gt;.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems now that I will need to run&amp;nbsp; " | eval indextime=strftime(_indextime,"%Y-%m-%d %H:%M:%S")" in order to see my indextime. This should not be an issue unless for some reason, my events have a large discrepancy between timestamp and indextime.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 13:09:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-extra-value-quot-none-quot-timestamp-field/m-p/555086#M91956</guid>
      <dc:creator>kwarre3036</dc:creator>
      <dc:date>2021-06-09T13:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: JSON extra value "none" timestamp field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-extra-value-quot-none-quot-timestamp-field/m-p/555182#M91973</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233896"&gt;@kwarre3036&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you can accept the solution for original problem that would be great.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The `_&lt;/SPAN&gt;&lt;STRONG&gt;indextime&lt;/STRONG&gt;&lt;SPAN&gt;` field contains the time that an event was indexed, expressed in Unix time. You might use this field to focus on or filter out events that were indexed within a specific range of time. The&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;_indextime&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;is a default field available, it's time when&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Splunk&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;writes the event to disk OR about to write to disk.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;_time is timestamp in your event, you have to check monitoring console of splunk to find the reason for delay in indexing or it could be you haven't set the TZ aka timezone correctly. Open a new post for this one.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;An upvote would be appreciated if it helps!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 21:02:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-extra-value-quot-none-quot-timestamp-field/m-p/555182#M91973</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-06-09T21:02:22Z</dc:date>
    </item>
  </channel>
</rss>

