<?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 do I get Splunk to recognise epoch time? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-Splunk-to-recognise-epoch-time/m-p/143441#M29291</link>
    <description>&lt;P&gt;It would be helpful if you post the format that you tried in props.conf.&lt;/P&gt;

&lt;P&gt;It should be as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %s.%6N
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 15 Nov 2013 01:43:53 GMT</pubDate>
    <dc:creator>adrianathome</dc:creator>
    <dc:date>2013-11-15T01:43:53Z</dc:date>
    <item>
      <title>How do I get Splunk to recognise epoch time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-Splunk-to-recognise-epoch-time/m-p/143439#M29289</link>
      <description>&lt;P&gt;I have a static JSON file (240k lines) I would like to index. Here's a the format:&lt;/P&gt;

&lt;P&gt;{"name":"fuel_level","value":88.260948,"timestamp":1362061287.027000}&lt;BR /&gt;
{"name":"fuel_level","value":88.260948,"timestamp":1362061287.035000}&lt;BR /&gt;
{"name":"fuel_level","value":88.260948,"timestamp":1362061287.064000}&lt;BR /&gt;
{"name":"fuel_level","value":88.260948,"timestamp":1362061287.098000}&lt;BR /&gt;
{"name":"fuel_level","value":88.260948,"timestamp":1362061287.110000}&lt;BR /&gt;
{"name":"fuel_level","value":88.260948,"timestamp":1362061287.143000}&lt;BR /&gt;
{"name":"fuel_level","value":88.260948,"timestamp":1362061287.154000}&lt;BR /&gt;
{"name":"fuel_level","value":88.260948,"timestamp":1362061287.177000}&lt;/P&gt;

&lt;P&gt;In the data preview mode Splunk is assigning the timestamp based on the last time the file was changed, not the timestamp variable of the event.&lt;/P&gt;

&lt;P&gt;How can I get Splunk (using 6) to recognise the timestamp of the event?&lt;/P&gt;

&lt;P&gt;i've tried playing with the ../props.conf file based on previous answers but have been unsuccessful so far.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:17:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-Splunk-to-recognise-epoch-time/m-p/143439#M29289</guid>
      <dc:creator>himynamesdave</dc:creator>
      <dc:date>2020-09-28T15:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get Splunk to recognise epoch time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-Splunk-to-recognise-epoch-time/m-p/143440#M29290</link>
      <description>&lt;P&gt;Check out &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/admin/Propsconf"&gt;props.conf docs&lt;/A&gt; and read the &lt;CODE&gt;Timestamp extraction configuration&lt;/CODE&gt; section.&lt;/P&gt;

&lt;P&gt;The likely answer is in this part:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = &amp;lt;strptime-style format&amp;gt;
* Specifies a strptime format string to extract the date.
* strptime is an industry standard for designating time formats.
* For more information on strptime, see "Configure timestamp recognition" in
  the online documentation.
* TIME_FORMAT starts reading after the TIME_PREFIX. If both are specified, the TIME_PREFIX
  regex must match up to and including the character before the TIME_FORMAT date.
* For good results, the &amp;lt;strptime-style format&amp;gt; should describe the day of the year and the
  time of day.
* Defaults to empty.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This references the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/Data/Configuretimestamprecognition"&gt;Configure timestamp recognition&lt;/A&gt; docs which should help you tons, especially the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/Data/Configuretimestamprecognition#Enhanced_strptime.28.29_support"&gt;Enhanced strptime() support&lt;/A&gt; part.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2013 00:32:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-Splunk-to-recognise-epoch-time/m-p/143440#M29290</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2013-11-15T00:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get Splunk to recognise epoch time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-Splunk-to-recognise-epoch-time/m-p/143441#M29291</link>
      <description>&lt;P&gt;It would be helpful if you post the format that you tried in props.conf.&lt;/P&gt;

&lt;P&gt;It should be as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %s.%6N
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Nov 2013 01:43:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-Splunk-to-recognise-epoch-time/m-p/143441#M29291</guid>
      <dc:creator>adrianathome</dc:creator>
      <dc:date>2013-11-15T01:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get Splunk to recognise epoch time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-Splunk-to-recognise-epoch-time/m-p/143442#M29292</link>
      <description>&lt;P&gt;Thanks! This is what I was originally trying, my mistake was not declaring:&lt;/P&gt;

&lt;P&gt;TIME_PREFIX="timestamp":&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2013 15:45:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-Splunk-to-recognise-epoch-time/m-p/143442#M29292</guid>
      <dc:creator>himynamesdave</dc:creator>
      <dc:date>2013-11-15T15:45:51Z</dc:date>
    </item>
  </channel>
</rss>

