<?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: Does Splunk use alphabetical order for datetime.xml parsing? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Does-Splunk-use-alphabetical-order-for-datetime-xml-parsing/m-p/445291#M77498</link>
    <description>&lt;P&gt;Yes there is. At the bottom on datetime.xml file, you'd find two Patterns blocks named &lt;CODE&gt;timePatterns&lt;/CODE&gt; and &lt;CODE&gt;datePatterms&lt;/CODE&gt;. In this you'd find element &lt;CODE&gt;&amp;lt;use&amp;gt;&lt;/CODE&gt; which defines the order in which the time/date extraction pattern is applied.&lt;/P&gt;

&lt;P&gt;e.g. if the &lt;CODE&gt;timepatterns&lt;/CODE&gt; is like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;timePatterns&amp;gt;
   &amp;lt;use name="_time"/&amp;gt;
   &amp;lt;use name="_hmtime"/&amp;gt;
...others..
&amp;lt;/timePatterns&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then there will be a &lt;CODE&gt;&amp;lt;define name="_time"..&lt;/CODE&gt; and &lt;CODE&gt;&amp;lt;define name="_hmtime"..&lt;/CODE&gt; defined in the datetime.xml file and they are applied in that order (first _time and then _hmtime is applied).&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jul 2018 19:36:42 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2018-07-16T19:36:42Z</dc:date>
    <item>
      <title>Does Splunk use alphabetical order for datetime.xml parsing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-Splunk-use-alphabetical-order-for-datetime-xml-parsing/m-p/445290#M77497</link>
      <description>&lt;P&gt;Is there a sequence Splunk uses (like alphabetical order) for datetime.xml ? As an example, time pattern "use_this-last"  should be used only last:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;use name="use_this_first"/&amp;gt;

   &amp;lt;use name="use_this-second"/&amp;gt; 

   &amp;lt;use name="use_this-last"/&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Jul 2018 17:21:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-Splunk-use-alphabetical-order-for-datetime-xml-parsing/m-p/445290#M77497</guid>
      <dc:creator>anoopambli</dc:creator>
      <dc:date>2018-07-16T17:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk use alphabetical order for datetime.xml parsing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-Splunk-use-alphabetical-order-for-datetime-xml-parsing/m-p/445291#M77498</link>
      <description>&lt;P&gt;Yes there is. At the bottom on datetime.xml file, you'd find two Patterns blocks named &lt;CODE&gt;timePatterns&lt;/CODE&gt; and &lt;CODE&gt;datePatterms&lt;/CODE&gt;. In this you'd find element &lt;CODE&gt;&amp;lt;use&amp;gt;&lt;/CODE&gt; which defines the order in which the time/date extraction pattern is applied.&lt;/P&gt;

&lt;P&gt;e.g. if the &lt;CODE&gt;timepatterns&lt;/CODE&gt; is like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;timePatterns&amp;gt;
   &amp;lt;use name="_time"/&amp;gt;
   &amp;lt;use name="_hmtime"/&amp;gt;
...others..
&amp;lt;/timePatterns&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then there will be a &lt;CODE&gt;&amp;lt;define name="_time"..&lt;/CODE&gt; and &lt;CODE&gt;&amp;lt;define name="_hmtime"..&lt;/CODE&gt; defined in the datetime.xml file and they are applied in that order (first _time and then _hmtime is applied).&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 19:36:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-Splunk-use-alphabetical-order-for-datetime-xml-parsing/m-p/445291#M77498</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-07-16T19:36:42Z</dc:date>
    </item>
  </channel>
</rss>

