<?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: Simple XML drilldown link search won't recognize regex or rex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Simple-XML-drilldown-link-search-won-t-recognize-regex-or-rex/m-p/211316#M61798</link>
    <description>&lt;P&gt;Is it working for you now? I have the same issue.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jun 2018 18:25:57 GMT</pubDate>
    <dc:creator>manikyasandeepg</dc:creator>
    <dc:date>2018-06-21T18:25:57Z</dc:date>
    <item>
      <title>Simple XML drilldown link search won't recognize regex or rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Simple-XML-drilldown-link-search-won-t-recognize-regex-or-rex/m-p/211310#M61792</link>
      <description>&lt;P&gt;I have a dashboard panel with a table. I am able to change the drilldown search when selecting a row in the panel table to open a new window with the new search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=$Environment$ ( program=*shot_director OR program=cryo_director* ) shot_Id=$shotIdPattern$ "Commanded|GoToState" | sort _time | table _time,program,shot_Id,slc_State&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$shotEarliest$&amp;lt;/earliest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;
            /app/search/search?q=search index=$Environment$ "&amp;amp;lt;macro_step_complete&amp;amp;gt;" "Execution of Macro Step " shot_id=$shotIdPattern$ | eval subsystem=shot_supervisor | sort -_time 
          &amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;    
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but when I add the regex&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=taxon (?&amp;lt;ss&amp;gt;[^|]*)[|]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;creating &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;            /app/search/search?q=search index=$Environment$ "&amp;amp;lt;macro_step_complete&amp;amp;gt;" "Execution of Macro Step " shot_id=$shotIdPattern$ | rex field=taxon (?&amp;amp;lt;ss&amp;amp;gt;[^|]*)[|] | eval subsystem=shot_supervisor | sort -_time 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the search window created results in:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=iccs_int "&amp;lt;macro_step_complete&amp;gt;" "Execution of Macro Step " shot_id=N160613-003* | rex field=taxon (
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in the search box and the error&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Error in 'rex' command: Encountered the following error while compiling the regex '(': Regex: missing ) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It seems the "?" in the regex is being consumed before it is being sent to the search app.&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 14:16:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Simple-XML-drilldown-link-search-won-t-recognize-regex-or-rex/m-p/211310#M61792</guid>
      <dc:creator>flegel2</dc:creator>
      <dc:date>2016-06-15T14:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Simple XML drilldown link search won't recognize regex or rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Simple-XML-drilldown-link-search-won-t-recognize-regex-or-rex/m-p/211311#M61793</link>
      <description>&lt;P&gt;Try using CDATA, like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;link&amp;gt;
&amp;lt;![CDATA[
  /app/search/search?q=search index=$Environment$ "&amp;lt;macro_step_complete&amp;gt;" "Execution of Macro Step " shot_id=$shotIdPattern$ | rex field=taxon (?&amp;lt;ss&amp;gt;[^|]*)[|] | eval subsystem=shot_supervisor | sort -_time 
]]&amp;gt;
&amp;lt;/link&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Jun 2016 14:34:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Simple-XML-drilldown-link-search-won-t-recognize-regex-or-rex/m-p/211311#M61793</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-06-15T14:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Simple XML drilldown link search won't recognize regex or rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Simple-XML-drilldown-link-search-won-t-recognize-regex-or-rex/m-p/211312#M61794</link>
      <description>&lt;P&gt;The rex string needs to be in double-quotes like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | rex field=taxon "(?&amp;lt;ss&amp;gt;[^|]*)[|]"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Jun 2016 15:04:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Simple-XML-drilldown-link-search-won-t-recognize-regex-or-rex/m-p/211312#M61794</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-06-15T15:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Simple XML drilldown link search won't recognize regex or rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Simple-XML-drilldown-link-search-won-t-recognize-regex-or-rex/m-p/211313#M61795</link>
      <description>&lt;P&gt;Using CDATA has no effect on the results.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 15:07:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Simple-XML-drilldown-link-search-won-t-recognize-regex-or-rex/m-p/211313#M61795</guid>
      <dc:creator>flegel2</dc:creator>
      <dc:date>2016-06-15T15:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Simple XML drilldown link search won't recognize regex or rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Simple-XML-drilldown-link-search-won-t-recognize-regex-or-rex/m-p/211314#M61796</link>
      <description>&lt;P&gt;The quotes has no effect on the results.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 15:07:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Simple-XML-drilldown-link-search-won-t-recognize-regex-or-rex/m-p/211314#M61796</guid>
      <dc:creator>flegel2</dc:creator>
      <dc:date>2016-06-15T15:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Simple XML drilldown link search won't recognize regex or rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Simple-XML-drilldown-link-search-won-t-recognize-regex-or-rex/m-p/211315#M61797</link>
      <description>&lt;P&gt;@flegel2 I fixed it by placing the ASCII value of ? in the query. Its ASCII value is %3F&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 17:53:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Simple-XML-drilldown-link-search-won-t-recognize-regex-or-rex/m-p/211315#M61797</guid>
      <dc:creator>vsingla1</dc:creator>
      <dc:date>2017-03-10T17:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Simple XML drilldown link search won't recognize regex or rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Simple-XML-drilldown-link-search-won-t-recognize-regex-or-rex/m-p/211316#M61798</link>
      <description>&lt;P&gt;Is it working for you now? I have the same issue.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 18:25:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Simple-XML-drilldown-link-search-won-t-recognize-regex-or-rex/m-p/211316#M61798</guid>
      <dc:creator>manikyasandeepg</dc:creator>
      <dc:date>2018-06-21T18:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Simple XML drilldown link search won't recognize regex or rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Simple-XML-drilldown-link-search-won-t-recognize-regex-or-rex/m-p/211317#M61799</link>
      <description>&lt;P&gt;if you save your search as a 'saved search' and call the drilldown as a link target in your dashboard the rex should work.&lt;BR /&gt;
so:&lt;BR /&gt;
dashboard:&lt;BR /&gt;
search?q=|savedsearch [name of savedsearch] &lt;BR /&gt;
If you've used arguments in your saved search you should als use them in the link of course.&lt;BR /&gt;
Saved search:&lt;BR /&gt;
Here you can use the rex syntax as usualy.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 09:13:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Simple-XML-drilldown-link-search-won-t-recognize-regex-or-rex/m-p/211317#M61799</guid>
      <dc:creator>rrovers</dc:creator>
      <dc:date>2018-07-20T09:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Simple XML drilldown link search won't recognize regex or rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Simple-XML-drilldown-link-search-won-t-recognize-regex-or-rex/m-p/211318#M61800</link>
      <description>&lt;P&gt;Every "?" in the search string must be replaced with %3F.  The only exception is if you are editing .XML dashboard.  In which, you will replace all except for the first one at the beginning of the link section. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;link target="_blank"&amp;gt;search?q=&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;All other ?s must be changed to %3F whether in the extraction, or when escaped out in matching text.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 15:04:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Simple-XML-drilldown-link-search-won-t-recognize-regex-or-rex/m-p/211318#M61800</guid>
      <dc:creator>wilsonite</dc:creator>
      <dc:date>2018-09-11T15:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Simple XML drilldown link search won't recognize regex or rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Simple-XML-drilldown-link-search-won-t-recognize-regex-or-rex/m-p/211319#M61801</link>
      <description>&lt;P&gt;This solution works correctly as well.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 15:09:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Simple-XML-drilldown-link-search-won-t-recognize-regex-or-rex/m-p/211319#M61801</guid>
      <dc:creator>wilsonite</dc:creator>
      <dc:date>2018-09-11T15:09:40Z</dc:date>
    </item>
  </channel>
</rss>

