<?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 Gather fields from regExp and XML and doing an bool Check for a value in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Gather-fields-from-regExp-and-XML-and-doing-an-bool-Check-for-a/m-p/243559#M15121</link>
    <description>&lt;P&gt;Is this where I use RegularExpression or Xml Tag Extract?&lt;BR /&gt;
I am trying to create a search that shows when this value is 1 or zero on issuepolicy and gather the GUID in UI Event.&lt;BR /&gt;
ideally an report that shows the GUID UIEvent and 0 or 1 from issuepolicy.&lt;/P&gt;

&lt;P&gt;my RegEx works... Just not in splunk or with extracting the field &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?&amp;lt;=UIEvent \[)([^\]]*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and when I tried to extract the xml nothing seemed to notice the pipe&lt;BR /&gt;
    [search index=mainSvr customers | xmlkv issueNews ]&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;03/09/2016 08:16:51 AM 
LogName=Application ... 
8 lines omitted ... 
Keywords=Classic Message=2016-03-09 08:16:51,752 [7] INFO UIEvent [26fsvas-0316-4500-a9ca-f90d8c961f59] [(null)] [(null)] [(null)] - omghicom14thiswhoa /Response "&amp;lt;?xml version=\"1.0\" encoding=\"utf-8\"?&amp;gt;&amp;lt;apiResponse&amp;gt;&amp;lt;notices /&amp;gt;&amp;lt;trainRide sessionID=\"31E90C35:1CF37F31:7A35FE:02EE4AD521B4:48E12:914CB7768\"&amp;gt;&amp;lt;notices /&amp;gt;&amp;lt;issueNews status=\"success\" historyID=\"27865\" issuepolicy=\"1\"&amp;gt;&amp;lt;notices /&amp;gt;&amp;lt;/issueNews&amp;gt;&amp;lt;/trainRide&amp;gt;&amp;lt;/apiResponse&amp;gt;"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So I am confused can I do this without having access to my server that splunk lives on ? I see some recommend to chang the conf file to allow XML to be automatically parsed.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Mar 2016 13:42:52 GMT</pubDate>
    <dc:creator>geicosean</dc:creator>
    <dc:date>2016-03-09T13:42:52Z</dc:date>
    <item>
      <title>Gather fields from regExp and XML and doing an bool Check for a value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Gather-fields-from-regExp-and-XML-and-doing-an-bool-Check-for-a/m-p/243559#M15121</link>
      <description>&lt;P&gt;Is this where I use RegularExpression or Xml Tag Extract?&lt;BR /&gt;
I am trying to create a search that shows when this value is 1 or zero on issuepolicy and gather the GUID in UI Event.&lt;BR /&gt;
ideally an report that shows the GUID UIEvent and 0 or 1 from issuepolicy.&lt;/P&gt;

&lt;P&gt;my RegEx works... Just not in splunk or with extracting the field &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?&amp;lt;=UIEvent \[)([^\]]*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and when I tried to extract the xml nothing seemed to notice the pipe&lt;BR /&gt;
    [search index=mainSvr customers | xmlkv issueNews ]&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;03/09/2016 08:16:51 AM 
LogName=Application ... 
8 lines omitted ... 
Keywords=Classic Message=2016-03-09 08:16:51,752 [7] INFO UIEvent [26fsvas-0316-4500-a9ca-f90d8c961f59] [(null)] [(null)] [(null)] - omghicom14thiswhoa /Response "&amp;lt;?xml version=\"1.0\" encoding=\"utf-8\"?&amp;gt;&amp;lt;apiResponse&amp;gt;&amp;lt;notices /&amp;gt;&amp;lt;trainRide sessionID=\"31E90C35:1CF37F31:7A35FE:02EE4AD521B4:48E12:914CB7768\"&amp;gt;&amp;lt;notices /&amp;gt;&amp;lt;issueNews status=\"success\" historyID=\"27865\" issuepolicy=\"1\"&amp;gt;&amp;lt;notices /&amp;gt;&amp;lt;/issueNews&amp;gt;&amp;lt;/trainRide&amp;gt;&amp;lt;/apiResponse&amp;gt;"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So I am confused can I do this without having access to my server that splunk lives on ? I see some recommend to chang the conf file to allow XML to be automatically parsed.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 13:42:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Gather-fields-from-regExp-and-XML-and-doing-an-bool-Check-for-a/m-p/243559#M15121</guid>
      <dc:creator>geicosean</dc:creator>
      <dc:date>2016-03-09T13:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Gather fields from regExp and XML and doing an bool Check for a value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Gather-fields-from-regExp-and-XML-and-doing-an-bool-Check-for-a/m-p/243560#M15122</link>
      <description>&lt;P&gt;Your regex doesn't include a field extraction.  Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mainSvr customers | xmlkv issueNews | rex "(?&amp;lt;=UIEvent \[)(?&amp;lt;GUID&amp;gt;[^\]]*).*?issuepolicy=\\\"(?&amp;lt;issuepolicy&amp;gt;\d)" | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Mar 2016 17:42:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Gather-fields-from-regExp-and-XML-and-doing-an-bool-Check-for-a/m-p/243560#M15122</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-03-09T17:42:21Z</dc:date>
    </item>
  </channel>
</rss>

