<?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 input for splunk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/input-for-splunk/m-p/500017#M99967</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
I should monitor a log file in a Splunk all-in-one windows-based.&lt;BR /&gt;
This file contains a sequence of rows with a time in the format HH:MM:SS and in the file name there is the date (DD-MM-YYYY).&lt;BR /&gt;
How can I associate the right timestamp to the events taking the date from filename and the time from the rows contained in the file?&lt;BR /&gt;
Thanks to everyone for the support.&lt;/P&gt;</description>
    <pubDate>Sat, 16 May 2020 19:28:29 GMT</pubDate>
    <dc:creator>achille83</dc:creator>
    <dc:date>2020-05-16T19:28:29Z</dc:date>
    <item>
      <title>input for splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/input-for-splunk/m-p/500017#M99967</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I should monitor a log file in a Splunk all-in-one windows-based.&lt;BR /&gt;
This file contains a sequence of rows with a time in the format HH:MM:SS and in the file name there is the date (DD-MM-YYYY).&lt;BR /&gt;
How can I associate the right timestamp to the events taking the date from filename and the time from the rows contained in the file?&lt;BR /&gt;
Thanks to everyone for the support.&lt;/P&gt;</description>
      <pubDate>Sat, 16 May 2020 19:28:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/input-for-splunk/m-p/500017#M99967</guid>
      <dc:creator>achille83</dc:creator>
      <dc:date>2020-05-16T19:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: input for splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/input-for-splunk/m-p/500018#M99968</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/159940"&gt;@achille83&lt;/a&gt;&lt;/P&gt;

&lt;P&gt;is the log file modification time/date corresponds with the file name? For example are the events in the 16-05-2020.log being written on 16-05-2020 or later? This is a pretty common scenario and splunk is able to handle it: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/HowSplunkextractstimestamps" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/HowSplunkextractstimestamps&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;If no events in a source have a date, Splunk software tries to find a date in the source name or file name. 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So your option is to configure a correct TIME_FORMAT and TIME_PREFIX and let splunk to extract data from the source file name.&lt;/P&gt;

&lt;P&gt;I've just tested and it works for log named 2020-04-10.log (events have data 10 Apr 2020) but not for 10-04-2020.log so you may need to adjust your software to create logs with a right file name to "help" splunk.&lt;/P&gt;

&lt;P&gt;If all this doesn't work, you can create a custom datetime.xml file, here is an example &lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/configure-splunk-to-pull-a-date-out-of-a-non-standard-filename.html" target="_blank"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/configure-splunk-to-pull-a-date-out-of-a-non-standard-filename.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:25:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/input-for-splunk/m-p/500018#M99968</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-09-30T05:25:50Z</dc:date>
    </item>
  </channel>
</rss>

