<?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: Requirement of a datetime.xml to extract from eventdata AND filename. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Requirement-of-a-datetime-xml-to-extract-from-eventdata-AND/m-p/89690#M18618</link>
    <description>&lt;P&gt;Old question, but if someone else is having this problem, here's what I did:&lt;/P&gt;

&lt;P&gt;I've had a similar problem and wasn't able to make it work by editing datetime.xml. The difference is that I had the whole timestamp included in the filepath.&lt;/P&gt;

&lt;P&gt;Instead I added this line to my props.conf to override _time. file_date is the timestamp I'v extraxted from my filename.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EVAL-_time=strptime(file_date,"%Y-%m-%d_%H-%M-%S")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 26 Jul 2013 07:42:02 GMT</pubDate>
    <dc:creator>gelica</dc:creator>
    <dc:date>2013-07-26T07:42:02Z</dc:date>
    <item>
      <title>Requirement of a datetime.xml to extract from eventdata AND filename.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Requirement-of-a-datetime-xml-to-extract-from-eventdata-AND/m-p/89689#M18617</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I'm have a requirement of reading historical data that has NO year included in the eventdata. The good news is that the filenames include the year. This means the by default Splunk only extracts the day and month but the year is the current year. How can I override only the year from the filename?&lt;/P&gt;

&lt;P&gt;Many thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2013 16:19:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Requirement-of-a-datetime-xml-to-extract-from-eventdata-AND/m-p/89689#M18617</guid>
      <dc:creator>rschutt</dc:creator>
      <dc:date>2013-01-16T16:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement of a datetime.xml to extract from eventdata AND filename.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Requirement-of-a-datetime-xml-to-extract-from-eventdata-AND/m-p/89690#M18618</link>
      <description>&lt;P&gt;Old question, but if someone else is having this problem, here's what I did:&lt;/P&gt;

&lt;P&gt;I've had a similar problem and wasn't able to make it work by editing datetime.xml. The difference is that I had the whole timestamp included in the filepath.&lt;/P&gt;

&lt;P&gt;Instead I added this line to my props.conf to override _time. file_date is the timestamp I'v extraxted from my filename.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EVAL-_time=strptime(file_date,"%Y-%m-%d_%H-%M-%S")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Jul 2013 07:42:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Requirement-of-a-datetime-xml-to-extract-from-eventdata-AND/m-p/89690#M18618</guid>
      <dc:creator>gelica</dc:creator>
      <dc:date>2013-07-26T07:42:02Z</dc:date>
    </item>
  </channel>
</rss>

