<?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: Can we process the timestamp in an event sent to the HTTP event collector? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-process-the-timestamp-in-an-event-sent-to-the-HTTP-event/m-p/245808#M47515</link>
    <description>&lt;P&gt;Graham, you are correct, that is milliseconds. This would be 500 ms as everything after the decimal / after 10 digits is milliseconds. I'll get the docs updated. Thanks for reporting.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Nov 2015 05:37:04 GMT</pubDate>
    <dc:creator>gblock_splunk</dc:creator>
    <dc:date>2015-11-18T05:37:04Z</dc:date>
    <item>
      <title>Can we process the timestamp in an event sent to the HTTP event collector?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-process-the-timestamp-in-an-event-sent-to-the-HTTP-event/m-p/245803#M47510</link>
      <description>&lt;P&gt;The HTTP event collector supports an optional timestamp:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{
    "time": "1426279439", 
    "host": "localhost",
    "source": "datasource",
    "sourcetype": "txt",
    "index": "main",
    "event": { "hello": "world" }
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But what if I want to process the timestamp directly from the event, like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   {
        "host": "localhost",
        "source": "datasource",
        "sourcetype": "txt",
        "index": "main",
        "event": { "message": "9/29/2015 13:00:00 hello world" }
    }
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can I do this?  It seems like Splunk skips timestamp extraction for events posted to the collector, regardless of sourcetype.  &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 13:41:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-process-the-timestamp-in-an-event-sent-to-the-HTTP-event/m-p/245803#M47510</guid>
      <dc:creator>Jeremiah</dc:creator>
      <dc:date>2015-09-29T13:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can we process the timestamp in an event sent to the HTTP event collector?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-process-the-timestamp-in-an-event-sent-to-the-HTTP-event/m-p/245804#M47511</link>
      <description>&lt;P&gt;According to the presentation at .conf2015, the HTTP Event Collector will only look for event timestamps in the "time" field, which must be in epoch form.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 13:49:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-process-the-timestamp-in-an-event-sent-to-the-HTTP-event/m-p/245804#M47511</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-09-29T13:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can we process the timestamp in an event sent to the HTTP event collector?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-process-the-timestamp-in-an-event-sent-to-the-HTTP-event/m-p/245805#M47512</link>
      <description>&lt;P&gt;Yes this is correct, use "time".&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 04:47:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-process-the-timestamp-in-an-event-sent-to-the-HTTP-event/m-p/245805#M47512</guid>
      <dc:creator>gblock_splunk</dc:creator>
      <dc:date>2015-10-01T04:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can we process the timestamp in an event sent to the HTTP event collector?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-process-the-timestamp-in-an-event-sent-to-the-HTTP-event/m-p/245806#M47513</link>
      <description>&lt;P&gt;According to the Splunk Dev page "&lt;A href="http://dev.splunk.com/view/event-collector/SP-CAAAE6P"&gt;About the JSON event protocol in HTTP Event Collector&lt;/A&gt;":&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;The default time format is epoch time format, in the format &amp;lt;sec&amp;gt;.&amp;lt;ms&amp;gt;. For example, 1433188255.5 indicates 1433188255 seconds and 5 microseconds&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;"5 microseconds" is wrong. In this context, that .5 indicates half a second. And &lt;STRONG&gt;ms&lt;/STRONG&gt; is the abbreviation for milliseconds, not microseconds. The abbreviation for microseconds is (stand back, I'm going to attempt a &lt;EM&gt;mu&lt;/EM&gt;) &lt;STRONG&gt;μs&lt;/STRONG&gt;. I would be happy to learn that the event time precision is microseconds, but I suspect (as per &lt;STRONG&gt;ms&lt;/STRONG&gt;) that it's milliseconds (is it?).&lt;/P&gt;

&lt;P&gt;As a trial user only, I could find no more direct method of feedback than reporting this via email to &lt;A href="mailto:devinfo@splunk.com"&gt;devinfo@splunk.com&lt;/A&gt;, but I've yet to get a (non-automated) reply, so I thought I'd mention it here. Please feel free to direct me to use some other feedback method for this type of comment.&lt;/P&gt;

&lt;P&gt;On a related issue, I'm currently in denial about what it appears I have to do to get Splunk to display event times in ISO 8601 format.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 03:03:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-process-the-timestamp-in-an-event-sent-to-the-HTTP-event/m-p/245806#M47513</guid>
      <dc:creator>Graham_Hanningt</dc:creator>
      <dc:date>2015-11-18T03:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can we process the timestamp in an event sent to the HTTP event collector?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-process-the-timestamp-in-an-event-sent-to-the-HTTP-event/m-p/245807#M47514</link>
      <description>&lt;P&gt;In my previous comment, I used the "Hyperlink" toolbar button to convert that "About..." page title into a hyperlink. It didn't work.&lt;/P&gt;

&lt;P&gt;Before submitting that comment, I entered the comment as an answer (with no intention of &lt;EM&gt;submitting&lt;/EM&gt; it as answer) so that I could preview it, because I cannot see how to preview comments (although I was aware that comments might only support a subset of the markdown supported by answers). I couldn't get a hyperlink to work there, either: neither using the "reference"-style syntax generated by the Hyperlink toolbar, nor the more direct "link text in square brackets followed by URL in parentheses" syntax specified by the Splunk Answers &lt;A href="https://answers.splunk.com/static/markdown/help.html"&gt;Markdown Syntax&lt;/A&gt; web page.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 03:29:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-process-the-timestamp-in-an-event-sent-to-the-HTTP-event/m-p/245807#M47514</guid>
      <dc:creator>Graham_Hanningt</dc:creator>
      <dc:date>2015-11-18T03:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can we process the timestamp in an event sent to the HTTP event collector?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-process-the-timestamp-in-an-event-sent-to-the-HTTP-event/m-p/245808#M47515</link>
      <description>&lt;P&gt;Graham, you are correct, that is milliseconds. This would be 500 ms as everything after the decimal / after 10 digits is milliseconds. I'll get the docs updated. Thanks for reporting.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 05:37:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-process-the-timestamp-in-an-event-sent-to-the-HTTP-event/m-p/245808#M47515</guid>
      <dc:creator>gblock_splunk</dc:creator>
      <dc:date>2015-11-18T05:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can we process the timestamp in an event sent to the HTTP event collector?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-process-the-timestamp-in-an-event-sent-to-the-HTTP-event/m-p/245809#M47516</link>
      <description>&lt;P&gt;Thanks, @gblock_splunk.&lt;/P&gt;

&lt;P&gt;From that same Splunk Dev page:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; "time": "1426279439"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Why is the time value enclosed in quotes? It's a number, not a string.&lt;/P&gt;

&lt;P&gt;Those quotes are not required by JSON, and not necessary in practice; in testing, I omitted the quotes without even thinking about it, and it "worked":&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{"text":"Success","code":0}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note: no quotes around the 0 value of "code"  (trying for an emoji smile there).&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 07:43:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-process-the-timestamp-in-an-event-sent-to-the-HTTP-event/m-p/245809#M47516</guid>
      <dc:creator>Graham_Hanningt</dc:creator>
      <dc:date>2015-11-18T07:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can we process the timestamp in an event sent to the HTTP event collector?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-process-the-timestamp-in-an-event-sent-to-the-HTTP-event/m-p/245810#M47517</link>
      <description>&lt;P&gt;It should not be quoted, that is a bug in the docs. Will be fixed.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 07:46:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-process-the-timestamp-in-an-event-sent-to-the-HTTP-event/m-p/245810#M47517</guid>
      <dc:creator>gblock_splunk</dc:creator>
      <dc:date>2015-11-18T07:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can we process the timestamp in an event sent to the HTTP event collector?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-process-the-timestamp-in-an-event-sent-to-the-HTTP-event/m-p/245811#M47518</link>
      <description>&lt;P&gt;No problem @Graham_Hannington thank you for taking the time to report this.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 07:48:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-process-the-timestamp-in-an-event-sent-to-the-HTTP-event/m-p/245811#M47518</guid>
      <dc:creator>gblock_splunk</dc:creator>
      <dc:date>2015-11-18T07:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can we process the timestamp in an event sent to the HTTP event collector?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-process-the-timestamp-in-an-event-sent-to-the-HTTP-event/m-p/245812#M47519</link>
      <description>&lt;P&gt;more details here &lt;A href="http://dev.splunk.com/view/event-collector/SP-CAAAE6M"&gt;http://dev.splunk.com/view/event-collector/SP-CAAAE6M&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 23:54:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-process-the-timestamp-in-an-event-sent-to-the-HTTP-event/m-p/245812#M47519</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2016-03-07T23:54:46Z</dc:date>
    </item>
  </channel>
</rss>

