<?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 How to parse XML and props.conf? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-XML-and-props-conf/m-p/630172#M218927</link>
    <description>&lt;P&gt;This is very similar to a lot of XML parsing questions, however I have read through ~20 topics and am still unable to get my XML log to parse properly.&lt;/P&gt;
&lt;P&gt;Here is a sample of my XML file:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;AuditMessage xmlns:xsi="XMLSchema-instance" xsi:noNamespaceSchemaLocation="HL7-audit-message-payload_1_3.xsd"&amp;gt;&amp;lt;EventIdentification EventActionCode="R" EventDateTime="2022-11-07T04:18:01"&amp;gt;&amp;lt;/EventIdentification&amp;gt;&amp;lt;/AuditMessage&amp;gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;AuditMessage xmlns:xsi="XMLSchema-instance" xsi:noNamespaceSchemaLocation="HL7-audit-message-payload_1_3.xsd"&amp;gt;&amp;lt;EventIdentification EventActionCode="E" EventDateTime="2022-11-07T05:18:01"&amp;gt;&amp;lt;/EventIdentification&amp;gt;&amp;lt;/AuditMessage&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Here are&amp;nbsp;the entire contents of my props.conf file:&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[xxx:xxx:audit:xml]&lt;BR /&gt;MUST_BREAK_AFTER = \&amp;lt;/AuditMessage\&amp;gt;&lt;BR /&gt;KV_MODE = xml&lt;BR /&gt;LINE_BREAKER = ([\r\n]+)&lt;BR /&gt;NO_BINARY_CHECK = true&lt;BR /&gt;SHOULD_LINEMERGE = true&lt;BR /&gt;TIMESTAMP_FIELDS = &amp;lt;EventDateTime&amp;gt;&lt;BR /&gt;TIME_PREFIX = &amp;lt;EventDateTime&amp;gt;&lt;BR /&gt;TIME_FORMAT = %Y-%m-%dT%H:%M:%S&lt;BR /&gt;category = Custom&lt;BR /&gt;disabled = false&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;I would need your assistance to parse the events.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2023 22:21:35 GMT</pubDate>
    <dc:creator>poojithavasanth</dc:creator>
    <dc:date>2023-02-08T22:21:35Z</dc:date>
    <item>
      <title>How to parse XML and props.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-XML-and-props-conf/m-p/630172#M218927</link>
      <description>&lt;P&gt;This is very similar to a lot of XML parsing questions, however I have read through ~20 topics and am still unable to get my XML log to parse properly.&lt;/P&gt;
&lt;P&gt;Here is a sample of my XML file:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;AuditMessage xmlns:xsi="XMLSchema-instance" xsi:noNamespaceSchemaLocation="HL7-audit-message-payload_1_3.xsd"&amp;gt;&amp;lt;EventIdentification EventActionCode="R" EventDateTime="2022-11-07T04:18:01"&amp;gt;&amp;lt;/EventIdentification&amp;gt;&amp;lt;/AuditMessage&amp;gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;AuditMessage xmlns:xsi="XMLSchema-instance" xsi:noNamespaceSchemaLocation="HL7-audit-message-payload_1_3.xsd"&amp;gt;&amp;lt;EventIdentification EventActionCode="E" EventDateTime="2022-11-07T05:18:01"&amp;gt;&amp;lt;/EventIdentification&amp;gt;&amp;lt;/AuditMessage&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Here are&amp;nbsp;the entire contents of my props.conf file:&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[xxx:xxx:audit:xml]&lt;BR /&gt;MUST_BREAK_AFTER = \&amp;lt;/AuditMessage\&amp;gt;&lt;BR /&gt;KV_MODE = xml&lt;BR /&gt;LINE_BREAKER = ([\r\n]+)&lt;BR /&gt;NO_BINARY_CHECK = true&lt;BR /&gt;SHOULD_LINEMERGE = true&lt;BR /&gt;TIMESTAMP_FIELDS = &amp;lt;EventDateTime&amp;gt;&lt;BR /&gt;TIME_PREFIX = &amp;lt;EventDateTime&amp;gt;&lt;BR /&gt;TIME_FORMAT = %Y-%m-%dT%H:%M:%S&lt;BR /&gt;category = Custom&lt;BR /&gt;disabled = false&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;I would need your assistance to parse the events.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 22:21:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-XML-and-props-conf/m-p/630172#M218927</guid>
      <dc:creator>poojithavasanth</dc:creator>
      <dc:date>2023-02-08T22:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing XML and props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-XML-and-props-conf/m-p/630179#M218931</link>
      <description>&lt;P&gt;What exactly are you getting for results?&amp;nbsp; What does "parse properly" mean to you?&lt;/P&gt;&lt;P&gt;I can see that the &lt;FONT face="courier new,courier"&gt;TIME_PREFIX&lt;/FONT&gt; setting is incorrect.&amp;nbsp; Remove the angle brackets and it should work.&lt;/P&gt;&lt;P&gt;Also, the &lt;FONT face="courier new,courier"&gt;TIMESTAMP_FIELDS&lt;/FONT&gt; setting only applies when &lt;FONT face="courier new,courier"&gt;INDEXED_EXTRACTIONS&lt;/FONT&gt; is used.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 20:06:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-XML-and-props-conf/m-p/630179#M218931</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-02-08T20:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse XML and props.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-XML-and-props-conf/m-p/630280#M218966</link>
      <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I removed angle brackers for TIME_PREFIX and it did not work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="poojithavasanth_0-1675945251253.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23807iA64B32A03C7C14F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="poojithavasanth_0-1675945251253.png" alt="poojithavasanth_0-1675945251253.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would want to extract timestamp and other fields from the event to display them.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 12:20:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-XML-and-props-conf/m-p/630280#M218966</guid>
      <dc:creator>poojithavasanth</dc:creator>
      <dc:date>2023-02-09T12:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse XML and props.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-XML-and-props-conf/m-p/630290#M218970</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/250310"&gt;@poojithavasanth&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Below should work;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[xxx:xxx:audit:xml]
SHOULD_LINEMERGE=false
LINE_BREAKER=([\r\n]+)
NO_BINARY_CHECK=true
KV_MODE=xml
TIME_FORMAT=%Y-%m-%dT%H:%M:%S
TIME_PREFIX=EventDateTime="
MAX_TIMESTAMP_LOOKAHEAD=19&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 09 Feb 2023 14:13:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-XML-and-props-conf/m-p/630290#M218970</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-02-09T14:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse XML and props.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-XML-and-props-conf/m-p/630291#M218971</link>
      <description>&lt;P&gt;Looks like we need to be more explicit with the time prefix.&amp;nbsp; Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TIME_PREFIX = EventDateTime="&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 09 Feb 2023 14:19:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-XML-and-props-conf/m-p/630291#M218971</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-02-09T14:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse XML and props.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-XML-and-props-conf/m-p/630295#M218972</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/206061"&gt;@scelikok&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did not get any error; however, I see timestamp being &lt;STRONG&gt;none.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Also, the timestamp in the file is not same as the timestamp which is marked in blue.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="poojithavasanth_2-1675952917706.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23812iDC2A19F406591454/image-size/medium?v=v2&amp;amp;px=400" role="button" title="poojithavasanth_2-1675952917706.png" alt="poojithavasanth_2-1675952917706.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 14:27:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-XML-and-props-conf/m-p/630295#M218972</guid>
      <dc:creator>poojithavasanth</dc:creator>
      <dc:date>2023-02-09T14:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse XML and props.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-XML-and-props-conf/m-p/630300#M218974</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/250310"&gt;@poojithavasanth&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I think you didn't use my settings as they are. Please remove TIMESTAMP_FIELDS setting.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 14:38:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-XML-and-props-conf/m-p/630300#M218974</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-02-09T14:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse XML and props.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-XML-and-props-conf/m-p/630302#M218976</link>
      <description>&lt;P&gt;Perfect. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 14:45:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-XML-and-props-conf/m-p/630302#M218976</guid>
      <dc:creator>poojithavasanth</dc:creator>
      <dc:date>2023-02-09T14:45:15Z</dc:date>
    </item>
  </channel>
</rss>

