<?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: How can we index an entire XML document as one event? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-index-an-entire-XML-document-as-one-event/m-p/345996#M22539</link>
    <description>&lt;P&gt;Gorgeous - thank you !! we ended up extracting the XML fields using a series such as - &lt;CODE&gt;spath mlcpMetricsModel.env&lt;/CODE&gt; ...&lt;/P&gt;</description>
    <pubDate>Mon, 07 Aug 2017 15:19:20 GMT</pubDate>
    <dc:creator>ddrillic</dc:creator>
    <dc:date>2017-08-07T15:19:20Z</dc:date>
    <item>
      <title>How can we index an entire XML document as one event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-index-an-entire-XML-document-as-one-event/m-p/345992#M22535</link>
      <description>&lt;P&gt;We have data as XML documents. How can we index each XML document as one Splunk event?&lt;/P&gt;

&lt;P&gt;A sample -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;
&amp;lt;mlcpMetricsModel xmlns="http://xxxxxxx"&amp;gt;
    &amp;lt;canonical&amp;gt;xxxxxx&amp;lt;/canonical&amp;gt;
    &amp;lt;duration&amp;gt;PT41M3.401S&amp;lt;/duration&amp;gt;
    &amp;lt;env&amp;gt;PROD&amp;lt;/env&amp;gt;
    &amp;lt;ecmProcDateTime&amp;gt;20170727_M&amp;lt;/ecmProcDateTime&amp;gt;
    &amp;lt;outputRecords&amp;gt;4948262&amp;lt;/outputRecords&amp;gt;
    &amp;lt;outputRecordsCommitted&amp;gt;4948262&amp;lt;/outputRecordsCommitted&amp;gt;
    &amp;lt;outputRecordsFailed&amp;gt;0&amp;lt;/outputRecordsFailed&amp;gt;
    &amp;lt;reportDate&amp;gt;2017-08-02T10:49:31&amp;lt;/reportDate&amp;gt;
    &amp;lt;source&amp;gt;CDB&amp;lt;/source&amp;gt;
    &amp;lt;startTime&amp;gt;2017-08-02T10:08:18.512&amp;lt;/startTime&amp;gt;

&amp;lt;/mlcpMetricsModel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Aug 2017 16:16:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-index-an-entire-XML-document-as-one-event/m-p/345992#M22535</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2017-08-02T16:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can we index an entire XML document as one event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-index-an-entire-XML-document-as-one-event/m-p/345993#M22536</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
LINE_BREAKER = ([\r\n]+)(?=\&amp;lt;mlcpMetricsModel )
SHOULD_LINEMERGE = false
TIME_PREFIX = \&amp;lt;reportDate\&amp;gt;
TIME_FORMAT = %Y-%m-%dT%H:%M:%S
MAX_TIMESTAMP_LOOKAHEAD = 19
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Aug 2017 16:21:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-index-an-entire-XML-document-as-one-event/m-p/345993#M22536</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-08-02T16:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can we index an entire XML document as one event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-index-an-entire-XML-document-as-one-event/m-p/345994#M22537</link>
      <description>&lt;P&gt;@somesoni2, I think &lt;CODE&gt;\&amp;lt;startTime\&amp;gt;&lt;/CODE&gt; is a better candidate for TimeStamp. However, @ddrillic must confirm.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 16:56:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-index-an-entire-XML-document-as-one-event/m-p/345994#M22537</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-02T16:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can we index an entire XML document as one event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-index-an-entire-XML-document-as-one-event/m-p/345995#M22538</link>
      <description>&lt;P&gt;Thank you both - let me check...&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 19:14:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-index-an-entire-XML-document-as-one-event/m-p/345995#M22538</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2017-08-02T19:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can we index an entire XML document as one event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-index-an-entire-XML-document-as-one-event/m-p/345996#M22539</link>
      <description>&lt;P&gt;Gorgeous - thank you !! we ended up extracting the XML fields using a series such as - &lt;CODE&gt;spath mlcpMetricsModel.env&lt;/CODE&gt; ...&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2017 15:19:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-index-an-entire-XML-document-as-one-event/m-p/345996#M22539</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2017-08-07T15:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can we index an entire XML document as one event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-index-an-entire-XML-document-as-one-event/m-p/345997#M22540</link>
      <description>&lt;P&gt;Now that I'm preparing for the admin certification, I wonder why @somesoni2 set &lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD = 19&lt;/CODE&gt;, which obviously works but based on the data it appears that the value should be much higher.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 17:29:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-index-an-entire-XML-document-as-one-event/m-p/345997#M22540</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-04-11T17:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can we index an entire XML document as one event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-index-an-entire-XML-document-as-one-event/m-p/345998#M22541</link>
      <description>&lt;P&gt;The timestamp is extracted from &lt;CODE&gt;&amp;lt;reportDate&amp;gt;&lt;/CODE&gt; tag which is &lt;CODE&gt;2017-08-02T10:49:31&lt;/CODE&gt; , 19 character long value.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 17:51:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-index-an-entire-XML-document-as-one-event/m-p/345998#M22541</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-04-11T17:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can we index an entire XML document as one event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-index-an-entire-XML-document-as-one-event/m-p/345999#M22542</link>
      <description>&lt;P&gt;got it ; -) so, if &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; exists it starts from there, otherwise, from the beginning of the line.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 20:40:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-index-an-entire-XML-document-as-one-event/m-p/345999#M22542</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-04-11T20:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can we index an entire XML document as one event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-index-an-entire-XML-document-as-one-event/m-p/346000#M22543</link>
      <description>&lt;P&gt;(thumbs up)&lt;/P&gt;

&lt;P&gt;Just in case it's still confusing for anyone, it's the length of timestamp string represented by TIME_FORMAT string. (&lt;CODE&gt;%Y-%m-%dT%H:%M:%S =&amp;gt; %Y(4)-(1)%m(2)-(1)%d(2)T(1)%H(2):(1)%M(2):(1)%S(2) =&amp;gt; 4+1+2+1+2+1+2+1+2+1+2 =19&lt;/CODE&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 20:50:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-index-an-entire-XML-document-as-one-event/m-p/346000#M22543</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-04-11T20:50:08Z</dc:date>
    </item>
  </channel>
</rss>

