<?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: Regex to read xml data dynamic in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Regex-to-read-xml-data-dynamic/m-p/365960#M23894</link>
    <description>&lt;P&gt;hi keeplearningbuddy,&lt;BR /&gt;
using this regex you can take all erroCodes and test it at &lt;A href="https://regex101.com/r/9oqQxH/1"&gt;https://regex101.com/r/9oqQxH/1&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\&amp;lt;errorCode&amp;gt;(?&amp;lt;errorCode&amp;gt;[^\&amp;lt;]*)\&amp;lt;\/errorCode&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if instead you like to determine errorCode related to createUser, you can use this regex and test it at &lt;A href="https://regex101.com/r/AhlTiY/1"&gt;https://regex101.com/r/AhlTiY/1&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\&amp;lt;createUser\&amp;gt;[^\&amp;lt;]*\&amp;lt;errorCode&amp;gt;(?&amp;lt;errorCode&amp;gt;[^\&amp;lt;]*)\&amp;lt;\/errorCode&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Sat, 06 May 2017 08:58:28 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2017-05-06T08:58:28Z</dc:date>
    <item>
      <title>Regex to read xml data dynamic</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Regex-to-read-xml-data-dynamic/m-p/365959#M23893</link>
      <description>&lt;P&gt;Hi..&lt;/P&gt;

&lt;P&gt;I am trying to create a dashboard which extracts errorCode field from multiple xmls. Xpath for it would be different for different outputs. For ex: for createUser it is abc and for deleteUser it would be xyz. I need to have the xpath dynamic which extracts errorCode alone. I am trying with below regular expression which I know makes no sense. Please help.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2892i0DE6FCA70897FCC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2893i31A75775DCA89B8B/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 22:02:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Regex-to-read-xml-data-dynamic/m-p/365959#M23893</guid>
      <dc:creator>keeplearningbud</dc:creator>
      <dc:date>2017-05-05T22:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to read xml data dynamic</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Regex-to-read-xml-data-dynamic/m-p/365960#M23894</link>
      <description>&lt;P&gt;hi keeplearningbuddy,&lt;BR /&gt;
using this regex you can take all erroCodes and test it at &lt;A href="https://regex101.com/r/9oqQxH/1"&gt;https://regex101.com/r/9oqQxH/1&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\&amp;lt;errorCode&amp;gt;(?&amp;lt;errorCode&amp;gt;[^\&amp;lt;]*)\&amp;lt;\/errorCode&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if instead you like to determine errorCode related to createUser, you can use this regex and test it at &lt;A href="https://regex101.com/r/AhlTiY/1"&gt;https://regex101.com/r/AhlTiY/1&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\&amp;lt;createUser\&amp;gt;[^\&amp;lt;]*\&amp;lt;errorCode&amp;gt;(?&amp;lt;errorCode&amp;gt;[^\&amp;lt;]*)\&amp;lt;\/errorCode&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 06 May 2017 08:58:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Regex-to-read-xml-data-dynamic/m-p/365960#M23894</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-05-06T08:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to read xml data dynamic</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Regex-to-read-xml-data-dynamic/m-p/365961#M23895</link>
      <description>&lt;P&gt;Thanks Giuseppe. This worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 15:17:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Regex-to-read-xml-data-dynamic/m-p/365961#M23895</guid>
      <dc:creator>keeplearningbud</dc:creator>
      <dc:date>2017-05-08T15:17:28Z</dc:date>
    </item>
  </channel>
</rss>

