<?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 specify props.conf for EPOCH timestamp in JSON object in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-specify-props-conf-for-EPOCH-timestamp-in-JSON-object/m-p/156100#M31661</link>
    <description>&lt;P&gt;EPOCH_START_TIME=1434209641&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 20:15:59 GMT</pubDate>
    <dc:creator>ronak</dc:creator>
    <dc:date>2020-09-28T20:15:59Z</dc:date>
    <item>
      <title>how to specify props.conf for EPOCH timestamp in JSON object</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-specify-props-conf-for-EPOCH-timestamp-in-JSON-object/m-p/156093#M31654</link>
      <description>&lt;P&gt;I've events coming in JSON format with first part of the JSON data as &lt;EM&gt;EPOCH_START_TIME=8797994058574&lt;/EM&gt;   ...the events are sent on Universal forwarder on some port that absorbs these events. &lt;/P&gt;

&lt;P&gt;Question&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;How do I specify the props.conf to recognize this to be the timestamp for the event (so that Splunk does not add index time as timestamp)&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:15:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-specify-props-conf-for-EPOCH-timestamp-in-JSON-object/m-p/156093#M31654</guid>
      <dc:creator>ronak</dc:creator>
      <dc:date>2020-09-28T20:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to specify props.conf for EPOCH timestamp in JSON object</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-specify-props-conf-for-EPOCH-timestamp-in-JSON-object/m-p/156094#M31655</link>
      <description>&lt;P&gt;Are you sure that's an epoch timestamp? I'd expect ten digits starting with a one for second precision, or thirteen digits also starting with a one for millisecond precision.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/Epoch_time"&gt;https://en.wikipedia.org/wiki/Epoch_time&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jun 2015 08:45:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-specify-props-conf-for-EPOCH-timestamp-in-JSON-object/m-p/156094#M31655</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-06-14T08:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to specify props.conf for EPOCH timestamp in JSON object</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-specify-props-conf-for-EPOCH-timestamp-in-JSON-object/m-p/156095#M31656</link>
      <description>&lt;P&gt;Here are some props.conf settings. These would go in a local/props.conf on your indexers or heavy forwarders:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysourcetype]
TIME_PREFIX = EPOCH_START_TIME=
TIME_FORMAT = %s%4N
MAX_TIMESTAMP_LOOKAHEAD = 14
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jun 2015 13:11:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-specify-props-conf-for-EPOCH-timestamp-in-JSON-object/m-p/156095#M31656</guid>
      <dc:creator>dshpritz</dc:creator>
      <dc:date>2015-06-14T13:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to specify props.conf for EPOCH timestamp in JSON object</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-specify-props-conf-for-EPOCH-timestamp-in-JSON-object/m-p/156096#M31657</link>
      <description>&lt;P&gt;The problem is that your &lt;CODE&gt;timestamp&lt;/CODE&gt; is &lt;CODE&gt;epoch&lt;/CODE&gt; but it is in &lt;CODE&gt;milliseconds&lt;/CODE&gt;, not &lt;CODE&gt;seconds&lt;/CODE&gt;, which is why it looks funny and Splunk may not understand.  It could not the last time I tried it (which was a long time ago) so I pre-processed it by dividing by 1000.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jun 2015 14:10:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-specify-props-conf-for-EPOCH-timestamp-in-JSON-object/m-p/156096#M31657</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-14T14:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to specify props.conf for EPOCH timestamp in JSON object</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-specify-props-conf-for-EPOCH-timestamp-in-JSON-object/m-p/156097#M31658</link>
      <description>&lt;P&gt;Splunk has no problem whatsoever recognizing millisecond-precision epoch timestamps.&lt;/P&gt;

&lt;P&gt;This was indexed using a non-existing sourcetype, ie using Splunk's default settings:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://i.imgur.com/n0tIVBt.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Additionally, I doubt the question contains a millisecond-precision epoch timestamp - the example given would map to the year 2248. Not impossible, but quite unlikely indeed.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jun 2015 14:32:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-specify-props-conf-for-EPOCH-timestamp-in-JSON-object/m-p/156097#M31658</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-06-14T14:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to specify props.conf for EPOCH timestamp in JSON object</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-specify-props-conf-for-EPOCH-timestamp-in-JSON-object/m-p/156098#M31659</link>
      <description>&lt;P&gt;Splunk does support it, and has since at least v4. See my answer. If you specify your TIME_FORMAT to include them, then you will get them, using %s (time in seconds) + %&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jun 2015 14:37:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-specify-props-conf-for-EPOCH-timestamp-in-JSON-object/m-p/156098#M31659</guid>
      <dc:creator>dshpritz</dc:creator>
      <dc:date>2015-06-14T14:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to specify props.conf for EPOCH timestamp in JSON object</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-specify-props-conf-for-EPOCH-timestamp-in-JSON-object/m-p/156099#M31660</link>
      <description>&lt;P&gt;This would map the example timestamp to 1997 - if that's the correct interpretation you will also need to set this for &lt;CODE&gt;mysourcetype&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MAX_DAYS_AGO = 10000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;By default, Splunk will not accept timestamps older than 2000 days and instead considers them a misconfigured timestamp recognition.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jun 2015 14:50:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-specify-props-conf-for-EPOCH-timestamp-in-JSON-object/m-p/156099#M31660</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-06-14T14:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to specify props.conf for EPOCH timestamp in JSON object</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-specify-props-conf-for-EPOCH-timestamp-in-JSON-object/m-p/156100#M31661</link>
      <description>&lt;P&gt;EPOCH_START_TIME=1434209641&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:15:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-specify-props-conf-for-EPOCH-timestamp-in-JSON-object/m-p/156100#M31661</guid>
      <dc:creator>ronak</dc:creator>
      <dc:date>2020-09-28T20:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to specify props.conf for EPOCH timestamp in JSON object</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-specify-props-conf-for-EPOCH-timestamp-in-JSON-object/m-p/156101#M31662</link>
      <description>&lt;P&gt;Martin - quite correct interpretation...EPOCH_START_TIME= 1434209641 would be actual  the value. (sample data)&lt;/P&gt;

&lt;P&gt;Still, Splunk did not recognize. When I removed the TIME_PREFIX from props.conf, it did pick it up for one of the inputs. &lt;/P&gt;

&lt;P&gt;Very strange behavior. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:16:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-specify-props-conf-for-EPOCH-timestamp-in-JSON-object/m-p/156101#M31662</guid>
      <dc:creator>ronak</dc:creator>
      <dc:date>2020-09-28T20:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to specify props.conf for EPOCH timestamp in JSON object</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-specify-props-conf-for-EPOCH-timestamp-in-JSON-object/m-p/156102#M31663</link>
      <description>&lt;P&gt;Do post an entire event along with the current configuration you use for that sourcetype.&lt;BR /&gt;
While Splunk will recognize epoch timestamps out of the box with zero configuration, some defaults may trip you. For example, it'll only look at the first 150 characters of each event by default.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jun 2015 16:03:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-specify-props-conf-for-EPOCH-timestamp-in-JSON-object/m-p/156102#M31663</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-06-14T16:03:28Z</dc:date>
    </item>
  </channel>
</rss>

