<?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 Using text imput to complete a search string in a dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-text-imput-to-complete-a-search-string-in-a-dashboard/m-p/554005#M38461</link>
    <description>&lt;P&gt;Hello everyone I hope you guys are doing very well,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create my very first dashboard and I have to run a code like this one:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=rent_hotel AND "VOUCHER-56IX75"
| stats values(CLIENT) as ID by tx_uner_rep&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this code will generate a table but... I want to create a dashboard that will allow me to perform this search by having a text input field where I can enter a string that will change the "VOUCHER-" portion for whatever string I submit lets say if I put "893YX" I want the code to run:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=rent_hotel AND "VOUCHER-893YX"
| stats values(CLIENT) as ID by tx_uner_rep&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; and I want my dashboard the generate results only after I click on the&amp;nbsp;submit button... I have tried all day without any luck by the way I using the normal/clasic version&amp;nbsp; of dashboard.. I will really be so thankful if you guys can reference some links on how to achieve this thank you very much&lt;BR /&gt;&lt;BR /&gt;Kindly,&lt;/P&gt;&lt;P&gt;Cindy&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jun 2021 03:19:28 GMT</pubDate>
    <dc:creator>cindygibbs_08</dc:creator>
    <dc:date>2021-06-02T03:19:28Z</dc:date>
    <item>
      <title>Using text imput to complete a search string in a dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-text-imput-to-complete-a-search-string-in-a-dashboard/m-p/554005#M38461</link>
      <description>&lt;P&gt;Hello everyone I hope you guys are doing very well,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create my very first dashboard and I have to run a code like this one:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=rent_hotel AND "VOUCHER-56IX75"
| stats values(CLIENT) as ID by tx_uner_rep&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this code will generate a table but... I want to create a dashboard that will allow me to perform this search by having a text input field where I can enter a string that will change the "VOUCHER-" portion for whatever string I submit lets say if I put "893YX" I want the code to run:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=rent_hotel AND "VOUCHER-893YX"
| stats values(CLIENT) as ID by tx_uner_rep&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; and I want my dashboard the generate results only after I click on the&amp;nbsp;submit button... I have tried all day without any luck by the way I using the normal/clasic version&amp;nbsp; of dashboard.. I will really be so thankful if you guys can reference some links on how to achieve this thank you very much&lt;BR /&gt;&lt;BR /&gt;Kindly,&lt;/P&gt;&lt;P&gt;Cindy&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 03:19:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-text-imput-to-complete-a-search-string-in-a-dashboard/m-p/554005#M38461</guid>
      <dc:creator>cindygibbs_08</dc:creator>
      <dc:date>2021-06-02T03:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using text imput to complete a search string in a dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-text-imput-to-complete-a-search-string-in-a-dashboard/m-p/554008#M38463</link>
      <description>&lt;P&gt;Here's an example dashboard&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;vouchers&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="true" autoRun="false"&amp;gt;
    &amp;lt;input type="text" token="voucher_id"&amp;gt;
      &amp;lt;label&amp;gt;VoucherId&amp;lt;/label&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;search&amp;gt;
          &amp;lt;query&amp;gt;
index=rent_hotel AND "VOUCHER-$voucher_id$"
| stats values(CLIENT) as ID by tx_uner_rep            
          &amp;lt;/query&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;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;100&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;h1&amp;gt;Query being run&amp;lt;/h1&amp;gt;
index=rent_hotel AND "VOUCHER-$voucher_id$"&amp;lt;br/&amp;gt;
| stats values(CLIENT) as ID by tx_uner_rep            
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;and token usage docs are here&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.0/Viz/tokens" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.0/Viz/tokens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 03:30:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-text-imput-to-complete-a-search-string-in-a-dashboard/m-p/554008#M38463</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-06-02T03:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using text imput to complete a search string in a dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-text-imput-to-complete-a-search-string-in-a-dashboard/m-p/554009#M38464</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233702"&gt;@cindygibbs_08&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Example&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false" autoRun="false"&amp;gt;
    &amp;lt;input type="text" token="tkn_input"&amp;gt;
      &amp;lt;label&amp;gt;input&amp;lt;/label&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;search&amp;gt;
          &amp;lt;query&amp;gt;index=rent_hotel AND "VOUCHER-$tkn_input$"
| stats values(CLIENT) as ID by tx_uner_rep&amp;lt;/query&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;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&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;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please refer below links to get more on it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.0/Viz/BuildandeditdashboardswithSimplifiedXML" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.0/Viz/BuildandeditdashboardswithSimplifiedXML&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.2.2104/Viz/CreateDashboards" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.2.2104/Viz/CreateDashboards&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.splunk.com/pdfs/solution-guides/splunk-dashboards-quick-reference-guide.pdf" target="_blank"&gt;https://www.splunk.com/pdfs/solution-guides/splunk-dashboards-quick-reference-guide.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 03:34:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-text-imput-to-complete-a-search-string-in-a-dashboard/m-p/554009#M38464</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-06-02T03:34:15Z</dc:date>
    </item>
  </channel>
</rss>

