<?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: Extracting event date from file path in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Extracting-event-date-from-file-path/m-p/70274#M14293</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
Did you ever find a way to do this? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2013 05:48:10 GMT</pubDate>
    <dc:creator>gelica</dc:creator>
    <dc:date>2013-07-09T05:48:10Z</dc:date>
    <item>
      <title>Extracting event date from file path</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extracting-event-date-from-file-path/m-p/70270#M14289</link>
      <description>&lt;P&gt;hello all,&lt;/P&gt;

&lt;P&gt;I have a set of log files being created in a directory structure as:&lt;BR /&gt;
/data/hostname/year/month/day/logfile&lt;/P&gt;

&lt;P&gt;I understand that I can use the host_segment command to extract the &lt;HOSTNAME&gt; field. I cannot, however, seem to find a way for splunk to automatically extract the date from this path. Any recommendations would be appreciated.&lt;/HOSTNAME&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2011 00:27:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extracting-event-date-from-file-path/m-p/70270#M14289</guid>
      <dc:creator>swdonline</dc:creator>
      <dc:date>2011-09-05T00:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting event date from file path</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extracting-event-date-from-file-path/m-p/70271#M14290</link>
      <description>&lt;P&gt;While I haven't tried this is a setup of my own, according to the documentation Splunk should be doing this automatically if it cannot find a timestamp for events in a file. &lt;/P&gt;

&lt;P&gt;See the precedence rules for how Splunk assigns timestamps to events here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/HowSplunkextractstimestamps"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/HowSplunkextractstimestamps&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2011 06:58:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extracting-event-date-from-file-path/m-p/70271#M14290</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-09-05T06:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting event date from file path</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extracting-event-date-from-file-path/m-p/70272#M14291</link>
      <description>&lt;P&gt;Thanks Ayn.  I did indeed check the docs prior to posting and what I think is the problem is "4. If no events in a source have a date, look in the source (or file) name (Must have time in the event)."  Specifically, my events have no timestamps.  It's just a summary of items for a 24 hour period.  So it seems to be defaulting to #5 or #6.  Is there a workaround to force date extraction without timestamps? Or a way to force a timestamp of 00:00 without scripting input?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2011 17:13:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extracting-event-date-from-file-path/m-p/70272#M14291</guid>
      <dc:creator>swdonline</dc:creator>
      <dc:date>2011-09-05T17:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting event date from file path</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extracting-event-date-from-file-path/m-p/70273#M14292</link>
      <description>&lt;P&gt;I'm having the same proble,. I'm quite new to splunk.&lt;BR /&gt;
Can anyone please describe more details ?&lt;BR /&gt;
How can I setup dynamic directories based on timestamp?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2012 05:55:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extracting-event-date-from-file-path/m-p/70273#M14292</guid>
      <dc:creator>n0b1ta</dc:creator>
      <dc:date>2012-04-10T05:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting event date from file path</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extracting-event-date-from-file-path/m-p/70274#M14293</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
Did you ever find a way to do this? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2013 05:48:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extracting-event-date-from-file-path/m-p/70274#M14293</guid>
      <dc:creator>gelica</dc:creator>
      <dc:date>2013-07-09T05:48:10Z</dc:date>
    </item>
  </channel>
</rss>

