<?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 add a search box on a dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-add-a-search-box-on-a-dashboard/m-p/320221#M40050</link>
    <description>&lt;P&gt;Hi Splunkers, I just wanna ask if anyone has done this. I wanted to a add splunk search bar like this to my dashboard. &lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4188i55E6B797FF2C5A49/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;how to add it? Do I need to add it by using script or i just need to call it? thanks in advance! &lt;/P&gt;</description>
    <pubDate>Fri, 19 Jan 2018 06:51:56 GMT</pubDate>
    <dc:creator>japposadas</dc:creator>
    <dc:date>2018-01-19T06:51:56Z</dc:date>
    <item>
      <title>how to add a search box on a dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-add-a-search-box-on-a-dashboard/m-p/320221#M40050</link>
      <description>&lt;P&gt;Hi Splunkers, I just wanna ask if anyone has done this. I wanted to a add splunk search bar like this to my dashboard. &lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4188i55E6B797FF2C5A49/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;how to add it? Do I need to add it by using script or i just need to call it? thanks in advance! &lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 06:51:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-add-a-search-box-on-a-dashboard/m-p/320221#M40050</guid>
      <dc:creator>japposadas</dc:creator>
      <dc:date>2018-01-19T06:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a search box on a dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-add-a-search-box-on-a-dashboard/m-p/320222#M40051</link>
      <description>&lt;P&gt;Hi @japposadas,&lt;BR /&gt;
You can add text input and set a token for it as below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="text" token="tokenname" searchWhenChanged="true"&amp;gt;
   &amp;lt;label&amp;gt;Enter a search&amp;lt;/label&amp;gt;
   &amp;lt;suffix&amp;gt;&amp;lt;/suffix&amp;gt;
 &amp;lt;/input&amp;gt;
     &amp;lt;/fieldset&amp;gt;

 &amp;lt;panel&amp;gt;
   &amp;lt;table&amp;gt;
     &amp;lt;search&amp;gt;
       &amp;lt;query&amp;gt;index="indexname"  field=$tokenname$ 
       &amp;lt;/query&amp;gt;
     &amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;use the &lt;CODE&gt;$tokenname$&lt;/CODE&gt; token in your search as required.&lt;BR /&gt;
Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 07:02:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-add-a-search-box-on-a-dashboard/m-p/320222#M40051</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-01-19T07:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a search box on a dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-add-a-search-box-on-a-dashboard/m-p/320223#M40052</link>
      <description>&lt;P&gt;hey try this run anywhere XML&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Text Form Input Element&amp;lt;/label&amp;gt;
  &amp;lt;description&amp;gt;Set search terms by populating a form with textbox input.&amp;lt;/description&amp;gt;
  &amp;lt;fieldset autoRun="true" submitButton="true"&amp;gt;
    &amp;lt;input type="time" token="field1" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Time Picker&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="keyword" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Enter Text&amp;lt;/label&amp;gt;
      &amp;lt;default&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;raw logs for $keyword$&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal $keyword$&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;true&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;For example. you can try searching for &lt;CODE&gt;ERROR&lt;/CODE&gt; keyword in your &lt;CODE&gt;_internal&lt;/CODE&gt; logs&lt;/P&gt;

&lt;P&gt;let me know if this helps !&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 07:37:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-add-a-search-box-on-a-dashboard/m-p/320223#M40052</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-19T07:37:07Z</dc:date>
    </item>
  </channel>
</rss>

