<?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: Fire Dynamic Search Queries based on Tokens in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Fire-Dynamic-Search-Queries-based-on-Tokens/m-p/375341#M169629</link>
    <description>&lt;P&gt;Have 3 panels.: One that &lt;CODE&gt;depends&lt;/CODE&gt; on &lt;CODE&gt;$user_profile$&lt;/CODE&gt;, another that &lt;CODE&gt;depends&lt;/CODE&gt; on &lt;CODE&gt;$user_name$&lt;/CODE&gt;, and a third that &lt;CODE&gt;depends&lt;/CODE&gt; on both.&lt;/P&gt;</description>
    <pubDate>Mon, 07 May 2018 00:42:51 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2018-05-07T00:42:51Z</dc:date>
    <item>
      <title>Fire Dynamic Search Queries based on Tokens</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fire-Dynamic-Search-Queries-based-on-Tokens/m-p/375340#M169628</link>
      <description>&lt;P&gt;I have various Inputs and i want to execute different query based of different token input value.&lt;/P&gt;

&lt;P&gt;Eg. I have 2 different tokens user_name and user_profile.&lt;BR /&gt;
I am displaying the results in a Statistical table.&lt;/P&gt;

&lt;P&gt;Now my search query is:&lt;BR /&gt;
index="main" u_name=$user_name$ AND u_profile=$user_profile$ &lt;/P&gt;

&lt;P&gt;However i want to make the search query as:&lt;BR /&gt;
if($user_name$)  #If $user_name$ token is set &lt;BR /&gt;
  index="main" u_name=$user_name$ &lt;/P&gt;

&lt;P&gt;if($user_profile$) #If $user_profile$ token is set &lt;BR /&gt;
  index="main" u_profile=$user_profile$ &lt;/P&gt;

&lt;P&gt;Please help me out.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:21:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fire-Dynamic-Search-Queries-based-on-Tokens/m-p/375340#M169628</guid>
      <dc:creator>raja21</dc:creator>
      <dc:date>2020-09-29T19:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Fire Dynamic Search Queries based on Tokens</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fire-Dynamic-Search-Queries-based-on-Tokens/m-p/375341#M169629</link>
      <description>&lt;P&gt;Have 3 panels.: One that &lt;CODE&gt;depends&lt;/CODE&gt; on &lt;CODE&gt;$user_profile$&lt;/CODE&gt;, another that &lt;CODE&gt;depends&lt;/CODE&gt; on &lt;CODE&gt;$user_name$&lt;/CODE&gt;, and a third that &lt;CODE&gt;depends&lt;/CODE&gt; on both.&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 00:42:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fire-Dynamic-Search-Queries-based-on-Tokens/m-p/375341#M169629</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-05-07T00:42:51Z</dc:date>
    </item>
  </channel>
</rss>

