<?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 How to Force splunk to get timestamp of file created in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-Force-splunk-to-get-timestamp-of-file-created/m-p/459081#M79300</link>
    <description>&lt;P&gt;Hello Splunkers ,&lt;/P&gt;
&lt;P&gt;I have one csv file which gets dumped to location being monitored by splunk UF .&lt;/P&gt;
&lt;P&gt;That csv contains content like this&lt;/P&gt;
&lt;P&gt;19752,"TTYHUJIKNN",sdfsdfsdfsdfwer,sdfsdfsdf,,,"04-04-2019 12:11:31 PM","06-14-2019 09:30:18 AM"&lt;/P&gt;
&lt;P&gt;Time stamp present in above logs will get changed when every time CSV get appended by new entry of logs , &lt;BR /&gt;But i dont want splunk to indexed the event based on timestamp present in logs , i want data to get indexed with the time of creation of file &lt;BR /&gt;like provided below it should be Jul 9 01:28&lt;/P&gt;
&lt;P&gt;-rwxr-xr-x 1 ccc ccc 13308953 Jul 9 01:28 Device_Report07-09-2019.csv&lt;BR /&gt;-rwxr-xr-x 1 ccc ccc 13311527 Jul 10 01:27 Device_Report07-10-2019.csv&lt;/P&gt;
&lt;P&gt;For achieving this i have used props.conf at UF end .&lt;BR /&gt;TIME_PREFIX = ^&lt;BR /&gt;MAX_TIMESTAMP_LOOKAHEAD = 1&lt;/P&gt;
&lt;P&gt;But its not working as expected , Please help&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jul 2022 13:30:39 GMT</pubDate>
    <dc:creator>kannu</dc:creator>
    <dc:date>2022-07-12T13:30:39Z</dc:date>
    <item>
      <title>How to Force splunk to get timestamp of file created</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-Force-splunk-to-get-timestamp-of-file-created/m-p/459081#M79300</link>
      <description>&lt;P&gt;Hello Splunkers ,&lt;/P&gt;
&lt;P&gt;I have one csv file which gets dumped to location being monitored by splunk UF .&lt;/P&gt;
&lt;P&gt;That csv contains content like this&lt;/P&gt;
&lt;P&gt;19752,"TTYHUJIKNN",sdfsdfsdfsdfwer,sdfsdfsdf,,,"04-04-2019 12:11:31 PM","06-14-2019 09:30:18 AM"&lt;/P&gt;
&lt;P&gt;Time stamp present in above logs will get changed when every time CSV get appended by new entry of logs , &lt;BR /&gt;But i dont want splunk to indexed the event based on timestamp present in logs , i want data to get indexed with the time of creation of file &lt;BR /&gt;like provided below it should be Jul 9 01:28&lt;/P&gt;
&lt;P&gt;-rwxr-xr-x 1 ccc ccc 13308953 Jul 9 01:28 Device_Report07-09-2019.csv&lt;BR /&gt;-rwxr-xr-x 1 ccc ccc 13311527 Jul 10 01:27 Device_Report07-10-2019.csv&lt;/P&gt;
&lt;P&gt;For achieving this i have used props.conf at UF end .&lt;BR /&gt;TIME_PREFIX = ^&lt;BR /&gt;MAX_TIMESTAMP_LOOKAHEAD = 1&lt;/P&gt;
&lt;P&gt;But its not working as expected , Please help&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 13:30:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-Force-splunk-to-get-timestamp-of-file-created/m-p/459081#M79300</guid>
      <dc:creator>kannu</dc:creator>
      <dc:date>2022-07-12T13:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Force splunk to get timestamp of file created</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-Force-splunk-to-get-timestamp-of-file-created/m-p/459082#M79301</link>
      <description>&lt;P&gt;The UF won't do anything with those props.conf settings.  Indexers and heavy forwarders will honor them, but they'll just end up throwing a ton of messages in splunkd.log.&lt;/P&gt;

&lt;P&gt;Try putting &lt;CODE&gt;DATETIME_CONFIG = NONE&lt;/CODE&gt; in the indexer's props.conf file.  That's supposed to use the file's modification time.  If that doesn't work, try &lt;CODE&gt;DATETIME_CONFIG = CURRENT&lt;/CODE&gt; to use the current time for the events.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 20:58:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-Force-splunk-to-get-timestamp-of-file-created/m-p/459082#M79301</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-07-10T20:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Force splunk to get timestamp of file created</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-Force-splunk-to-get-timestamp-of-file-created/m-p/459083#M79302</link>
      <description>&lt;P&gt;Ok i , will try that &lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 10:32:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-Force-splunk-to-get-timestamp-of-file-created/m-p/459083#M79302</guid>
      <dc:creator>kannu</dc:creator>
      <dc:date>2019-07-11T10:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Force splunk to get timestamp of file created</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-Force-splunk-to-get-timestamp-of-file-created/m-p/459084#M79303</link>
      <description>&lt;P&gt;from what i've tried (v_7.3.1), &lt;STRONG&gt;NONE&lt;/STRONG&gt; would only insert timestamp if the event/line doesn't hv time info itself, &lt;STRONG&gt;CURRENT&lt;/STRONG&gt; will override timestamp on all event/line. &lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 12:12:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-Force-splunk-to-get-timestamp-of-file-created/m-p/459084#M79303</guid>
      <dc:creator>raisomain</dc:creator>
      <dc:date>2020-03-18T12:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Force splunk to get timestamp of file created</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-Force-splunk-to-get-timestamp-of-file-created/m-p/605291#M105224</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33579"&gt;@kannu&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;did this fix your problem?&lt;BR /&gt;Currently im facing the same, set DATETIME_CONFIG = Current - this inserts the file now in my configured schedule but only the headers of the CSV file..&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 11:40:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-Force-splunk-to-get-timestamp-of-file-created/m-p/605291#M105224</guid>
      <dc:creator>FlorianScho</dc:creator>
      <dc:date>2022-07-12T11:40:50Z</dc:date>
    </item>
  </channel>
</rss>

