<?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: Extracting XML data attributes from message field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Extracting-XML-data-attributes-from-message-field/m-p/90625#M18816</link>
    <description>&lt;P&gt;a regex will always do the magic you need&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "\smessage=\"(?P&amp;lt;FIELDNAME&amp;gt;[^\"]+)\""
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 11 Jul 2013 21:09:10 GMT</pubDate>
    <dc:creator>asimagu</dc:creator>
    <dc:date>2013-07-11T21:09:10Z</dc:date>
    <item>
      <title>Extracting XML data attributes from message field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extracting-XML-data-attributes-from-message-field/m-p/90624#M18815</link>
      <description>&lt;P&gt;I have XML data stored for an field in my Splunk events and am looking to extract an attribute contained within one of the elements For example, an event will look like&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
LogName=Application&lt;BR /&gt;
SourceName=MyApplication&lt;BR /&gt;
Type=Error&lt;BR /&gt;
Message=&amp;lt;Exception type="SomeType.Value" message="The value I wanted" ....&amp;gt;&amp;lt;/Exception&amp;gt;&lt;BR /&gt;
....&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;How can I extract the message attribute values for the matching events? &lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2013 09:22:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extracting-XML-data-attributes-from-message-field/m-p/90624#M18815</guid>
      <dc:creator>paddy3883</dc:creator>
      <dc:date>2013-07-10T09:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting XML data attributes from message field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extracting-XML-data-attributes-from-message-field/m-p/90625#M18816</link>
      <description>&lt;P&gt;a regex will always do the magic you need&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "\smessage=\"(?P&amp;lt;FIELDNAME&amp;gt;[^\"]+)\""
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Jul 2013 21:09:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extracting-XML-data-attributes-from-message-field/m-p/90625#M18816</guid>
      <dc:creator>asimagu</dc:creator>
      <dc:date>2013-07-11T21:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting XML data attributes from message field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extracting-XML-data-attributes-from-message-field/m-p/90626#M18817</link>
      <description>&lt;P&gt;Excellent, many thanks. This worked a treat&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2013 15:10:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extracting-XML-data-attributes-from-message-field/m-p/90626#M18817</guid>
      <dc:creator>paddy3883</dc:creator>
      <dc:date>2013-07-17T15:10:22Z</dc:date>
    </item>
  </channel>
</rss>

