<?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: Do not use last event timestamp for events without timestamp in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Do-not-use-last-event-timestamp-for-events-without-timestamp/m-p/522578#M88264</link>
    <description>&lt;P&gt;That documentation is a little misleading.&amp;nbsp; The file modification time is used if the first event does not have a timestamp.&amp;nbsp; After that, if&amp;nbsp; an event does not have a timestamp then the timestamp from the previous event is used.&amp;nbsp; Not sure that's documented anywhere, though, just my experience.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Oct 2020 19:13:42 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-10-01T19:13:42Z</dc:date>
    <item>
      <title>Do not use last event timestamp for events without timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Do-not-use-last-event-timestamp-for-events-without-timestamp/m-p/522550#M88255</link>
      <description>&lt;DIV class="p-rich_text_section"&gt;I have data which sometimes has timestamps and sometimes doesn't. I want those events without timestamp to use file mod time (it's a file monitor input), which is what the documentation leads me to believe is the default behavior if TIME_FORMAT doesn't match (&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.6/Data/HowSplunkextractstimestamps#How_Splunk_software_assigns_timestamps" target="_blank" rel="noopener noreferrer"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.6/Data/HowSplunkextractstimestamps#How_Splunk_software_assigns_timestamps&lt;/A&gt;).&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;However, I see my data sometimes matched to the last known timestamp instead, accompanied by these kind of messages in _internal:&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;WARN  DateParserVerbose - Failed to parse timestamp in first MAX_TIMESTAMP_LOOKAHEAD (23) characters of event. Defaulting to timestamp of previous event&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="p-rich_text_section"&gt;How do I explicitly tell Splunk to not fall back to the previous timestamp and instead use file modification time for events without timestamps?&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 Oct 2020 17:32:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Do-not-use-last-event-timestamp-for-events-without-timestamp/m-p/522550#M88255</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2020-10-01T17:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Do not use last event timestamp for events without timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Do-not-use-last-event-timestamp-for-events-without-timestamp/m-p/522578#M88264</link>
      <description>&lt;P&gt;That documentation is a little misleading.&amp;nbsp; The file modification time is used if the first event does not have a timestamp.&amp;nbsp; After that, if&amp;nbsp; an event does not have a timestamp then the timestamp from the previous event is used.&amp;nbsp; Not sure that's documented anywhere, though, just my experience.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 19:13:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Do-not-use-last-event-timestamp-for-events-without-timestamp/m-p/522578#M88264</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-10-01T19:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Do not use last event timestamp for events without timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Do-not-use-last-event-timestamp-for-events-without-timestamp/m-p/522632#M88272</link>
      <description>&lt;P&gt;So you're saying there is no way (you know of) to force splunk to change its behavior and it will always use the timestamp of the previous event?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 06:26:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Do-not-use-last-event-timestamp-for-events-without-timestamp/m-p/522632#M88272</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2020-10-02T06:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Do not use last event timestamp for events without timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Do-not-use-last-event-timestamp-for-events-without-timestamp/m-p/522759#M88291</link>
      <description>&lt;P&gt;Would an ingest time eval solve this?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Some examples here &lt;A href="https://github.com/silkyrich/ingest_eval_examples" target="_blank"&gt;https://github.com/silkyrich/ingest_eval_examples&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;You might be able to set current time but I've never tried...&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2020 00:08:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Do-not-use-last-event-timestamp-for-events-without-timestamp/m-p/522759#M88291</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2020-10-03T00:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Do not use last event timestamp for events without timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Do-not-use-last-event-timestamp-for-events-without-timestamp/m-p/522898#M88312</link>
      <description>&lt;P&gt;Well of course I can! Thanks for pointing this out, I don't know how I missed this option. Too focused on props.conf &lt;FONT face="courier new,courier"&gt;TIME_*&lt;/FONT&gt; settings I think.&lt;/P&gt;&lt;P&gt;I've used the following transforms for this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;INGEST_EVAL = _time := if(match(_raw, "^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}"), _time, now())&lt;/LI-CODE&gt;&lt;P&gt;Only downside being that this is not as close to the actual event as file modification time would have been, as this happens on the indexer during parsing.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 06:23:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Do-not-use-last-event-timestamp-for-events-without-timestamp/m-p/522898#M88312</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2020-10-05T06:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Do not use last event timestamp for events without timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Do-not-use-last-event-timestamp-for-events-without-timestamp/m-p/522907#M88314</link>
      <description>&lt;P&gt;From what I know there is no props.conf to fix this, so glad INGEST_EVAL helped.&lt;/P&gt;&lt;P&gt;I see timestamp mentioned in the docs but I'm not sure if that is a field.&lt;/P&gt;&lt;P&gt;What if you set the DATETIME_CONFIG = CURRENT&lt;/P&gt;&lt;P&gt;And then set the _time to the strptime() of the _raw or similar if it exists as _time in the ingest time eval?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 06:48:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Do-not-use-last-event-timestamp-for-events-without-timestamp/m-p/522907#M88314</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2020-10-05T06:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Do not use last event timestamp for events without timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Do-not-use-last-event-timestamp-for-events-without-timestamp/m-p/522914#M88315</link>
      <description>&lt;P&gt;Even better. This uses file mod time for all events and selectively overwrites that value with the timestamp from the data if available. Nice thinking!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 07:03:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Do-not-use-last-event-timestamp-for-events-without-timestamp/m-p/522914#M88315</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2020-10-05T07:03:06Z</dc:date>
    </item>
  </channel>
</rss>

