<?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: Cascading Drop Downs in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cascading-Drop-Downs/m-p/254363#M45196</link>
    <description>&lt;P&gt;Thanks,that works! Regards Robert&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jan 2016 07:47:56 GMT</pubDate>
    <dc:creator>RobertRi</dc:creator>
    <dc:date>2016-01-27T07:47:56Z</dc:date>
    <item>
      <title>Cascading Drop Downs</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cascading-Drop-Downs/m-p/254361#M45194</link>
      <description>&lt;P&gt;Hi Community!&lt;/P&gt;

&lt;P&gt;I'm trying to create a form search, in which the user should:&lt;/P&gt;

&lt;P&gt;1.) Choose a time range in which he suggests the Events&lt;BR /&gt;
2.) Select a host on which he will see the Events&lt;BR /&gt;
3.) Select the desired Event&lt;/P&gt;

&lt;P&gt;Here in the 3rd step, I have the Problem. The user should see a formatted timestamp (Event1_tok) for this one Event and then it should be passed into the original search, but it seems because the timestamp is formated, the search fail.&lt;BR /&gt;
How can I pass the correct timeformat to the search, that I only get this one Event?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Review Config Changes Testing&amp;lt;/label&amp;gt;
  &amp;lt;description&amp;gt;Specify TimeRange in which the events are suggested. Then define HostName and Events to compare.&amp;lt;/description&amp;gt;
  &amp;lt;fieldset autoRun="false"&amp;gt;

    &amp;lt;input type="time" token="TimeRange_tok"&amp;gt;
      &amp;lt;label&amp;gt;Select a Time Range&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliestTime&amp;gt;-15m&amp;lt;/earliestTime&amp;gt;
        &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;

    &amp;lt;input type="dropdown" token="HostName_tok"&amp;gt;
      &amp;lt;label&amp;gt;Select a HostName&amp;lt;/label&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;index=xkm sourcetype=xkmconfig earliest=$TimeRange_tok.earliest$ latest=$TimeRange_tok.latest$ | stats count by host &amp;lt;/query&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;host&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;host&amp;lt;/fieldForValue&amp;gt;
    &amp;lt;/input&amp;gt;

        &amp;lt;input type="dropdown" token="Event1_tok"&amp;gt;
      &amp;lt;label&amp;gt;Select first Event&amp;lt;/label&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;index=xkm sourcetype=xkmconfig host=$HostName_tok$ earliest=$TimeRange_tok.earliest$ latest=$TimeRange_tok.latest$ | eval EventTime1=strftime(_time, "%d.%m.%Y %H:%M:%S") | stats count by EventTime1 &amp;lt;/query&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;EventTime1&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;_time&amp;lt;/fieldForValue&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;



  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;event&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=xkm sourcetype=xkmconfig host=$HostName_tok$ earliest=$Event1_tok$ latest=$Event1_tok$ &amp;lt;/query&amp;gt;
          &amp;lt;!--earliestTime&amp;gt;$ TimeRange_tok.earliest$&amp;lt;/earliestTime&amp;gt;
          &amp;lt;latestTime&amp;gt;$ TimeRange_tok.latest$&amp;lt;/latestTime--&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/event&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;Thank you for your help!&lt;BR /&gt;
Robert&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2016 15:37:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Cascading-Drop-Downs/m-p/254361#M45194</guid>
      <dc:creator>RobertRi</dc:creator>
      <dc:date>2016-01-26T15:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Cascading Drop Downs</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cascading-Drop-Downs/m-p/254362#M45195</link>
      <description>&lt;P&gt;Replace your Event1_tok input definition with this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;input type="dropdown" token="Event1_tok"&amp;gt;
       &amp;lt;label&amp;gt;Select first Event&amp;lt;/label&amp;gt;
       &amp;lt;search&amp;gt;
         &amp;lt;query&amp;gt;index=xkm sourcetype=xkmconfig host=$HostName_tok$ earliest=$TimeRange_tok.earliest$ latest=$TimeRange_tok.latest$ | eval EventTime1=strftime(_time, "%d.%m.%Y %H:%M:%S") | stats count by EventTime1,_time &amp;lt;/query&amp;gt;
       &amp;lt;/search&amp;gt;
       &amp;lt;fieldForLabel&amp;gt;EventTime1&amp;lt;/fieldForLabel&amp;gt;
       &amp;lt;fieldForValue&amp;gt;_time&amp;lt;/fieldForValue&amp;gt;
     &amp;lt;/input&amp;gt;
   &amp;lt;/fieldset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Jan 2016 17:11:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Cascading-Drop-Downs/m-p/254362#M45195</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-01-26T17:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cascading Drop Downs</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cascading-Drop-Downs/m-p/254363#M45196</link>
      <description>&lt;P&gt;Thanks,that works! Regards Robert&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 07:47:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Cascading-Drop-Downs/m-p/254363#M45196</guid>
      <dc:creator>RobertRi</dc:creator>
      <dc:date>2016-01-27T07:47:56Z</dc:date>
    </item>
  </channel>
</rss>

