<?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: Why does my drilldown with the rex command return an &amp;quot;Unbalanced quotes&amp;quot; error? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-drilldown-with-the-rex-command-return-an-quot/m-p/404487#M116994</link>
    <description>&lt;P&gt;Thank you, it works.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Nov 2018 14:55:24 GMT</pubDate>
    <dc:creator>damucka</dc:creator>
    <dc:date>2018-11-27T14:55:24Z</dc:date>
    <item>
      <title>Why does my drilldown with the rex command return an "Unbalanced quotes" error?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-drilldown-with-the-rex-command-return-an-quot/m-p/404485#M116992</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have the following drilldown in my dashboard panel:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;          &amp;lt;link target="_blank"&amp;gt;&amp;lt;![CDATA[search?q=index=mlbso sourcetype=$SYSID$_hanatraces earliest=$earliesttime$ latest=$latesttime$ [search index=mlbso sourcetype=$SYSID$_hanatraces  "ALTER SYSTEM ALTER CONFIGURATION" earliest=$earliesttime$ latest=$latesttime$ | rex field=_raw "(?i)(?&amp;lt;=configuration is changed by )(?P&amp;lt;CONNECTION_ID&amp;gt;(?s)(.*))(?=, client ip)" | return $CONNECTION_ID]]]&amp;gt;&amp;lt;/link&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I execute it, I get the following search string presented and an "Unbalanced quotes" error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mlbso sourcetype=BWP_hanatraces earliest=1543313122.531 latest=1543313122.537 [search index=mlbso sourcetype=BWP_hanatraces  "ALTER SYSTEM ALTER CONFIGURATION" earliest=1543313122.531 latest=1543313122.537 | rex field=_raw "(
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How would I overcome this issue?&lt;/P&gt;

&lt;P&gt;Kind Regards,&lt;/P&gt;

&lt;P&gt;Kamil    &lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 14:00:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-drilldown-with-the-rex-command-return-an-quot/m-p/404485#M116992</guid>
      <dc:creator>damucka</dc:creator>
      <dc:date>2018-11-27T14:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my drilldown with the rex command return an "Unbalanced quotes" error?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-drilldown-with-the-rex-command-return-an-quot/m-p/404486#M116993</link>
      <description>&lt;P&gt;Hi, seems like the question mark is messing things up, replace all the question marks with %3F:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;link target="_blank"&amp;gt;    &amp;lt;![CDATA[search?q=index=mlbso sourcetype=$SYSID$_hanatraces earliest=$earliesttime$ latest=$latesttime$ [search index=mlbso sourcetype=$SYSID$_hanatraces  "ALTER SYSTEM ALTER CONFIGURATION" earliest=$earliesttime$ latest=$latesttime$ | rex field=_raw "(%3Fi)(%3F&amp;lt;=configuration is changed by )(%3FP&amp;lt;CONNECTION_ID&amp;gt;(%3Fs)(.*))(%3F=, client ip)" | return $CONNECTION_ID]]]&amp;gt;&amp;lt;/link&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Nov 2018 14:33:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-drilldown-with-the-rex-command-return-an-quot/m-p/404486#M116993</guid>
      <dc:creator>MathiasLindblom</dc:creator>
      <dc:date>2018-11-27T14:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my drilldown with the rex command return an "Unbalanced quotes" error?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-drilldown-with-the-rex-command-return-an-quot/m-p/404487#M116994</link>
      <description>&lt;P&gt;Thank you, it works.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 14:55:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-drilldown-with-the-rex-command-return-an-quot/m-p/404487#M116994</guid>
      <dc:creator>damucka</dc:creator>
      <dc:date>2018-11-27T14:55:24Z</dc:date>
    </item>
  </channel>
</rss>

