<?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 How to extract time log from JSON data for event _time? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-time-log-from-JSON-data-for-event-time/m-p/337664#M62350</link>
    <description>&lt;P&gt;Team,&lt;/P&gt;

&lt;P&gt;In my JSON data, there is below line which I want to be my event time (_time). &lt;/P&gt;

&lt;P&gt;"eventDateTime" : "2017-24-08T05:19:54.500-05:00",&lt;/P&gt;

&lt;P&gt;My props.conf has below entry. I am not sure what to write for last (-05:00). Please help.&lt;/P&gt;

&lt;P&gt;TIME_FORMAT=%Y-%d-%mT%H:%M:%S.3N&lt;BR /&gt;
TIME_PREFIX="eventDateTime" :&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 16:30:59 GMT</pubDate>
    <dc:creator>anantdeshpande</dc:creator>
    <dc:date>2020-09-29T16:30:59Z</dc:date>
    <item>
      <title>How to extract time log from JSON data for event _time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-time-log-from-JSON-data-for-event-time/m-p/337664#M62350</link>
      <description>&lt;P&gt;Team,&lt;/P&gt;

&lt;P&gt;In my JSON data, there is below line which I want to be my event time (_time). &lt;/P&gt;

&lt;P&gt;"eventDateTime" : "2017-24-08T05:19:54.500-05:00",&lt;/P&gt;

&lt;P&gt;My props.conf has below entry. I am not sure what to write for last (-05:00). Please help.&lt;/P&gt;

&lt;P&gt;TIME_FORMAT=%Y-%d-%mT%H:%M:%S.3N&lt;BR /&gt;
TIME_PREFIX="eventDateTime" :&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:30:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-time-log-from-JSON-data-for-event-time/m-p/337664#M62350</guid>
      <dc:creator>anantdeshpande</dc:creator>
      <dc:date>2020-09-29T16:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract time log from JSON data for event _time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-time-log-from-JSON-data-for-event-time/m-p/337665#M62351</link>
      <description>&lt;P&gt;HI anantdeshpande,&lt;BR /&gt;
-05.00 is the timezone, put %z at the end of your TIME_FORMAT&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT=%Y-%d-%mT%H:%M:%S.3N-%z
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Check if brackets are in or out of your time field.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 12:04:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-time-log-from-JSON-data-for-event-time/m-p/337665#M62351</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-10-30T12:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract time log from JSON data for event _time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-time-log-from-JSON-data-for-event-time/m-p/337666#M62352</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;%Y-%d-%mT%H:%M:%S%3N%:z
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;try that. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Commontimeformatvariables"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Commontimeformatvariables&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 12:05:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-time-log-from-JSON-data-for-event-time/m-p/337666#M62352</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-10-30T12:05:17Z</dc:date>
    </item>
  </channel>
</rss>

