<?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 do you ingest a file with current time? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-ingest-a-file-with-current-time/m-p/421758#M95495</link>
    <description>&lt;P&gt;Hi @test4u,&lt;/P&gt;

&lt;P&gt;You can set it with &lt;CODE&gt;DATETIME_CONFIG&lt;/CODE&gt; attribute in props.conf file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;sourcetype&amp;gt;]
DATETIME_CONFIG=CURRENT
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 05 Mar 2019 11:56:29 GMT</pubDate>
    <dc:creator>n0str0m08</dc:creator>
    <dc:date>2019-03-05T11:56:29Z</dc:date>
    <item>
      <title>How do you ingest a file with current time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-ingest-a-file-with-current-time/m-p/421756#M95493</link>
      <description>&lt;P&gt;I have files with a time field that is of a previous date . I want to ingest these files in Splunk, but the indexed time of that file should be the current time and not the time of the file . &lt;/P&gt;

&lt;P&gt;How do I do that?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 11:42:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-ingest-a-file-with-current-time/m-p/421756#M95493</guid>
      <dc:creator>test4u</dc:creator>
      <dc:date>2019-03-05T11:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do you ingest a file with current time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-ingest-a-file-with-current-time/m-p/421757#M95494</link>
      <description>&lt;P&gt;Hello @test4u,&lt;/P&gt;

&lt;P&gt;You need to set DATETIME_CONFIG to CURRENT in your &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/Admin/Propsconf"&gt;props.conf&lt;/A&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
DATETIME_CONFIG = CURRENT
...
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Doing so will "will set the time of the event to the time that the event was merged from lines, or worded differently, the time it passed through the aggregator processor."&lt;/P&gt;

&lt;P&gt;You need to do this on your heavy forwarder / indexer. Remember to restart Splunk after making changes to configuration files.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 11:55:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-ingest-a-file-with-current-time/m-p/421757#M95494</guid>
      <dc:creator>whrg</dc:creator>
      <dc:date>2019-03-05T11:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do you ingest a file with current time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-ingest-a-file-with-current-time/m-p/421758#M95495</link>
      <description>&lt;P&gt;Hi @test4u,&lt;/P&gt;

&lt;P&gt;You can set it with &lt;CODE&gt;DATETIME_CONFIG&lt;/CODE&gt; attribute in props.conf file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;sourcetype&amp;gt;]
DATETIME_CONFIG=CURRENT
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Mar 2019 11:56:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-ingest-a-file-with-current-time/m-p/421758#M95495</guid>
      <dc:creator>n0str0m08</dc:creator>
      <dc:date>2019-03-05T11:56:29Z</dc:date>
    </item>
  </channel>
</rss>

