<?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: Customize Search using input from Dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Customize-Search-using-input-from-Dashboard/m-p/517459#M34664</link>
    <description>&lt;P&gt;You may create a token from the input and pass it in the search.&lt;/P&gt;&lt;P&gt;Please find below a run anywhere example. However, if you are defining input, why don't you set the value as "x/y/z/.." ? Is it a dynamic input?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Search Input&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="token_name"&amp;gt;
      &amp;lt;label&amp;gt;Query&amp;lt;/label&amp;gt;
      &amp;lt;choice value="x-y-z-abc-query-v1"&amp;gt;Query1&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="a-b-c-xyz-query-v2"&amp;gt;Query2&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;eval token="query"&amp;gt;replace(value,"-","/")&amp;lt;/eval&amp;gt;
      &amp;lt;/change&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;| makeresults |eval string="/$query$ Need quick Response"&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&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;/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;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Sep 2020 11:07:20 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2020-09-02T11:07:20Z</dc:date>
    <item>
      <title>Customize Search using input from Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Customize-Search-using-input-from-Dashboard/m-p/517456#M34662</link>
      <description>&lt;P&gt;I want to customise the search using input passed in the dashboard.&lt;/P&gt;&lt;P&gt;The field in the logs have value&amp;nbsp;&amp;nbsp;CLASS="/x/y/z/abc/query/v1 Need quick Response"&lt;/P&gt;&lt;P&gt;The input value passed from Dashboard is&amp;nbsp;x-y-z-abc-query-v1.&lt;/P&gt;&lt;P&gt;We want to search the logs using input parameter in the field CLASS containing value&amp;nbsp;/x/y/z/abc/query/v1.&lt;/P&gt;&lt;P&gt;as the input parameter value format is&amp;nbsp;x-y-z-abc-query-v1 and the value to search is&amp;nbsp;/x/y/z/abc/query/v1, how&amp;nbsp; should the query look like to give result.&lt;/P&gt;&lt;P&gt;Query at the end should look like&amp;nbsp;&amp;nbsp;index= yyy CLASS="/x/y/z/abc/query/v1*" but how to tackle input parameter looks like&amp;nbsp;/x/y/z/abc/query/v1 and search in the Class Field value.&lt;/P&gt;&lt;P&gt;Please assist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 10:11:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Customize-Search-using-input-from-Dashboard/m-p/517456#M34662</guid>
      <dc:creator>SplunkNinja85</dc:creator>
      <dc:date>2020-09-02T10:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Search using input from Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Customize-Search-using-input-from-Dashboard/m-p/517459#M34664</link>
      <description>&lt;P&gt;You may create a token from the input and pass it in the search.&lt;/P&gt;&lt;P&gt;Please find below a run anywhere example. However, if you are defining input, why don't you set the value as "x/y/z/.." ? Is it a dynamic input?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Search Input&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="token_name"&amp;gt;
      &amp;lt;label&amp;gt;Query&amp;lt;/label&amp;gt;
      &amp;lt;choice value="x-y-z-abc-query-v1"&amp;gt;Query1&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="a-b-c-xyz-query-v2"&amp;gt;Query2&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;eval token="query"&amp;gt;replace(value,"-","/")&amp;lt;/eval&amp;gt;
      &amp;lt;/change&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;| makeresults |eval string="/$query$ Need quick Response"&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&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;/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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 11:07:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Customize-Search-using-input-from-Dashboard/m-p/517459#M34664</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-09-02T11:07:20Z</dc:date>
    </item>
  </channel>
</rss>

