<?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: Prevent &amp;quot; in Drilldown Onclick in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Prevent-quot-in-Drilldown-Onclick/m-p/562524#M195637</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237165"&gt;@jokovitch&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Prevent " in Drilldown Onclick&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;$val$&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults | eval test="\"Dog\"" | table test&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;eval token="val"&amp;gt;replace($click.value$,"\"","\\\"")&amp;lt;/eval&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;search?q=| makeresults | eval test="$val$"&amp;amp;amp;earliest=-24h@h&amp;amp;amp;latest=now&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check drilldown logic.&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Aug 2021 04:43:43 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2021-08-09T04:43:43Z</dc:date>
    <item>
      <title>Prevent " in Drilldown Onclick</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Prevent-quot-in-Drilldown-Onclick/m-p/562510#M195630</link>
      <description>&lt;P&gt;I have Drilldown that show me some Test and this is Onclick:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=main |where Test="$click.value$"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is when $click.value$ contains&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Double quote&lt;/SPAN&gt; (")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then I got an error in Search screen "Unbalanced quotes"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to fix it ?&lt;/P&gt;</description>
      <pubDate>Sun, 08 Aug 2021 12:23:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Prevent-quot-in-Drilldown-Onclick/m-p/562510#M195630</guid>
      <dc:creator>jokovitch</dc:creator>
      <dc:date>2021-08-08T12:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent " in Drilldown Onclick</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Prevent-quot-in-Drilldown-Onclick/m-p/562512#M195631</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237165"&gt;@jokovitch&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this in drilldown search,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$click.value|s$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Viz/tokens#Token_filters" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Viz/tokens#Token_filters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;</description>
      <pubDate>Sun, 08 Aug 2021 13:01:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Prevent-quot-in-Drilldown-Onclick/m-p/562512#M195631</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-08-08T13:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent " in Drilldown Onclick</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Prevent-quot-in-Drilldown-Onclick/m-p/562522#M195635</link>
      <description>&lt;P class="lia-align-left"&gt;That didn't help.&lt;/P&gt;&lt;P class="lia-align-left"&gt;Because it's add " in the beginning and in the end of Test . so now it's open the search Windows with this query&lt;/P&gt;&lt;P class="lia-align-left"&gt;index="main"|where Test=""Dog""&lt;/P&gt;&lt;P class="lia-align-left"&gt;So i got an error : Error in where command: the operator at Dog"" is invalid&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 04:23:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Prevent-quot-in-Drilldown-Onclick/m-p/562522#M195635</guid>
      <dc:creator>jokovitch</dc:creator>
      <dc:date>2021-08-09T04:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent " in Drilldown Onclick</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Prevent-quot-in-Drilldown-Onclick/m-p/562524#M195637</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237165"&gt;@jokovitch&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Prevent " in Drilldown Onclick&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;$val$&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults | eval test="\"Dog\"" | table test&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;eval token="val"&amp;gt;replace($click.value$,"\"","\\\"")&amp;lt;/eval&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;search?q=| makeresults | eval test="$val$"&amp;amp;amp;earliest=-24h@h&amp;amp;amp;latest=now&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check drilldown logic.&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 04:43:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Prevent-quot-in-Drilldown-Onclick/m-p/562524#M195637</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-08-09T04:43:43Z</dc:date>
    </item>
  </channel>
</rss>

