<?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: Rex command issue in splunk views in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Rex-command-issue-in-splunk-views/m-p/68450#M17155</link>
    <description>&lt;P&gt;Also your extraction probably doesn't extract what you want. You likely want &lt;CODE&gt;.vbstore/(?&amp;lt;vob&amp;gt;.+?)\.vbs&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jun 2012 09:24:58 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2012-06-06T09:24:58Z</dc:date>
    <item>
      <title>Rex command issue in splunk views</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-command-issue-in-splunk-views/m-p/68444#M17149</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;i am using the below search command in a splunk view as given below.&lt;/P&gt;

&lt;P&gt;index=re sourcetype="clearcase_Log" "Trouble opening VOB database"   earliest=-7d |rex field=_raw ".&lt;EM&gt;vbstore/(?&lt;VOB&gt;.&lt;/VOB&gt;&lt;/EM&gt;).vbs" |&lt;BR /&gt;
stats count as "ERROR INSTANCES" by vob&lt;/P&gt;

&lt;P&gt;&lt;VOB&gt; is causing trouble as we have to place search query inside &lt;OBJECT&gt;&lt;PARAM name="search" /&gt;   tags. I tried to use &amp;lt; and &amp;gt; for &amp;lt; and &amp;gt; respectively which failed too. Can you please help me with the below error?&lt;/OBJECT&gt;&lt;/VOB&gt;&lt;/P&gt;

&lt;P&gt;***&lt;STRONG&gt;&lt;EM&gt;Error in 'rex' command: Encountered the following error while compiling the regex '.*vbstore/(? &lt;BR /&gt;
&lt;VOB&gt; .&lt;/VOB&gt;&lt;/EM&gt;).vbs': Regex: unrecognized character after (? or (?-&lt;/STRONG&gt;****&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:54:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-command-issue-in-splunk-views/m-p/68444#M17149</guid>
      <dc:creator>iamniks</dc:creator>
      <dc:date>2020-09-28T11:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Rex command issue in splunk views</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-command-issue-in-splunk-views/m-p/68445#M17150</link>
      <description>&lt;P&gt;i mean i tried to use (without spaces) &lt;BR /&gt;
&lt;STRONG&gt;"&amp;amp; l t ;" for &amp;lt; and "&amp;amp; g t ;" for &amp;gt; but failed&lt;/STRONG&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2012 07:15:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-command-issue-in-splunk-views/m-p/68445#M17150</guid>
      <dc:creator>iamniks</dc:creator>
      <dc:date>2012-06-06T07:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Rex command issue in splunk views</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-command-issue-in-splunk-views/m-p/68446#M17151</link>
      <description>&lt;P&gt;When you're enclosing the tags that are causing you trouble in an XML document, they are interpreted as part of the XML data rather than as part of the rex command. To specify that these tags are not referring to the XML structure, use the special escaping sequence "&lt;CODE&gt;&amp;lt;![CDATA[&lt;/CODE&gt;" at the beginning of your string and its corresponding end sequence "&lt;CODE&gt;]]&amp;gt;&lt;/CODE&gt;" at the end. Example here: &lt;A href="http://splunk-base.splunk.com/answers/30157/inputlookup-in-view-with-rex"&gt;http://splunk-base.splunk.com/answers/30157/inputlookup-in-view-with-rex&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2012 08:01:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-command-issue-in-splunk-views/m-p/68446#M17151</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-06-06T08:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Rex command issue in splunk views</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-command-issue-in-splunk-views/m-p/68447#M17152</link>
      <description>&lt;P&gt;&lt;EM&gt;Error in 'rex' command: Encountered the following error while compiling the regex '.vbstore/(? &lt;VOB&gt; .).vbs': Regex: unrecognized character after (? or (?-&lt;/VOB&gt;&lt;/EM&gt;**&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2012 09:18:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-command-issue-in-splunk-views/m-p/68447#M17152</guid>
      <dc:creator>iamniks</dc:creator>
      <dc:date>2012-06-06T09:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Rex command issue in splunk views</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-command-issue-in-splunk-views/m-p/68448#M17153</link>
      <description>&lt;P&gt;doesnt work for CDATA also&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2012 09:19:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-command-issue-in-splunk-views/m-p/68448#M17153</guid>
      <dc:creator>iamniks</dc:creator>
      <dc:date>2012-06-06T09:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Rex command issue in splunk views</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-command-issue-in-splunk-views/m-p/68449#M17154</link>
      <description>&lt;P&gt;Are you using a space after the ( character? You shouldn't, it's incorrect syntax and would cause Splunk to throw that error.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2012 09:23:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-command-issue-in-splunk-views/m-p/68449#M17154</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-06-06T09:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Rex command issue in splunk views</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-command-issue-in-splunk-views/m-p/68450#M17155</link>
      <description>&lt;P&gt;Also your extraction probably doesn't extract what you want. You likely want &lt;CODE&gt;.vbstore/(?&amp;lt;vob&amp;gt;.+?)\.vbs&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2012 09:24:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-command-issue-in-splunk-views/m-p/68450#M17155</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-06-06T09:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Rex command issue in splunk views</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-command-issue-in-splunk-views/m-p/68451#M17156</link>
      <description>&lt;P&gt;This works now.. grt thank you . I had left an extra special char.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2012 09:28:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-command-issue-in-splunk-views/m-p/68451#M17156</guid>
      <dc:creator>iamniks</dc:creator>
      <dc:date>2012-06-06T09:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Rex command issue in splunk views</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-command-issue-in-splunk-views/m-p/68452#M17157</link>
      <description>&lt;P&gt;Awesome. Could you please mark my answer as accepted? Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2012 09:33:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-command-issue-in-splunk-views/m-p/68452#M17157</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-06-06T09:33:28Z</dc:date>
    </item>
  </channel>
</rss>

