<?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: Multivalue XML extraction not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-XML-extraction-not-working/m-p/87821#M22437</link>
    <description>&lt;P&gt;The quantifier * in the REGEX is greedy, so the expression . * is eating up all the chars before the last &amp;lt;/EXPLT&amp;gt;&lt;BR /&gt;
Try adding a ? after the * to make it non-greedy, so the regex "stops" at the next &amp;lt;/EXPLT&amp;gt;, not the last.&lt;/P&gt;

&lt;P&gt;REGEX = (?mis)(&amp;lt;EXPLT&amp;gt;.*?&amp;lt;/EXPLT&amp;gt;)&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jul 2012 10:21:39 GMT</pubDate>
    <dc:creator>andreas</dc:creator>
    <dc:date>2012-07-18T10:21:39Z</dc:date>
    <item>
      <title>Multivalue XML extraction not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-XML-extraction-not-working/m-p/87820#M22436</link>
      <description>&lt;P&gt;I'm trying to add several lines of XML to a multi-valued field.  The data looks like:  &lt;/P&gt;

&lt;P&gt;&amp;lt;EXPLT&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
              &amp;lt;REF&amp;gt;&amp;lt;![CDATA[CVE-2011-4885]]&amp;gt;&amp;lt;/REF&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
              &amp;lt;DESC&amp;gt;&amp;lt;![CDATA[PHP Hashtables Denial of Service - The Exploit-DB Ref : 18296]]&amp;gt;&amp;lt;/DESC&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
              &amp;lt;LINK&amp;gt;&amp;lt;![CDATA[&lt;A href="http://www.exploit-db.com/exploits/18296%5D%5D&amp;gt;&amp;lt;/LINK"&gt;http://www.exploit-db.com/exploits/18296]]&amp;amp;gt;&amp;amp;lt;/LINK&lt;/A&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
            &amp;lt;/EXPLT&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
            &amp;lt;EXPLT&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
              &amp;lt;REF&amp;gt;&amp;lt;![CDATA[CVE-2011-4885]]&amp;gt;&amp;lt;/REF&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
              &amp;lt;DESC&amp;gt;&amp;lt;![CDATA[PHP Hash Table Collision Proof Of Concept - The Exploit-DB Ref : 18305]]&amp;gt;&amp;lt;/DESC&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
              &amp;lt;LINK&amp;gt;&amp;lt;![CDATA[&lt;A href="http://www.exploit-db.com/exploits/18305%5D%5D&amp;gt;&amp;lt;/LINK"&gt;http://www.exploit-db.com/exploits/18305]]&amp;amp;gt;&amp;amp;lt;/LINK&lt;/A&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
            &amp;lt;/EXPLT&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
            &amp;lt;EXPLT&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
              &amp;lt;REF&amp;gt;&amp;lt;![CDATA[CVE-2011-4153]]&amp;gt;&amp;lt;/REF&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
              &amp;lt;DESC&amp;gt;&amp;lt;![CDATA[PHP 5.3.8 Multiple Vulnerabilities - The Exploit-DB Ref : 18370]]&amp;gt;&amp;lt;/DESC&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
              &amp;lt;LINK&amp;gt;&amp;lt;![CDATA[&lt;A href="http://www.exploit-db.com/exploits/18370%5D%5D&amp;gt;&amp;lt;/LINK"&gt;http://www.exploit-db.com/exploits/18370]]&amp;amp;gt;&amp;amp;lt;/LINK&lt;/A&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
            &amp;lt;/EXPLT&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
            &amp;lt;EXPLT&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
              &amp;lt;REF&amp;gt;&amp;lt;![CDATA[CVE-2011-4885]]&amp;gt;&amp;lt;/REF&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
              &amp;lt;DESC&amp;gt;&amp;lt;![CDATA[MyBulletinBoard (MyBB) &amp;lt;= 1.1.5 (CLIENT-IP) SQL Injection Exploit - The Exploit-DB Ref : 2012]]&amp;gt;&amp;lt;/DESC&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
              &amp;lt;LINK&amp;gt;&amp;lt;![CDATA[&lt;A href="http://www.exploit-db.com/exploits/2012%5D%5D&amp;gt;&amp;lt;/LINK"&gt;http://www.exploit-db.com/exploits/2012]]&amp;amp;gt;&amp;amp;lt;/LINK&lt;/A&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
            &amp;lt;/EXPLT&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
            &amp;lt;EXPLT&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
              &amp;lt;REF&amp;gt;&amp;lt;![CDATA[CVE-2012-0781]]&amp;gt;&amp;lt;/REF&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
              &amp;lt;DESC&amp;gt;&amp;lt;![CDATA[PHP 5.3.8 Multiple Vulnerabilities - The Exploit-DB Ref : 18370]]&amp;gt;&amp;lt;/DESC&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
              &amp;lt;LINK&amp;gt;&amp;lt;![CDATA[&lt;A href="http://www.exploit-db.com/exploits/18370%5D%5D&amp;gt;&amp;lt;/LINK"&gt;http://www.exploit-db.com/exploits/18370]]&amp;amp;gt;&amp;amp;lt;/LINK&lt;/A&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
            &amp;lt;/EXPLT&amp;gt;  &lt;/P&gt;

&lt;P&gt;My transforms.conf looks like: &lt;/P&gt;

&lt;P&gt;[qualys_exploit]&lt;BR /&gt;&lt;BR /&gt;
REGEX = (?mis)(&amp;amp;lt;EXPLT&amp;amp;gt;.*&amp;amp;lt;/EXPLT&amp;amp;gt;)&lt;BR /&gt;&lt;BR /&gt;
FORMAT = qualys_exploit::$1&lt;BR /&gt;&lt;BR /&gt;
MV_ADD = true  &lt;/P&gt;

&lt;P&gt;props.conf:  &lt;/P&gt;

&lt;P&gt;REPORT-qualys_exploit = qualys_exploit &lt;/P&gt;

&lt;P&gt;Splunk is taking everything between the first opening EXPLT tag and last closing EXPLT tag and making it a single event.  What am I doing wrong that it's not treating these as multiple individual events?&lt;/P&gt;

&lt;P&gt;Thx.&lt;/P&gt;

&lt;P&gt;C &lt;/P&gt;</description>
      <pubDate>Sun, 01 Jul 2012 00:16:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-XML-extraction-not-working/m-p/87820#M22436</guid>
      <dc:creator>responsys_cm</dc:creator>
      <dc:date>2012-07-01T00:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue XML extraction not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-XML-extraction-not-working/m-p/87821#M22437</link>
      <description>&lt;P&gt;The quantifier * in the REGEX is greedy, so the expression . * is eating up all the chars before the last &amp;lt;/EXPLT&amp;gt;&lt;BR /&gt;
Try adding a ? after the * to make it non-greedy, so the regex "stops" at the next &amp;lt;/EXPLT&amp;gt;, not the last.&lt;/P&gt;

&lt;P&gt;REGEX = (?mis)(&amp;lt;EXPLT&amp;gt;.*?&amp;lt;/EXPLT&amp;gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2012 10:21:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-XML-extraction-not-working/m-p/87821#M22437</guid>
      <dc:creator>andreas</dc:creator>
      <dc:date>2012-07-18T10:21:39Z</dc:date>
    </item>
  </channel>
</rss>

