<?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 define timestamp in props.conf for thes json event in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-define-timestamp-in-props-conf-for-the-JSON-event/m-p/507294#M86319</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The TIME_FORMAT you provided doesn't work for me.&lt;/P&gt;&lt;P&gt;My timestamp in data looks like:&amp;nbsp;&lt;SPAN class="field-val"&gt;2020-07-02T18:00:18+02:00 with name log_modified_date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;i have written below props.conf:&lt;/P&gt;&lt;P&gt;[_json]&lt;BR /&gt;INDEXED_EXTRACTIONS = json&lt;BR /&gt;KV_MODE = none&lt;BR /&gt;AUTO_KV_JSON = false&lt;BR /&gt;NO_BINARY_CHECK = true&lt;BR /&gt;SHOULD_LINEMERGE = false&lt;BR /&gt;TIMESTAMP_FIELDS = last_modified_date&lt;BR /&gt;TIME_FORMAT = %Y-%m-%dT%H:%M:%S+%2N:%2N&lt;BR /&gt;MAX_TIMESTAMP_LOOKAHEAD = 25&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and getting time extracted as :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;7/2/20&lt;BR /&gt;6:00:18.020 PM &lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the time field extracted in same way as in data with + value as well like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;7/2/20&lt;BR /&gt;6:00:18+02:00 PM&amp;nbsp; &amp;nbsp; something like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please let me know what i am doing wrong as i am not getting expected output.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jul 2020 19:47:44 GMT</pubDate>
    <dc:creator>abhinav_bel</dc:creator>
    <dc:date>2020-07-03T19:47:44Z</dc:date>
    <item>
      <title>How to define timestamp in props.conf for the JSON event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-define-timestamp-in-props-conf-for-the-JSON-event/m-p/210201#M41394</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a sample json file where I have to index the time. I created the stanza at props.conf.&lt;/P&gt;

&lt;P&gt;{"readIOps":0.0,"writeIOps":0.0,"otherIOps":0.0,"combinedIOps":0.0,"readThroughput":0.0,"writeThroughput":0.0,"combinedThroughput":0.0,"readResponseTime":0.0,"writeResponseTime":0.0,"combinedResponseTime":0.0,"volumeId":"0200000060080E500029094000009209525E8C08","volumeName":"VC-g0003v0011-H2","readPhysicalIOps":0.0,"writePhysicalIOps":0.0,"observedTime":"2015-07-25T22:07:34.000+0000"}&lt;BR /&gt;
{"readIOps":0.0,"writeIOps":0.0,"otherIOps":0.0,"combinedIOps":0.0,"readThroughput":0.0,"writeThroughput":0.0,"combinedThroughput":0.0,"readResponseTime":0.0,"writeResponseTime":0.0,"combinedResponseTime":0.0,"volumeId":"0200000060080E500029094000009494525EB56B","volumeName":"dp0012v0044","readPhysicalIOps":0.0,"writePhysicalIOps":0.0,"observedTime":"2015-07-25T22:07:34.000+0000"}&lt;/P&gt;

&lt;P&gt;[santa-banta]&lt;BR /&gt;
&lt;STRONG&gt;INDEXED_EXTRACTIONS = json&lt;/STRONG&gt;&lt;BR /&gt;
TIME_PREFIX = "observedTime\":\"&lt;BR /&gt;
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3N+%4N&lt;BR /&gt;
&lt;STRONG&gt;MAX_TIMESTAMP_LOOKAHEAD =&lt;BR /&gt;
LINE_BREAKER =&lt;/STRONG&gt;&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TRUNCATE = 0&lt;/P&gt;

&lt;P&gt;Questions:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Is it compulsory to use LINE_BREAKER and MAX_TIMESTAMP_LOOKAHEAD at here, if INDEXED_EXTRACTION is defined as json ?&lt;/LI&gt;
&lt;LI&gt;If I do not wish to put INDEXED_EXTRACTIONS = json, what I have to put at LINE_BREAKER and MAX_TIMESTAMP_LOOKAHEAD ?&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Highly appreciate if anyone guide on this.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:13:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-define-timestamp-in-props-conf-for-the-JSON-event/m-p/210201#M41394</guid>
      <dc:creator>princemanto2580</dc:creator>
      <dc:date>2020-09-29T12:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to define timestamp in props.conf for thes json event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-define-timestamp-in-props-conf-for-the-JSON-event/m-p/210202#M41395</link>
      <description>&lt;P&gt;Following should work for you, &lt;/P&gt;

&lt;P&gt;1) LINE_BREAKER is not required since you have SHOULD_LINEMERGE turned off, which means each line will be a new event. &lt;BR /&gt;
2) MAX_TIMESTAMP_LOOKAHEAD will look for number of characters defined to identify timestamp(in your case it is 28 characters after the TIME_PREFIX.&lt;BR /&gt;
3) The same props.conf for your sourcetype should work for you even without INDEXED_EXTRACTIONS=json, only difference would be that automatic field extractions will not occur for JSON fields. &lt;/P&gt;

&lt;P&gt;PS: There are several other props.conf properties which can be set for Timestamp and event extractions. like BREAK_ONLY_BEFORE, BREAK_ONLY_AFTER etc. Refer to the following documentation: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/Propsconf" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/admin/Propsconf&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;INDEXED_EXTRACTIONS =json
SHOULD_LINEMERGE=false
NO_BINARY_CHECK=true
TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%3N+%4N
TIME_PREFIX="observedTime":"
MAX_TIMESTAMP_LOOKAHEAD=28
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:14:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-define-timestamp-in-props-conf-for-the-JSON-event/m-p/210202#M41395</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T12:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to define timestamp in props.conf for thes json event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-define-timestamp-in-props-conf-for-the-JSON-event/m-p/507294#M86319</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The TIME_FORMAT you provided doesn't work for me.&lt;/P&gt;&lt;P&gt;My timestamp in data looks like:&amp;nbsp;&lt;SPAN class="field-val"&gt;2020-07-02T18:00:18+02:00 with name log_modified_date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;i have written below props.conf:&lt;/P&gt;&lt;P&gt;[_json]&lt;BR /&gt;INDEXED_EXTRACTIONS = json&lt;BR /&gt;KV_MODE = none&lt;BR /&gt;AUTO_KV_JSON = false&lt;BR /&gt;NO_BINARY_CHECK = true&lt;BR /&gt;SHOULD_LINEMERGE = false&lt;BR /&gt;TIMESTAMP_FIELDS = last_modified_date&lt;BR /&gt;TIME_FORMAT = %Y-%m-%dT%H:%M:%S+%2N:%2N&lt;BR /&gt;MAX_TIMESTAMP_LOOKAHEAD = 25&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and getting time extracted as :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;7/2/20&lt;BR /&gt;6:00:18.020 PM &lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the time field extracted in same way as in data with + value as well like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;7/2/20&lt;BR /&gt;6:00:18+02:00 PM&amp;nbsp; &amp;nbsp; something like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please let me know what i am doing wrong as i am not getting expected output.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 19:47:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-define-timestamp-in-props-conf-for-the-JSON-event/m-p/507294#M86319</guid>
      <dc:creator>abhinav_bel</dc:creator>
      <dc:date>2020-07-03T19:47:44Z</dc:date>
    </item>
  </channel>
</rss>

