<?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: How can I index events with the real date while using the timestamp from the log? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-index-events-with-the-real-date-while-using-the/m-p/335795#M62087</link>
    <description>&lt;P&gt;Following some more research I was able to determine that the date portion of the timestamp was being generated based on the file name which was called ASCII.20110316....... So i created a script to rename each file to ACII.2017-12-13....... and it appears to now almost be working. The problem seems to be that Splunk is now timeshifting the logs one day into the future. I assume it has something to do with the timezone but I am not 100% sure.&lt;/P&gt;

&lt;P&gt;Any other ideas would be greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Dec 2017 16:06:57 GMT</pubDate>
    <dc:creator>ZimmermanC1</dc:creator>
    <dc:date>2017-12-13T16:06:57Z</dc:date>
    <item>
      <title>How can I index events with the real date while using the timestamp from the log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-index-events-with-the-real-date-while-using-the/m-p/335793#M62085</link>
      <description>&lt;P&gt;I have a Splunk instance in a Development &amp;amp; Test lab that uses what we call "repeatable time" to test software updates against a known good checkpoint of data. During a test all of the server times are rolled back to March 16 2011. I have been struggling to figure out how to get Splunk to ignore the Date in the logged events and only care about the "time".&lt;/P&gt;

&lt;P&gt;The logs are being monitored in a directory structure as follows /var/adm/splunk/2017_"today's_julian_date"/"server_name"/*.log&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; Example Log: header,123,321,2011-03-16 17:35:36.035 +00:00,subject,.............
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Effectively I am trying to get these events indexed with today's date but the Time from the log. so it would have: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  _time=2017-12-11 17:35:36.035
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tried playing with the TIME_PREFIX &amp;amp; MAX_TIMESTAMP_LOOKAHEAD settings in the sourcetype but have not been successful.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; TIME_PREFIX = ^[^\s]+\s
 MAX_TIMESTAMP_LOOKAHEAD = 25
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is a critical issue for me to sort out so any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:12:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-index-events-with-the-real-date-while-using-the/m-p/335793#M62085</guid>
      <dc:creator>ZimmermanC1</dc:creator>
      <dc:date>2020-09-29T17:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I index events with the real date while using the timestamp from the log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-index-events-with-the-real-date-while-using-the/m-p/335794#M62086</link>
      <description>&lt;P&gt;You might want to check out the Splunk Event Gen app, which IIRC can take input data and modify the timestamp in the _raw data for you.  &lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/1924/"&gt;https://splunkbase.splunk.com/app/1924/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 16:55:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-index-events-with-the-real-date-while-using-the/m-p/335794#M62086</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-12-11T16:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: How can I index events with the real date while using the timestamp from the log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-index-events-with-the-real-date-while-using-the/m-p/335795#M62087</link>
      <description>&lt;P&gt;Following some more research I was able to determine that the date portion of the timestamp was being generated based on the file name which was called ASCII.20110316....... So i created a script to rename each file to ACII.2017-12-13....... and it appears to now almost be working. The problem seems to be that Splunk is now timeshifting the logs one day into the future. I assume it has something to do with the timezone but I am not 100% sure.&lt;/P&gt;

&lt;P&gt;Any other ideas would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 16:06:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-index-events-with-the-real-date-while-using-the/m-p/335795#M62087</guid>
      <dc:creator>ZimmermanC1</dc:creator>
      <dc:date>2017-12-13T16:06:57Z</dc:date>
    </item>
  </channel>
</rss>

