<?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: Using a field within a log for the true timestamp in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Using-a-field-within-a-log-for-the-true-timestamp/m-p/256812#M49363</link>
    <description>&lt;P&gt;The below config in your props.conf on the indexer/hf should do the trick&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[unique_stanza_name]
 TIME_PREFIX = timestamp=
 TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3N
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Verify correct stanza name, restart splunk service on indexer. All &lt;STRONG&gt;&lt;EM&gt;new&lt;/EM&gt;&lt;/STRONG&gt; data will have this field value for _time&lt;/P&gt;</description>
    <pubDate>Thu, 01 Sep 2016 16:23:07 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-09-01T16:23:07Z</dc:date>
    <item>
      <title>Using a field within a log for the true timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-a-field-within-a-log-for-the-true-timestamp/m-p/256811#M49362</link>
      <description>&lt;P&gt;Here si the example log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Sep 1 11:23:48 HOSTNAME netflow: timestamp=2016-08-30T12:51:07.593 duration=1.246 proto=6 srcip=1.1.1.1 srcport=80 dstip=2.2.2.2 dstport=62018 inpkt=5 inbyte=724 outpkt=6 outbyte=815 fl=2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The fieldname "timestamp" is the true timestamp of the event.  The first date in the log is just when the netflow data was converted.&lt;/P&gt;

&lt;P&gt;How do I use "timestamp" as the Splunk date/time?  I know how to do timestamps when the times are the first part of the log, but not within it.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 15:51:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-a-field-within-a-log-for-the-true-timestamp/m-p/256811#M49362</guid>
      <dc:creator>aferone</dc:creator>
      <dc:date>2016-09-01T15:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using a field within a log for the true timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-a-field-within-a-log-for-the-true-timestamp/m-p/256812#M49363</link>
      <description>&lt;P&gt;The below config in your props.conf on the indexer/hf should do the trick&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[unique_stanza_name]
 TIME_PREFIX = timestamp=
 TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3N
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Verify correct stanza name, restart splunk service on indexer. All &lt;STRONG&gt;&lt;EM&gt;new&lt;/EM&gt;&lt;/STRONG&gt; data will have this field value for _time&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 16:23:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-a-field-within-a-log-for-the-true-timestamp/m-p/256812#M49363</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-01T16:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using a field within a log for the true timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-a-field-within-a-log-for-the-true-timestamp/m-p/256813#M49364</link>
      <description>&lt;P&gt;Works like a champ!  Thanks for responding!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 18:26:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-a-field-within-a-log-for-the-true-timestamp/m-p/256813#M49364</guid>
      <dc:creator>aferone</dc:creator>
      <dc:date>2016-09-01T18:26:34Z</dc:date>
    </item>
  </channel>
</rss>

