<?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: How to parse JSON timestamp in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-JSON-timestamp/m-p/591300#M103568</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Changing TIME_PREFIX to match your pattern did not change the results.&lt;/P&gt;&lt;P&gt;My props.conf is located at etc\system\local. I'm editing it through the web GUI.&lt;/P&gt;&lt;P&gt;I do not know what a Universal Forwarder, Indexer, or Heavy Forwarder is. I just downloaded Splunk yesterday so this is all new to me.&lt;/P&gt;&lt;P&gt;What's strange is that I was sure when reading through other community questions that Splunk usually outputs some kind of error message when it can't parse a log file, but I get nothing. Just a blank panel in the GUI. It obviously refreshes when I click Apply Settings, since the column tabs briefly flash on the screen, but then it goes back to being blank. I've restarted Splunk and nothing seems to work as expected.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2022 16:18:05 GMT</pubDate>
    <dc:creator>rchapman2x</dc:creator>
    <dc:date>2022-03-29T16:18:05Z</dc:date>
    <item>
      <title>How to parse JSON timestamp?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-JSON-timestamp/m-p/591174#M103549</link>
      <description>&lt;P&gt;Here's my json example file, log.json:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;{"ts":"2022-01-01 01:22:34","message":"test4"}
{"ts":"2022-01-01 01:22:35","message":"test5"}
{"ts":"2022-01-01 01:22:36","message":"test6"}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here's a props.conf that at least parses the json:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[ json_test ]
DATETIME_CONFIG=CURRENT
INDEXED_EXTRACTIONS=json
NO_BINARY_CHECK=true
SHOULD_LINEMERGE=false&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I try to get "ts" to be parsed as the timestamp, it fails completely:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[ json_test ]
CHARSET=UTF-8
DATETIME_CONFIG=None
INDEXED_EXTRACTIONS=json
NO_BINARY_CHECK=true
SHOULD_LINEMERGE=false
TIME_FORMAT=%Y-%m-%d %H:%M:%S
TIMESTAMP_FIELDS=ts
TZ = America/Los_Angeles&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've also tried adding TIME_PREFIX = "ts":", but again, it does nothing (and turns blue in the Add Data dialog, which I think means there's something wrong).&lt;/P&gt;
&lt;P&gt;Any idea what I'm missing?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 16:20:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-JSON-timestamp/m-p/591174#M103549</guid>
      <dc:creator>rchapman2x</dc:creator>
      <dc:date>2022-03-29T16:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse JSON timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-JSON-timestamp/m-p/591191#M103555</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244351"&gt;@rchapman2x&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;please modify your TIME_PREFIX in this way:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TIME_PREFIX = \{\"ts\":\"&lt;/LI-CODE&gt;&lt;P&gt;{ and " are special chars and you have to escape them.&lt;/P&gt;&lt;P&gt;Then, where do you located props.conf?&lt;/P&gt;&lt;P&gt;they must be on the Universal Forwarder (if present) and on the Indexers or (when present) on Heavy Forwarders.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 07:00:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-JSON-timestamp/m-p/591191#M103555</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-03-29T07:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse JSON timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-JSON-timestamp/m-p/591195#M103556</link>
      <description>&lt;P&gt;I checked with your settings and it seems to work&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PickleRick_0-1648537994407.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/18805i34E3C1B8DB5C5EA2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PickleRick_0-1648537994407.png" alt="PickleRick_0-1648537994407.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Mind you that you're using indexed extractions so you're not seeing json structure but extracted fields. Also the _time field value is consistent with the ts field value.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 07:14:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-JSON-timestamp/m-p/591195#M103556</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-03-29T07:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse JSON timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-JSON-timestamp/m-p/591300#M103568</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Changing TIME_PREFIX to match your pattern did not change the results.&lt;/P&gt;&lt;P&gt;My props.conf is located at etc\system\local. I'm editing it through the web GUI.&lt;/P&gt;&lt;P&gt;I do not know what a Universal Forwarder, Indexer, or Heavy Forwarder is. I just downloaded Splunk yesterday so this is all new to me.&lt;/P&gt;&lt;P&gt;What's strange is that I was sure when reading through other community questions that Splunk usually outputs some kind of error message when it can't parse a log file, but I get nothing. Just a blank panel in the GUI. It obviously refreshes when I click Apply Settings, since the column tabs briefly flash on the screen, but then it goes back to being blank. I've restarted Splunk and nothing seems to work as expected.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 16:18:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-JSON-timestamp/m-p/591300#M103568</guid>
      <dc:creator>rchapman2x</dc:creator>
      <dc:date>2022-03-29T16:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse JSON timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-JSON-timestamp/m-p/591301#M103569</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I'm glad it works for you. Unfortunately all I get is a blank screen.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 16:19:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-JSON-timestamp/m-p/591301#M103569</guid>
      <dc:creator>rchapman2x</dc:creator>
      <dc:date>2022-03-29T16:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse JSON timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-JSON-timestamp/m-p/591305#M103571</link>
      <description>&lt;P&gt;There must therefore be some difference between what you showed and your effective config. Check your settings with btool&lt;/P&gt;&lt;PRE&gt;splunk btool props list json_test --debug&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Mar 2022 16:39:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-JSON-timestamp/m-p/591305#M103571</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-03-29T16:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse JSON timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-JSON-timestamp/m-p/591306#M103572</link>
      <description>&lt;P&gt;I figured it out. After restarting splunk, it informed me that there was an issue with datetime.xml. So I found a copy on Splunk's website, downloaded it, replaced my datetime.xml, and restarted the splunk daemon. That fixed the issue. Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 16:43:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-JSON-timestamp/m-p/591306#M103572</guid>
      <dc:creator>rchapman2x</dc:creator>
      <dc:date>2022-03-29T16:43:34Z</dc:date>
    </item>
  </channel>
</rss>

