<?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 How to concatenate multiple tokens and set the combined token in drilldown for automatic search in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-concatenate-multiple-tokens-and-set-the-combined-token-in/m-p/698460#M57255</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a requirement to perform end to search for troubleshooting in a dashboard.&lt;/P&gt;
&lt;P&gt;I am using multiple tokens inside the dashboard.&lt;/P&gt;
&lt;P&gt;Some tokens have a condition to be set or unset depending upon null values.&lt;/P&gt;
&lt;P&gt;However, if any of the tokens are not null, then I should concatenate the tokens and pass the combined token to the other sub searches.&lt;/P&gt;
&lt;P&gt;Note: There is always a token which is not null&lt;/P&gt;
&lt;P&gt;I tried but the other panels always say 'search is waiting for the input'&lt;/P&gt;
&lt;P&gt;Below is a sample snippet from the xml dashboard.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;search&amp;gt;&amp;lt;query&amp;gt;index=foo&amp;lt;/query&amp;gt;&amp;lt;/search&amp;gt;

&amp;lt;drilldown&amp;gt;

&amp;lt;eval "combined"&amp;gt;$token1$. .$token2$. .$token3$. .$token4$. $token5$&amp;lt;/eval&amp;gt;

&amp;lt;set "combined_token"&amp;gt;$combined$&amp;lt;/set&amp;gt;

&amp;lt;/drilldown&amp;gt;



&amp;lt;panel&amp;gt;

&amp;lt;search&amp;gt;&amp;lt;query&amp;gt;index=abc $combined_token$&amp;lt;/query&amp;gt;&amp;lt;/search&amp;gt;

&amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 07 Sep 2024 23:10:44 GMT</pubDate>
    <dc:creator>mandlikarbaaz</dc:creator>
    <dc:date>2024-09-07T23:10:44Z</dc:date>
    <item>
      <title>How to concatenate multiple tokens and set the combined token in drilldown for automatic search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-concatenate-multiple-tokens-and-set-the-combined-token-in/m-p/698460#M57255</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a requirement to perform end to search for troubleshooting in a dashboard.&lt;/P&gt;
&lt;P&gt;I am using multiple tokens inside the dashboard.&lt;/P&gt;
&lt;P&gt;Some tokens have a condition to be set or unset depending upon null values.&lt;/P&gt;
&lt;P&gt;However, if any of the tokens are not null, then I should concatenate the tokens and pass the combined token to the other sub searches.&lt;/P&gt;
&lt;P&gt;Note: There is always a token which is not null&lt;/P&gt;
&lt;P&gt;I tried but the other panels always say 'search is waiting for the input'&lt;/P&gt;
&lt;P&gt;Below is a sample snippet from the xml dashboard.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;search&amp;gt;&amp;lt;query&amp;gt;index=foo&amp;lt;/query&amp;gt;&amp;lt;/search&amp;gt;

&amp;lt;drilldown&amp;gt;

&amp;lt;eval "combined"&amp;gt;$token1$. .$token2$. .$token3$. .$token4$. $token5$&amp;lt;/eval&amp;gt;

&amp;lt;set "combined_token"&amp;gt;$combined$&amp;lt;/set&amp;gt;

&amp;lt;/drilldown&amp;gt;



&amp;lt;panel&amp;gt;

&amp;lt;search&amp;gt;&amp;lt;query&amp;gt;index=abc $combined_token$&amp;lt;/query&amp;gt;&amp;lt;/search&amp;gt;

&amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 07 Sep 2024 23:10:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-concatenate-multiple-tokens-and-set-the-combined-token-in/m-p/698460#M57255</guid>
      <dc:creator>mandlikarbaaz</dc:creator>
      <dc:date>2024-09-07T23:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to concatenate multiple tokens and set the combined token in drilldown for automatic search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-concatenate-multiple-tokens-and-set-the-combined-token-in/m-p/698463#M57256</link>
      <description>&lt;P&gt;All tokens in a search must have a non-null value before the search will run.&lt;/P&gt;&lt;P&gt;Try setting the null tokens to empty strings ("") before the search.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Sep 2024 00:26:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-concatenate-multiple-tokens-and-set-the-combined-token-in/m-p/698463#M57256</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-09-08T00:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to concatenate multiple tokens and set the combined token in drilldown for automatic search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-concatenate-multiple-tokens-and-set-the-combined-token-in/m-p/698586#M57269</link>
      <description>&lt;P&gt;Put "$combined_token$" in the title or description of the first panel.&amp;nbsp; You can then see what is populating the token you depend upon.&amp;nbsp;&amp;nbsp;Also I'm curious about your current eval, I would have opted to make the spaces literal characters or only put in a single concatenation character between tokens.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;eval "combined"&amp;gt;$token1$. .$token2$. .$token3$. .$token4$. $token5$&amp;lt;/eval&amp;gt;&lt;BR /&gt;I would try&lt;BR /&gt;&amp;lt;eval "combined"&amp;gt;$token1$." ".$token2$." ".$token3$." ".$token4$." ".$token5$&amp;lt;/eval&amp;gt;&lt;BR /&gt;or&lt;BR /&gt;&amp;lt;eval "combined"&amp;gt;$token1$.$token2$.$token3$.$token4$.$token5$&amp;lt;/eval&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 18:03:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-concatenate-multiple-tokens-and-set-the-combined-token-in/m-p/698586#M57269</guid>
      <dc:creator>dural_yyz</dc:creator>
      <dc:date>2024-09-09T18:03:40Z</dc:date>
    </item>
  </channel>
</rss>

