<?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: How to create a search box that when text is entered it appends what is searched into each panel on the dashboard? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-box-that-when-text-is-entered-it-appends/m-p/429381#M122835</link>
    <description>&lt;P&gt;After &lt;CODE&gt;| stats count by Time_Taken&lt;/CODE&gt; you don't have a field called user. So in your case, add the &lt;CODE&gt;user="$user$"&lt;/CODE&gt; to the first line of your search, rather than in a separate search command at the bottom.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jun 2019 15:43:58 GMT</pubDate>
    <dc:creator>FrankVl</dc:creator>
    <dc:date>2019-06-19T15:43:58Z</dc:date>
    <item>
      <title>How to create a search box that when text is entered it appends what is searched into each panel on the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-box-that-when-text-is-entered-it-appends/m-p/429374#M122828</link>
      <description>&lt;P&gt;So I am trying to create a searchbox that when text is entered it appends what is searched into each panel on the dashboard.&lt;/P&gt;

&lt;P&gt;For example I want to be able to type in a username and have every panel change it's results to uniquely show for the username that was entered. &lt;/P&gt;

&lt;P&gt;Please help, thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 14:55:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-box-that-when-text-is-entered-it-appends/m-p/429374#M122828</guid>
      <dc:creator>bryceweb22</dc:creator>
      <dc:date>2019-06-19T14:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search box that when text is entered it appends what is searched into each panel on the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-box-that-when-text-is-entered-it-appends/m-p/429375#M122829</link>
      <description>&lt;P&gt;Add a text input, set the token name for instance to user and set the default and initial values to &lt;CODE&gt;*&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;In each of your dashboard search queries, add something like: &lt;CODE&gt;| search user=$user$&lt;/CODE&gt;. Of course highly dependent on the exact fieldname that holds the username in your case, but the concept is the same.&lt;/P&gt;

&lt;P&gt;There is one small caveat with doing this: it will prevent results without a user value from ever showing up. If you want to show also results without a username when no search is entered, then it gets a bit more complicated.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 15:16:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-box-that-when-text-is-entered-it-appends/m-p/429375#M122829</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-06-19T15:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search box that when text is entered it appends what is searched into each panel on the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-box-that-when-text-is-entered-it-appends/m-p/429376#M122830</link>
      <description>&lt;P&gt;Also how far back does this search?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 15:26:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-box-that-when-text-is-entered-it-appends/m-p/429376#M122830</guid>
      <dc:creator>bryceweb22</dc:creator>
      <dc:date>2019-06-19T15:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search box that when text is entered it appends what is searched into each panel on the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-box-that-when-text-is-entered-it-appends/m-p/429377#M122831</link>
      <description>&lt;P&gt;I have done all this and I just get no results found.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 15:27:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-box-that-when-text-is-entered-it-appends/m-p/429377#M122831</guid>
      <dc:creator>bryceweb22</dc:creator>
      <dc:date>2019-06-19T15:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search box that when text is entered it appends what is searched into each panel on the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-box-that-when-text-is-entered-it-appends/m-p/429378#M122832</link>
      <description>&lt;P&gt;Then please share your dashboard xml (or at least the relevant parts of it).&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 15:35:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-box-that-when-text-is-entered-it-appends/m-p/429378#M122832</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-06-19T15:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search box that when text is entered it appends what is searched into each panel on the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-box-that-when-text-is-entered-it-appends/m-p/429379#M122833</link>
      <description>&lt;P&gt;Hi @bryceweb22,&lt;/P&gt;

&lt;P&gt;You can find an example here in the documentation on how to configure a text input :&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Viz/FormEditor#Text_input"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Viz/FormEditor#Text_input&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;An example of input and how to use it here :&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.0/Viz/Buildandeditforms#Basic_form_example"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.0/Viz/Buildandeditforms#Basic_form_example&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Here's a tested simple example that takes a value from the text field and shows it in a table, you can copy paste this and use it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;form&amp;gt;
      &amp;lt;label&amp;gt;My New Dashboard&amp;lt;/label&amp;gt;
      &amp;lt;fieldset submitButton="false"&amp;gt;
        &amp;lt;input type="text" token="Text_Token"&amp;gt;
          &amp;lt;label&amp;gt;Text search&amp;lt;/label&amp;gt;
          &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
          &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
        &amp;lt;/input&amp;gt;
        &amp;lt;input type="time" token="field2"&amp;gt;
          &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
          &amp;lt;default&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;/default&amp;gt;
        &amp;lt;/input&amp;gt;
      &amp;lt;/fieldset&amp;gt;
      &amp;lt;row&amp;gt;
        &amp;lt;panel&amp;gt;
          &amp;lt;table&amp;gt;
            &amp;lt;title&amp;gt;Testing token&amp;lt;/title&amp;gt;
            &amp;lt;search&amp;gt;
              &amp;lt;query&amp;gt;| makeresults | eval A="$Text_Token$"&amp;lt;/query&amp;gt;
              &amp;lt;earliest&amp;gt;$field2.earliest$&amp;lt;/earliest&amp;gt;
              &amp;lt;latest&amp;gt;$field2.latest$&amp;lt;/latest&amp;gt;
            &amp;lt;/search&amp;gt;
            &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
            &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
          &amp;lt;/table&amp;gt;
        &amp;lt;/panel&amp;gt;
      &amp;lt;/row&amp;gt;
    &amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let me know if that helps. In the example above the time applied is always from the time picker, so you can modify that from there if needed.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
David&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 15:36:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-box-that-when-text-is-entered-it-appends/m-p/429379#M122833</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-06-19T15:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search box that when text is entered it appends what is searched into each panel on the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-box-that-when-text-is-entered-it-appends/m-p/429380#M122834</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="time" token="TimeRangePkr" searchWhenChanged="true"&amp;gt;
  &amp;lt;label&amp;gt;Time Range&amp;lt;/label&amp;gt;
  &amp;lt;default&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;/default&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;input type="text" token="user" searchWhenChanged="true"&amp;gt;
  &amp;lt;label&amp;gt;Enter ID&amp;lt;/label&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;index=* sourcetype=* host=*&lt;BR /&gt;
| rex ".*\s(?P&amp;lt;Time_Taken&amp;gt;\d+)$$$$"&lt;BR /&gt;
| stats count by Time_Taken&lt;BR /&gt;
| sort 20 -Time_Taken&lt;BR /&gt;
| search user=$user$&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:58:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-box-that-when-text-is-entered-it-appends/m-p/429380#M122834</guid>
      <dc:creator>bryceweb22</dc:creator>
      <dc:date>2020-09-30T00:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search box that when text is entered it appends what is searched into each panel on the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-box-that-when-text-is-entered-it-appends/m-p/429381#M122835</link>
      <description>&lt;P&gt;After &lt;CODE&gt;| stats count by Time_Taken&lt;/CODE&gt; you don't have a field called user. So in your case, add the &lt;CODE&gt;user="$user$"&lt;/CODE&gt; to the first line of your search, rather than in a separate search command at the bottom.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 15:43:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-box-that-when-text-is-entered-it-appends/m-p/429381#M122835</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-06-19T15:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search box that when text is entered it appends what is searched into each panel on the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-box-that-when-text-is-entered-it-appends/m-p/429382#M122836</link>
      <description>&lt;P&gt;gotcha, well it still isn't working I think because when the username is being passed into $user$ it has user= before it and I just need the username to show up not the user= before it.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 16:01:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-box-that-when-text-is-entered-it-appends/m-p/429382#M122836</guid>
      <dc:creator>bryceweb22</dc:creator>
      <dc:date>2019-06-19T16:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search box that when text is entered it appends what is searched into each panel on the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-box-that-when-text-is-entered-it-appends/m-p/429383#M122837</link>
      <description>&lt;P&gt;Got it to work, really appreciate the help and the reasonable response times!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 16:14:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-box-that-when-text-is-entered-it-appends/m-p/429383#M122837</guid>
      <dc:creator>bryceweb22</dc:creator>
      <dc:date>2019-06-19T16:14:35Z</dc:date>
    </item>
  </channel>
</rss>

