<?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: Trim braces from a token variable-Dynamic dashboards in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Trim-braces-from-a-token-variable-Dynamic-dashboards/m-p/468847#M132006</link>
    <description>&lt;P&gt;Add this above the drilldown:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;eval token="sigteam"&amp;gt;rtrim(ltrim($sigteam$, "("), ")")&amp;lt;/eval&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 20 Dec 2019 21:27:24 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-12-20T21:27:24Z</dc:date>
    <item>
      <title>Trim braces from a token variable-Dynamic dashboards</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trim-braces-from-a-token-variable-Dynamic-dashboards/m-p/468846#M132005</link>
      <description>&lt;P&gt;Im creating   link to different dashboards based on the application clicked on from the main form&lt;/P&gt;

&lt;P&gt;So i have a variable &lt;STRONG&gt;$sig.team$&lt;/STRONG&gt; which is basically selecting team with token prefix as ( and suffix as )as these are needed for my search queries&lt;/P&gt;

&lt;P&gt;so now im linking to different dashboards based on the team selected,,,so i have defined a &lt;STRONG&gt;custom url&lt;/STRONG&gt; with parameters like below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/app/search/$sigteam$_Events_TESTl?form.issuetype=$click.value$&amp;amp;form.time.earliest=$earliest$&amp;amp;form.time.latest=$latest$&amp;amp;form.sigteam=$sigteam$&amp;amp;form.host=*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but when i click that the $sigteam$ resolving to (TESTAPP) instead of TESTAPP because of pre-fix and suffix  like below:&lt;/P&gt;

&lt;P&gt;/app/search/&lt;STRONG&gt;(TESTAPP)_Events&lt;/STRONG&gt;_TESTl?form.issuetype=$click.value$&amp;amp;form.time.earliest=$earliest$&amp;amp;form.time.latest=$latest$&amp;amp;form.sigteam=$sigteam$&amp;amp;form.host=*&lt;/P&gt;

&lt;P&gt;But i need the output URL as :&lt;/P&gt;

&lt;P&gt;/app/search/&lt;STRONG&gt;TESTAPP&lt;/STRONG&gt;_Events_TESTl?form.issuetype=$click.value$&amp;amp;form.time.earliest=$earliest$&amp;amp;form.time.latest=$latest$&amp;amp;form.sigteam=$sigteam$&amp;amp;form.host=*&lt;/P&gt;

&lt;P&gt;Any feedback is welcome...Please suggest how to trim these braces in this scenario&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:25:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trim-braces-from-a-token-variable-Dynamic-dashboards/m-p/468846#M132005</guid>
      <dc:creator>rczone</dc:creator>
      <dc:date>2020-09-30T03:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Trim braces from a token variable-Dynamic dashboards</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trim-braces-from-a-token-variable-Dynamic-dashboards/m-p/468847#M132006</link>
      <description>&lt;P&gt;Add this above the drilldown:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;eval token="sigteam"&amp;gt;rtrim(ltrim($sigteam$, "("), ")")&amp;lt;/eval&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Dec 2019 21:27:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trim-braces-from-a-token-variable-Dynamic-dashboards/m-p/468847#M132006</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-20T21:27:24Z</dc:date>
    </item>
  </channel>
</rss>

