<?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: Getting a form to work in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Getting-a-form-to-work/m-p/20228#M726</link>
    <description>&lt;P&gt;I got this to work by using &lt;SEARCHTEMPLATE&gt; instead of &lt;SEARCHNAME&gt; and using the token.   And yes, I was trying to get all panels to use host.  The saved searches were not picking up on the host.  I figured if it would pick up on the time, it would get the host too.   I guess there is something special about time where it works and other variables don't..&lt;/SEARCHNAME&gt;&lt;/SEARCHTEMPLATE&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jul 2010 15:49:42 GMT</pubDate>
    <dc:creator>deltatech</dc:creator>
    <dc:date>2010-07-30T15:49:42Z</dc:date>
    <item>
      <title>Getting a form to work</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Getting-a-form-to-work/m-p/20223#M721</link>
      <description>&lt;P&gt;Can someone tell me why this doesn't work right?  The time picker works when I change the time range but the host choice does not work, it always includes all hosts no matter what I choose in the form.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;


&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Fail2ban Events&amp;lt;/label&amp;gt;


  &amp;lt;fieldset&amp;gt;
    &amp;lt;input type="dropdown" token="host"&amp;gt;
      &amp;lt;label&amp;gt;Host&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All Hosts&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="echo"&amp;gt;Echo&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="zeus"&amp;gt;Zeus&amp;lt;/choice&amp;gt;
    &amp;lt;/input&amp;gt;
      &amp;lt;!-- add default TimePicker --&amp;gt;
      &amp;lt;input type="time" /&amp;gt;
  &amp;lt;/fieldset&amp;gt;



  &amp;lt;label&amp;gt;Fail2ban&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;chart&amp;gt;

      &amp;lt;searchName&amp;gt;fail2ban_jail_time&amp;lt;/searchName&amp;gt;
      &amp;lt;title&amp;gt;Fail2ban Jails&amp;lt;/title&amp;gt;
    &amp;lt;/chart&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;chart&amp;gt;
      &amp;lt;searchName&amp;gt;Fail2Ban_IP&amp;lt;/searchName&amp;gt;
      &amp;lt;title&amp;gt;Fail2ban IPs&amp;lt;/title&amp;gt;
    &amp;lt;/chart&amp;gt;
    &amp;lt;table&amp;gt;
&amp;lt;searchString&amp;gt;sourcetype=fail2ban host="*" jail!="spamdyke" banaction="Ban"  | top src_ip limit=10000&amp;lt;/searchString&amp;gt;

      &amp;lt;title&amp;gt;Fail2ban IPs&amp;lt;/title&amp;gt;
    &amp;lt;/table&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Jul 2010 15:02:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Getting-a-form-to-work/m-p/20223#M721</guid>
      <dc:creator>deltatech</dc:creator>
      <dc:date>2010-07-26T15:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a form to work</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Getting-a-form-to-work/m-p/20224#M722</link>
      <description>&lt;P&gt;Hi deltatech,&lt;/P&gt;

&lt;P&gt;I guess you have to specify the host field as a token.
So I suggest you to change into your search string &lt;/P&gt;

&lt;P&gt;from&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=fail2ban host="*" jail!="spamdyke" banaction="Ban" ....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=fail2ban host=$host$ jail!="spamdyke" banaction="Ban"  ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye&lt;/P&gt;

&lt;P&gt;nik_splunk&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2010 17:25:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Getting-a-form-to-work/m-p/20224#M722</guid>
      <dc:creator>nik_splunk</dc:creator>
      <dc:date>2010-07-26T17:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a form to work</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Getting-a-form-to-work/m-p/20225#M723</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;nik_splunk is right here.&lt;/P&gt;

&lt;P&gt;Look you defined a token to be filled with the picked value from the host list:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="dropdown" token="host"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This token is a kind of a placeholder for the picked value which should be handed over to your search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=fail2ban host=$host$ jail!="spamdyke" banaction="Ban" ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See also documentation:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/4.1.4/Developer/Step2CustomizeForm" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.1.4/Developer/Step2CustomizeForm&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Happy Splunking!&lt;/P&gt;

&lt;P&gt;Cheers,&lt;/P&gt;

&lt;P&gt;Christian&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2010 20:57:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Getting-a-form-to-work/m-p/20225#M723</guid>
      <dc:creator>simuvid</dc:creator>
      <dc:date>2010-07-26T20:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a form to work</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Getting-a-form-to-work/m-p/20226#M724</link>
      <description>&lt;P&gt;I tried that too and it still doesn't work.  Also, note that I never mentioned time anywhere yet time does work.  I am trying to get host to work for all panels, not just the one.    &lt;/P&gt;

&lt;P&gt;host=$host$ still ends up with all hosts no matter what I select.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2010 13:12:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Getting-a-form-to-work/m-p/20226#M724</guid>
      <dc:creator>deltatech</dc:creator>
      <dc:date>2010-07-28T13:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a form to work</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Getting-a-form-to-work/m-p/20227#M725</link>
      <description>&lt;P&gt;Hi deltatech,&lt;/P&gt;

&lt;P&gt;do you want to add the selected host also to 'Fail2ban Jails' and 'Fail2ban IPs'? So you are using a saved search to fill this two panels, but of course the value for the picked host is not used in this search! Is it that what you mean here?&lt;BR /&gt;
If yes, please let me know, because that one would be more sophisticated to do. Can you also post the saved searches here, so I can give you more help here?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2010 14:26:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Getting-a-form-to-work/m-p/20227#M725</guid>
      <dc:creator>simuvid</dc:creator>
      <dc:date>2010-07-28T14:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a form to work</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Getting-a-form-to-work/m-p/20228#M726</link>
      <description>&lt;P&gt;I got this to work by using &lt;SEARCHTEMPLATE&gt; instead of &lt;SEARCHNAME&gt; and using the token.   And yes, I was trying to get all panels to use host.  The saved searches were not picking up on the host.  I figured if it would pick up on the time, it would get the host too.   I guess there is something special about time where it works and other variables don't..&lt;/SEARCHNAME&gt;&lt;/SEARCHTEMPLATE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2010 15:49:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Getting-a-form-to-work/m-p/20228#M726</guid>
      <dc:creator>deltatech</dc:creator>
      <dc:date>2010-07-30T15:49:42Z</dc:date>
    </item>
  </channel>
</rss>

