<?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: Splunk to force the date of events with current date instead of file date in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-to-force-the-date-of-events-with-current-date-instead-of/m-p/750281#M22689</link>
    <description>&lt;P&gt;If you want to modify displayed time so that whenever you're searching for the event you're being shown current time, you have to do it in search time.&lt;/P&gt;&lt;PRE&gt;&amp;lt;your_search&amp;gt;&lt;BR /&gt;| eval _time=now()&lt;/PRE&gt;&lt;P&gt;Question is why would you do that. Time is one of the main and most important metadata about the event.&lt;/P&gt;&lt;P&gt;And it has nothing to do with DATETIME_CONFIG - that setting only works during event ingestion. It modifies what timestamp will be assigned to the event. But each event when it's indexed gets its own timestamp and you can't modify the indexed timestamp. You can only "cheat" during searching by overwriting the value as I've shown above.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jul 2025 21:22:54 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2025-07-22T21:22:54Z</dc:date>
    <item>
      <title>Splunk to force the date of events with current date instead of file date</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-to-force-the-date-of-events-with-current-date-instead-of/m-p/750264#M22686</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;Please help me regarding this ask - i need the splunk to show the respective events with the current date instead of the date when the file being placed in the host. For instance, like the file been placed in server dated 17th july and the events are showing with date 17th july instead i want with the current date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the current date 22nd July, then event's date should mentioned as 22nd July and likewise.&lt;/P&gt;&lt;P&gt;I have tried with&amp;nbsp;DATETIME_CONFIG = CURRENT and&amp;nbsp;DATETIME_CONFIG = NONE in props.conf but it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Raja_Selvaraj_0-1753199486641.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39723i923B2CB516472070/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Raja_Selvaraj_0-1753199486641.png" alt="Raja_Selvaraj_0-1753199486641.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 15:54:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-to-force-the-date-of-events-with-current-date-instead-of/m-p/750264#M22686</guid>
      <dc:creator>Raja_Selvaraj</dc:creator>
      <dc:date>2025-07-22T15:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk to force the date of events with current date instead of file date</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-to-force-the-date-of-events-with-current-date-instead-of/m-p/750266#M22687</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/268961"&gt;@Raja_Selvaraj&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;DATETIME_CONFIG = CURRENT it should work as expected.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Can you please run btool command to check if&amp;nbsp;&lt;SPAN&gt;DATETIME_CONFIG taking effect or any config overriding it.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;splunk btool props list&amp;nbsp;&amp;lt;sourcetype&amp;gt; --debug&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;above comand should list datetime_config&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;sample format in props.conf&amp;nbsp;&lt;BR /&gt;[&amp;lt;sourcetype&amp;gt;]&lt;BR /&gt;DATETIME_CONFIG=CURRENT&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 17:48:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-to-force-the-date-of-events-with-current-date-instead-of/m-p/750266#M22687</guid>
      <dc:creator>SanjayReddy</dc:creator>
      <dc:date>2025-07-22T17:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk to force the date of events with current date instead of file date</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-to-force-the-date-of-events-with-current-date-instead-of/m-p/750281#M22689</link>
      <description>&lt;P&gt;If you want to modify displayed time so that whenever you're searching for the event you're being shown current time, you have to do it in search time.&lt;/P&gt;&lt;PRE&gt;&amp;lt;your_search&amp;gt;&lt;BR /&gt;| eval _time=now()&lt;/PRE&gt;&lt;P&gt;Question is why would you do that. Time is one of the main and most important metadata about the event.&lt;/P&gt;&lt;P&gt;And it has nothing to do with DATETIME_CONFIG - that setting only works during event ingestion. It modifies what timestamp will be assigned to the event. But each event when it's indexed gets its own timestamp and you can't modify the indexed timestamp. You can only "cheat" during searching by overwriting the value as I've shown above.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 21:22:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-to-force-the-date-of-events-with-current-date-instead-of/m-p/750281#M22689</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-07-22T21:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk to force the date of events with current date instead of file date</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-to-force-the-date-of-events-with-current-date-instead-of/m-p/750322#M22702</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/268961"&gt;@Raja_Selvaraj&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you confirm which server(s) you have put the&amp;nbsp;&lt;SPAN&gt;DATETIME_CONFIG = CURRENT on and what type of instance this is? (Universal Forwarder / Heavy Forwarder / Indexer) ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This needs to be on the first full deployment (HF/Indexer) that the data hits as this is where it is parsed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 09:51:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-to-force-the-date-of-events-with-current-date-instead-of/m-p/750322#M22702</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-07-23T09:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk to force the date of events with current date instead of file date</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-to-force-the-date-of-events-with-current-date-instead-of/m-p/750324#M22704</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/268961"&gt;@Raja_Selvaraj&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATETIME_CONFIG = CURRENT&lt;/STRONG&gt; should work normally.&lt;BR /&gt;But observed few times with &lt;STRONG&gt;monitor input&lt;/STRONG&gt;, Splunk still scans the event content or file metadata (modtime) to determine _time, even if DATETIME_CONFIG = CURRENT is set.&lt;/P&gt;&lt;P&gt;Are you using monitor input?&lt;/P&gt;&lt;P&gt;But you can use the modification at search time.&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;BASE_SEARCH
| eval _time = now()&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Prewin&lt;BR /&gt;Splunk Enthusiast | Always happy to help! If this answer helped you, please consider marking it as the solution or giving a Karma. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 10:29:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-to-force-the-date-of-events-with-current-date-instead-of/m-p/750324#M22704</guid>
      <dc:creator>PrewinThomas</dc:creator>
      <dc:date>2025-07-23T10:29:31Z</dc:date>
    </item>
  </channel>
</rss>

