<?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: Incorrect timestamp when ingesting csv data in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Incorrect-timestamp-when-ingesting-csv-data/m-p/702248#M116165</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/29622"&gt;@jg91&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I don't know your data, maybe there's some numeric field that can be interpretated as a timestamp, or there's a previous event of 2021, I don't know.&lt;/P&gt;&lt;P&gt;But using the above configuration you should solve.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Fri, 18 Oct 2024 07:56:39 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2024-10-18T07:56:39Z</dc:date>
    <item>
      <title>Incorrect timestamp when ingesting csv data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Incorrect-timestamp-when-ingesting-csv-data/m-p/702240#M116162</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I’m trying to ingest CSV data (without a timestamp) using a Universal Forwarder (UF) running in a fresh container.&lt;/P&gt;&lt;P&gt;When I attempt to ingest the data, I encounter the following warning in the _internal index, and the data ends up being ingested with a timestamp from 2021. This container has not previously ingested any data, so I’m unsure why it defaults to this date.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;10-18-2024&lt;/SPAN&gt; 03:42:00.942 +0000 WARN  DateParserVerbose [1571 structuredparsing] - Failed to parse timestamp in first MAX_TIMESTAMP_LOOKAHEAD (128) characters of event. Defaulting to timestamp of previous event (Wed Jan 13 21:06:54 2021). Context: source=/var/data/sample.csv|host=splunk-uf|csv|6215&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone explain why this date is being applied, and how I can prevent this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 07:14:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Incorrect-timestamp-when-ingesting-csv-data/m-p/702240#M116162</guid>
      <dc:creator>jg91</dc:creator>
      <dc:date>2024-10-18T07:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect timestamp when ingesting csv data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Incorrect-timestamp-when-ingesting-csv-data/m-p/702242#M116163</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/29622"&gt;@jg91&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;if your csv doesn't contain any timestamp, Splunk can assign the timestamp of the index time or the timestamp from the previous event.&lt;/P&gt;&lt;P&gt;probably it's assigned the second one.&lt;/P&gt;&lt;P&gt;I hint to specify in props.conf that the timestamp is the current time:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DATETIME_CONFIG = CURRENT&lt;/LI-CODE&gt;&lt;P&gt;as described at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.3.1/Admin/Propsconf#Timestamp_extraction_configuration" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.3.1/Admin/Propsconf#Timestamp_extraction_configuration&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 07:19:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Incorrect-timestamp-when-ingesting-csv-data/m-p/702242#M116163</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-10-18T07:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect timestamp when ingesting csv data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Incorrect-timestamp-when-ingesting-csv-data/m-p/702247#M116164</link>
      <description>&lt;P&gt;Thank you, but my question is why it defaults to a timestamp from &lt;STRONG&gt;2021&lt;/STRONG&gt;, especially since this is a freshly created container/pod with no prior data ingested. Why is it using that specific date?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 07:48:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Incorrect-timestamp-when-ingesting-csv-data/m-p/702247#M116164</guid>
      <dc:creator>jg91</dc:creator>
      <dc:date>2024-10-18T07:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect timestamp when ingesting csv data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Incorrect-timestamp-when-ingesting-csv-data/m-p/702248#M116165</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/29622"&gt;@jg91&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I don't know your data, maybe there's some numeric field that can be interpretated as a timestamp, or there's a previous event of 2021, I don't know.&lt;/P&gt;&lt;P&gt;But using the above configuration you should solve.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 07:56:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Incorrect-timestamp-when-ingesting-csv-data/m-p/702248#M116165</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-10-18T07:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect timestamp when ingesting csv data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Incorrect-timestamp-when-ingesting-csv-data/m-p/702284#M116171</link>
      <description>&lt;P&gt;Hard to say without knowing your exact data and config. But Splunk does tend to try to guess&amp;nbsp; the time format sometimes and it's usually not the best idea to let it. So if you don't have timestamps in your data it's best to explicitly configure your sourcetype so that Splunk doesn't guess but blindly assumes it's the current timestamp (as &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt; already showed)&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 20:34:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Incorrect-timestamp-when-ingesting-csv-data/m-p/702284#M116171</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-10-18T20:34:16Z</dc:date>
    </item>
  </channel>
</rss>

