<?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 Eventgen - Ensure current timestamp in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Eventgen-Ensure-current-timestamp/m-p/516608#M87442</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have a few existing inputs with EventGen (v6.5.2) and they work perfectly on Splunk 8.0.5.&lt;/P&gt;&lt;P&gt;The use case I am having trouble with is where:&lt;/P&gt;&lt;P&gt;a) The timestamp is not contained in the _raw data (the actual Production input uses the current index time)&lt;/P&gt;&lt;P&gt;b) There are other timestamps in _raw (they are not related to _time, are separate fields).&lt;/P&gt;&lt;P&gt;c) All events in the csv sample file must be ingested each interval.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried both sample mode and replay mode.&lt;/P&gt;&lt;P&gt;Sample mode ingests the data but identifies different date/time values in _raw and uses that as _time, which is unexpected. This is even while autotimestamp = false.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ehqtrainorm_0-1598568180744.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10546i80309E8F7205ADC6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ehqtrainorm_0-1598568180744.png" alt="ehqtrainorm_0-1598568180744.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In replay mode, nothing is ingested due to errors where it can't find the timeField (there is a time column in the csv that I referenced).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So how can I ingest all events in the sample csv file while ensuring _time is the current time, and not dependent on any timestamps in the _raw?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my config for mode = sample.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[ops_724events_ggprocdetail_sample]&lt;BR /&gt;disabled = false&lt;BR /&gt;mode = sample&lt;BR /&gt;interval = 60&lt;BR /&gt;sampletype = csv&lt;BR /&gt;autotimestamp=false&lt;/P&gt;&lt;P&gt;earliest = -1m&lt;BR /&gt;latest = now&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Csv sample file has the following columns:&lt;/P&gt;&lt;P&gt;time,index,host,source,sourcetype,"_raw"&lt;/P&gt;</description>
    <pubDate>Thu, 27 Aug 2020 22:53:17 GMT</pubDate>
    <dc:creator>ehqtrainorm</dc:creator>
    <dc:date>2020-08-27T22:53:17Z</dc:date>
    <item>
      <title>Eventgen - Ensure current timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Eventgen-Ensure-current-timestamp/m-p/516608#M87442</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have a few existing inputs with EventGen (v6.5.2) and they work perfectly on Splunk 8.0.5.&lt;/P&gt;&lt;P&gt;The use case I am having trouble with is where:&lt;/P&gt;&lt;P&gt;a) The timestamp is not contained in the _raw data (the actual Production input uses the current index time)&lt;/P&gt;&lt;P&gt;b) There are other timestamps in _raw (they are not related to _time, are separate fields).&lt;/P&gt;&lt;P&gt;c) All events in the csv sample file must be ingested each interval.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried both sample mode and replay mode.&lt;/P&gt;&lt;P&gt;Sample mode ingests the data but identifies different date/time values in _raw and uses that as _time, which is unexpected. This is even while autotimestamp = false.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ehqtrainorm_0-1598568180744.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10546i80309E8F7205ADC6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ehqtrainorm_0-1598568180744.png" alt="ehqtrainorm_0-1598568180744.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In replay mode, nothing is ingested due to errors where it can't find the timeField (there is a time column in the csv that I referenced).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So how can I ingest all events in the sample csv file while ensuring _time is the current time, and not dependent on any timestamps in the _raw?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my config for mode = sample.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[ops_724events_ggprocdetail_sample]&lt;BR /&gt;disabled = false&lt;BR /&gt;mode = sample&lt;BR /&gt;interval = 60&lt;BR /&gt;sampletype = csv&lt;BR /&gt;autotimestamp=false&lt;/P&gt;&lt;P&gt;earliest = -1m&lt;BR /&gt;latest = now&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Csv sample file has the following columns:&lt;/P&gt;&lt;P&gt;time,index,host,source,sourcetype,"_raw"&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 22:53:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Eventgen-Ensure-current-timestamp/m-p/516608#M87442</guid>
      <dc:creator>ehqtrainorm</dc:creator>
      <dc:date>2020-08-27T22:53:17Z</dc:date>
    </item>
  </channel>
</rss>

