<?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 DateTime extraction from an XML file - Why are dates not in sequence? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/DateTime-extraction-from-an-XML-file-Why-are-dates-not-in/m-p/642795#M109559</link>
    <description>&lt;P&gt;I am doing some lab work and am struggling with a date/time extraction for an XML file.&lt;/P&gt;
&lt;P&gt;There is *some sucess as I can get the date out of the data (between two &amp;lt;ActionDate&amp;gt; tags) though when I look at the ordering of the data, it is out of sequence.&lt;/P&gt;
&lt;P&gt;I am doing this on a Stand Alone instance via the front end. I am wondering if something is off in my config, can any one advise?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SHOULD_LINEMERGE=false
LINE_BREAKER=([\r\n]+)\s*&amp;lt;Interceptor&amp;gt;
BREAK_ONLY_BEFORE_DATE=null
NO_BINARY_CHECK=true
CHARSET=UTF-8
MAX_TIMESTAMP_LOOKAHEAD=15
TIME_FORMAT=%F
TIME_PREFIX=&amp;lt;ActionDate&amp;gt;
kv_mode=xml
pulldown_type=true
TZ=America/New_York&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a screenshot too with how it is showing. Note the dates are not in sequence. What could be causing this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SpockGin_1-1683715075281.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25315i9C5B4299B06E7C15/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SpockGin_1-1683715075281.png" alt="SpockGin_1-1683715075281.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2023 20:01:06 GMT</pubDate>
    <dc:creator>SpockGin</dc:creator>
    <dc:date>2023-05-10T20:01:06Z</dc:date>
    <item>
      <title>DateTime extraction from an XML file - Why are dates not in sequence?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DateTime-extraction-from-an-XML-file-Why-are-dates-not-in/m-p/642795#M109559</link>
      <description>&lt;P&gt;I am doing some lab work and am struggling with a date/time extraction for an XML file.&lt;/P&gt;
&lt;P&gt;There is *some sucess as I can get the date out of the data (between two &amp;lt;ActionDate&amp;gt; tags) though when I look at the ordering of the data, it is out of sequence.&lt;/P&gt;
&lt;P&gt;I am doing this on a Stand Alone instance via the front end. I am wondering if something is off in my config, can any one advise?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SHOULD_LINEMERGE=false
LINE_BREAKER=([\r\n]+)\s*&amp;lt;Interceptor&amp;gt;
BREAK_ONLY_BEFORE_DATE=null
NO_BINARY_CHECK=true
CHARSET=UTF-8
MAX_TIMESTAMP_LOOKAHEAD=15
TIME_FORMAT=%F
TIME_PREFIX=&amp;lt;ActionDate&amp;gt;
kv_mode=xml
pulldown_type=true
TZ=America/New_York&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a screenshot too with how it is showing. Note the dates are not in sequence. What could be causing this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SpockGin_1-1683715075281.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25315i9C5B4299B06E7C15/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SpockGin_1-1683715075281.png" alt="SpockGin_1-1683715075281.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 20:01:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DateTime-extraction-from-an-XML-file-Why-are-dates-not-in/m-p/642795#M109559</guid>
      <dc:creator>SpockGin</dc:creator>
      <dc:date>2023-05-10T20:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: DateTime extraction from an XML file - Dates not in sequence</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DateTime-extraction-from-an-XML-file-Why-are-dates-not-in/m-p/642798#M109561</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/256366"&gt;@SpockGin&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;add "INDEXED_EXTRACTIONS = XML" to your props.conf, so you can define the field to use as timestamp.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 10:51:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DateTime-extraction-from-an-XML-file-Why-are-dates-not-in/m-p/642798#M109561</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-05-10T10:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: DateTime extraction from an XML file - Dates not in sequence</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DateTime-extraction-from-an-XML-file-Why-are-dates-not-in/m-p/642803#M109563</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply, I have to check,&amp;nbsp; as I have looked at that though the docs do not specify XML as an option.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/Extractfieldsfromfileswithstructureddata" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/Extractfieldsfromfileswithstructureddata&lt;/A&gt;&lt;/P&gt;&lt;P&gt;INDEXED_EXTRACTIONS = &amp;lt;CSV|W3C|TSV|PSV|JSON|HEC&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 11:06:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DateTime-extraction-from-an-XML-file-Why-are-dates-not-in/m-p/642803#M109563</guid>
      <dc:creator>SpockGin</dc:creator>
      <dc:date>2023-05-10T11:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: DateTime extraction from an XML file - Dates not in sequence</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DateTime-extraction-from-an-XML-file-Why-are-dates-not-in/m-p/642807#M109566</link>
      <description>&lt;P&gt;Further to this, I can confirm this works in the app.&lt;/P&gt;&lt;P&gt;The dates being out of sequence is just when doing the front end extractions (as it is not yet indexed). In the app it works properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 11:54:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DateTime-extraction-from-an-XML-file-Why-are-dates-not-in/m-p/642807#M109566</guid>
      <dc:creator>SpockGin</dc:creator>
      <dc:date>2023-05-10T11:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: DateTime extraction from an XML file - Dates not in sequence</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DateTime-extraction-from-an-XML-file-Why-are-dates-not-in/m-p/642808#M109567</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/256366"&gt;@SpockGin&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;sorry: xml isn't in structured indexed!&lt;/P&gt;&lt;P&gt;anyway the TIMR_PREFIX and TIME_FORMAT are wrong, please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TIME_FORMAT=%Y-%m-%d
TIME_PREFIX=\&amp;lt;ActionDate\&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 11:55:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DateTime-extraction-from-an-XML-file-Why-are-dates-not-in/m-p/642808#M109567</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-05-10T11:55:23Z</dc:date>
    </item>
  </channel>
</rss>

