<?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 pass a token from a drop-down input into an eval command in my dashboard search? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-token-from-a-drop-down-input-into-an-eval-command/m-p/146530#M8940</link>
    <description>&lt;P&gt;thank &lt;STRONG&gt;Mr gyslainlastsa&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Apr 2015 14:48:00 GMT</pubDate>
    <dc:creator>fdi01</dc:creator>
    <dc:date>2015-04-20T14:48:00Z</dc:date>
    <item>
      <title>How to pass a token from a drop-down input into an eval command in my dashboard search?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-token-from-a-drop-down-input-into-an-eval-command/m-p/146523#M8933</link>
      <description>&lt;P&gt;hi.&lt;/P&gt;

&lt;P&gt;i have an drop-down field named status with open, closed and inprogess values. like this:&lt;/P&gt;

&lt;P&gt;select status&lt;BR /&gt;
    open&lt;BR /&gt;
    closed &lt;BR /&gt;
    inprogess&lt;/P&gt;

&lt;P&gt;i want to pass a value of status drop-down input to an eval command in my dashboard search when i click on status value like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|eval status=$status$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;how can i do it ??&lt;BR /&gt;
thank.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2015 11:08:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-token-from-a-drop-down-input-into-an-eval-command/m-p/146523#M8933</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2015-04-17T11:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a token from a drop-down input into an eval command in my dashboard search?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-token-from-a-drop-down-input-into-an-eval-command/m-p/146524#M8934</link>
      <description>&lt;P&gt;You need to set your dropdown to supply the selection into your &lt;CODE&gt;status&lt;/CODE&gt;-token, for example by setting the "Token" field while editing the dashboard in the web UI or setting &lt;CODE&gt;token="status"&lt;/CODE&gt; in the &lt;CODE&gt;input&lt;/CODE&gt; tag in XML.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2015 11:30:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-token-from-a-drop-down-input-into-an-eval-command/m-p/146524#M8934</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2015-04-17T11:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a token from a drop-down input into an eval command in my dashboard search?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-token-from-a-drop-down-input-into-an-eval-command/m-p/146525#M8935</link>
      <description>&lt;P&gt;i already created dropdown status.&lt;BR /&gt;
but i want to take a value of status like &lt;BR /&gt;
    |eval status=$status$&lt;BR /&gt;
but don't work. &lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2015 11:46:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-token-from-a-drop-down-input-into-an-eval-command/m-p/146525#M8935</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2015-04-17T11:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a token from a drop-down input into an eval command in my dashboard search?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-token-from-a-drop-down-input-into-an-eval-command/m-p/146526#M8936</link>
      <description>&lt;P&gt;Here's an example of working XML code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
&amp;lt;panel&amp;gt;
  &amp;lt;input type="dropdown" token="lang" searchWhenChanged="true"&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index=twitter | top limit=20 lang&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;fieldForLabel&amp;gt;lang&amp;lt;/fieldForLabel&amp;gt;
    &amp;lt;fieldForValue&amp;gt;lang&amp;lt;/fieldForValue&amp;gt;
    &amp;lt;delimiter&amp;gt; OR &amp;lt;/delimiter&amp;gt;
  &amp;lt;/input&amp;gt;

  &amp;lt;chart&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;index=twitter lang=$lang$ | ...&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;-1d@d&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="charting.chart"&amp;gt;bar&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.chart.nullValueMode"&amp;gt;gaps&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.chart.stackMode"&amp;gt;default&amp;lt;/option&amp;gt;
    ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Apr 2015 12:49:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-token-from-a-drop-down-input-into-an-eval-command/m-p/146526#M8936</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2015-04-17T12:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a token from a drop-down input into an eval command in my dashboard search?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-token-from-a-drop-down-input-into-an-eval-command/m-p/146527#M8937</link>
      <description>&lt;P&gt;jeffland thank for you answer  but  it not  correct.&lt;BR /&gt;
please splunkers i need  help.&lt;BR /&gt;
thank.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2015 13:05:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-token-from-a-drop-down-input-into-an-eval-command/m-p/146527#M8937</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2015-04-17T13:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a token from a drop-down input into an eval command in my dashboard search?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-token-from-a-drop-down-input-into-an-eval-command/m-p/146528#M8938</link>
      <description>&lt;P&gt;It should work; did you adjust the searches according to your data?&lt;BR /&gt;
If you don't want your dropdown to be populated with the possible statuses, you can also supply it with a static selection:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="dropdown" token="status"&amp;gt;
    &amp;lt;label&amp;gt;Statuses&amp;lt;/label&amp;gt;
    &amp;lt;choice value="open"&amp;gt;open&amp;lt;/choice&amp;gt;
    &amp;lt;choice value="closed"&amp;gt;closed&amp;lt;/choice&amp;gt;
    &amp;lt;choice value="inprogress"&amp;gt;inprogess&amp;lt;/choice&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Apr 2015 13:12:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-token-from-a-drop-down-input-into-an-eval-command/m-p/146528#M8938</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2015-04-17T13:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a token from a drop-down input into an eval command in my dashboard search?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-token-from-a-drop-down-input-into-an-eval-command/m-p/146529#M8939</link>
      <description>&lt;P&gt;hi &lt;BR /&gt;
try this&lt;BR /&gt;
     ...|eval status="$status$"&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2015 16:44:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-token-from-a-drop-down-input-into-an-eval-command/m-p/146529#M8939</guid>
      <dc:creator>gyslainlatsa</dc:creator>
      <dc:date>2015-04-17T16:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a token from a drop-down input into an eval command in my dashboard search?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-token-from-a-drop-down-input-into-an-eval-command/m-p/146530#M8940</link>
      <description>&lt;P&gt;thank &lt;STRONG&gt;Mr gyslainlastsa&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2015 14:48:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-token-from-a-drop-down-input-into-an-eval-command/m-p/146530#M8940</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2015-04-20T14:48:00Z</dc:date>
    </item>
  </channel>
</rss>

