<?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 sideview util using simple gate blocking search in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-util-using-simple-gate-blocking-search/m-p/151516#M13613</link>
    <description>&lt;P&gt;I am try to implement this basic example using , I have lookup host_env_mapping  which execute below search from there I am doing pulldown for environment and setting static options as follow. I am not able to proceed as I am getting "Pulldown.html - View CONFIGRATION ERROR - you have specified a &lt;LIST&gt; element with no &lt;VALUE&gt; element" on second pulldown. I am not sure if my lookup have some issue. though my below lookup command is working fine. I am giving sample host_env_mapping file for reference in end,&lt;/VALUE&gt;&lt;/LIST&gt;&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="Search" layoutpanel="panel_row2_col1" autorun="True"&gt;&lt;BR /&gt;
    &lt;OBJECT&gt;&lt;PARAM name="search" /&gt;&amp;lt;![CDATA[&lt;BR /&gt;
| inputlookup host_env_mapping | dedup environment,zone,datacenter | table host hostname datacenter environment information nodetype project zone&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;]]&amp;gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="Pulldown"&amp;gt;
  &amp;lt;param name="postProcess"&amp;gt;dedup $name$ | sort $name$&amp;lt;/param&amp;gt;
  &amp;lt;param name="template"&amp;gt;environment="$value$"&amp;lt;/param&amp;gt;
  &amp;lt;param name="name"&amp;gt;environment&amp;lt;/param&amp;gt;
  &amp;lt;param name="label"&amp;gt;environment&amp;lt;/param&amp;gt;
  &amp;lt;param name="valueField"&amp;gt;$name$&amp;lt;/param&amp;gt;
  &amp;lt;param name="staticOptions"&amp;gt;
    &amp;lt;list&amp;gt;
      &amp;lt;param name="label"&amp;gt;Select...&amp;lt;/param&amp;gt;
      &amp;lt;param name="value"&amp;gt;ZOMG&amp;lt;/param&amp;gt;
    &amp;lt;/list&amp;gt;
  &amp;lt;/param&amp;gt;

  &amp;lt;module name="Search"&amp;gt;
    &amp;lt;param name="search"&amp;gt;&amp;lt;![CDATA[
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;| inputlookup host_env_mapping | search $environment$&lt;/P&gt;

&lt;P&gt;]]&amp;gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;module name="Pulldown"&amp;gt;
      &amp;lt;param name="postProcess"&amp;gt;dedup $name$ | sort $name$&amp;lt;/param&amp;gt;
      &amp;lt;param name="template"&amp;gt;hostname="$value$"&amp;lt;/param&amp;gt;
      &amp;lt;param name="name"&amp;gt;hostname&amp;lt;/param&amp;gt;
      &amp;lt;param name="label"&amp;gt;hostname&amp;lt;/param&amp;gt;
      &amp;lt;param name="valueField"&amp;gt;$name$&amp;lt;/param&amp;gt;
      &amp;lt;param name="staticOptions"&amp;gt;
        &amp;lt;list&amp;gt;
          &amp;lt;param name="label"&amp;gt;Select...&amp;lt;/param&amp;gt;
        &amp;lt;/list&amp;gt;
      &amp;lt;/param&amp;gt;

      &amp;lt;module name="Gate"&amp;gt;
        &amp;lt;param name="requiredKeys"&amp;gt;environment,hostname&amp;lt;/param&amp;gt;

        &amp;lt;module name="Search"&amp;gt;
          &amp;lt;param name="search"&amp;gt;&amp;lt;![CDATA[
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;| inputlookup host_env_mapping| search $environment$ $hostname$ |table environment,zone,datacenter&lt;/P&gt;

&lt;P&gt;]]&amp;gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;          &amp;lt;module name="HiddenChartFormatter"&amp;gt;
            &amp;lt;param name="charting.chart"&amp;gt;line&amp;lt;/param&amp;gt;

            &amp;lt;module name="JSChart" /&amp;gt;
          &amp;lt;/module&amp;gt;
        &amp;lt;/module&amp;gt;
      &amp;lt;/module&amp;gt;
    &amp;lt;/module&amp;gt;
  &amp;lt;/module&amp;gt;
&amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;
  &amp;lt;!-- EXAMPLE END --&amp;gt;&lt;/P&gt;

&lt;P&gt;host_env_mapping.csv &lt;BR /&gt;
datacenter,environment,host,hostname,information,nodetype,other1,other2,project,zone&lt;BR /&gt;
ABC,XYZ,test123.test.com,test123,Execution,web-01,test,test1,Agg,Zone-A&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 16:31:43 GMT</pubDate>
    <dc:creator>sumitnagal</dc:creator>
    <dc:date>2020-09-28T16:31:43Z</dc:date>
    <item>
      <title>sideview util using simple gate blocking search</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-util-using-simple-gate-blocking-search/m-p/151516#M13613</link>
      <description>&lt;P&gt;I am try to implement this basic example using , I have lookup host_env_mapping  which execute below search from there I am doing pulldown for environment and setting static options as follow. I am not able to proceed as I am getting "Pulldown.html - View CONFIGRATION ERROR - you have specified a &lt;LIST&gt; element with no &lt;VALUE&gt; element" on second pulldown. I am not sure if my lookup have some issue. though my below lookup command is working fine. I am giving sample host_env_mapping file for reference in end,&lt;/VALUE&gt;&lt;/LIST&gt;&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="Search" layoutpanel="panel_row2_col1" autorun="True"&gt;&lt;BR /&gt;
    &lt;OBJECT&gt;&lt;PARAM name="search" /&gt;&amp;lt;![CDATA[&lt;BR /&gt;
| inputlookup host_env_mapping | dedup environment,zone,datacenter | table host hostname datacenter environment information nodetype project zone&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;]]&amp;gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="Pulldown"&amp;gt;
  &amp;lt;param name="postProcess"&amp;gt;dedup $name$ | sort $name$&amp;lt;/param&amp;gt;
  &amp;lt;param name="template"&amp;gt;environment="$value$"&amp;lt;/param&amp;gt;
  &amp;lt;param name="name"&amp;gt;environment&amp;lt;/param&amp;gt;
  &amp;lt;param name="label"&amp;gt;environment&amp;lt;/param&amp;gt;
  &amp;lt;param name="valueField"&amp;gt;$name$&amp;lt;/param&amp;gt;
  &amp;lt;param name="staticOptions"&amp;gt;
    &amp;lt;list&amp;gt;
      &amp;lt;param name="label"&amp;gt;Select...&amp;lt;/param&amp;gt;
      &amp;lt;param name="value"&amp;gt;ZOMG&amp;lt;/param&amp;gt;
    &amp;lt;/list&amp;gt;
  &amp;lt;/param&amp;gt;

  &amp;lt;module name="Search"&amp;gt;
    &amp;lt;param name="search"&amp;gt;&amp;lt;![CDATA[
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;| inputlookup host_env_mapping | search $environment$&lt;/P&gt;

&lt;P&gt;]]&amp;gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;module name="Pulldown"&amp;gt;
      &amp;lt;param name="postProcess"&amp;gt;dedup $name$ | sort $name$&amp;lt;/param&amp;gt;
      &amp;lt;param name="template"&amp;gt;hostname="$value$"&amp;lt;/param&amp;gt;
      &amp;lt;param name="name"&amp;gt;hostname&amp;lt;/param&amp;gt;
      &amp;lt;param name="label"&amp;gt;hostname&amp;lt;/param&amp;gt;
      &amp;lt;param name="valueField"&amp;gt;$name$&amp;lt;/param&amp;gt;
      &amp;lt;param name="staticOptions"&amp;gt;
        &amp;lt;list&amp;gt;
          &amp;lt;param name="label"&amp;gt;Select...&amp;lt;/param&amp;gt;
        &amp;lt;/list&amp;gt;
      &amp;lt;/param&amp;gt;

      &amp;lt;module name="Gate"&amp;gt;
        &amp;lt;param name="requiredKeys"&amp;gt;environment,hostname&amp;lt;/param&amp;gt;

        &amp;lt;module name="Search"&amp;gt;
          &amp;lt;param name="search"&amp;gt;&amp;lt;![CDATA[
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;| inputlookup host_env_mapping| search $environment$ $hostname$ |table environment,zone,datacenter&lt;/P&gt;

&lt;P&gt;]]&amp;gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;          &amp;lt;module name="HiddenChartFormatter"&amp;gt;
            &amp;lt;param name="charting.chart"&amp;gt;line&amp;lt;/param&amp;gt;

            &amp;lt;module name="JSChart" /&amp;gt;
          &amp;lt;/module&amp;gt;
        &amp;lt;/module&amp;gt;
      &amp;lt;/module&amp;gt;
    &amp;lt;/module&amp;gt;
  &amp;lt;/module&amp;gt;
&amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;
  &amp;lt;!-- EXAMPLE END --&amp;gt;&lt;/P&gt;

&lt;P&gt;host_env_mapping.csv &lt;BR /&gt;
datacenter,environment,host,hostname,information,nodetype,other1,other2,project,zone&lt;BR /&gt;
ABC,XYZ,test123.test.com,test123,Execution,web-01,test,test1,Agg,Zone-A&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:31:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-util-using-simple-gate-blocking-search/m-p/151516#M13613</guid>
      <dc:creator>sumitnagal</dc:creator>
      <dc:date>2020-09-28T16:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: sideview util using simple gate blocking search</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-util-using-simple-gate-blocking-search/m-p/151517#M13614</link>
      <description>&lt;P&gt;The error message is talking about the value you have set for the &lt;CODE&gt;staticOptions&lt;/CODE&gt; param, in your Pulldown module.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;param name="staticOptions"&amp;gt;
  &amp;lt;list&amp;gt;
    &amp;lt;param name="label"&amp;gt;Select...&amp;lt;/param&amp;gt;
  &amp;lt;/list&amp;gt;
&amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You've created an option that has only a "label" and has no "value" and this is a configuration error.  Add some kind of "value", even if it's just an empty value  &lt;CODE&gt;&amp;lt;param name="value"&amp;gt;&amp;lt;/param&amp;gt;&lt;/CODE&gt;  such that your staticOptions param looks like: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;param name="staticOptions"&amp;gt;
  &amp;lt;list&amp;gt;
    &amp;lt;param name="label"&amp;gt;Select...&amp;lt;/param&amp;gt;
    &amp;lt;param name="value"&amp;gt;&amp;lt;/param&amp;gt;
  &amp;lt;/list&amp;gt;
&amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The error message could definitely be more specific and more clear so I'll update it to be more easily understood. &lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2014 19:02:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-util-using-simple-gate-blocking-search/m-p/151517#M13614</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2014-05-04T19:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: sideview util using simple gate blocking search</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-util-using-simple-gate-blocking-search/m-p/151518#M13615</link>
      <description>&lt;P&gt;I got this, but now when I am editing using sideview editor it is not creating above mentioned param null value, it create below. which make difficult to find, as same example is working in help modules.&lt;BR /&gt;
&lt;OBJECT&gt;&lt;PARAM name="staticOptions" /&gt;&lt;BR /&gt;
  &lt;LIST&gt;&lt;BR /&gt;
    &lt;PARAM name="label" /&gt;Select...&lt;BR /&gt;
  &lt;/LIST&gt;&lt;BR /&gt;
&lt;/OBJECT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2014 06:33:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-util-using-simple-gate-blocking-search/m-p/151518#M13615</guid>
      <dc:creator>sumitnagal</dc:creator>
      <dc:date>2014-05-06T06:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: sideview util using simple gate blocking search</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-util-using-simple-gate-blocking-search/m-p/151519#M13616</link>
      <description>&lt;P&gt;Aha.    I see the problem.  For now just put a single space character in the value, for the entry in &lt;CODE&gt;staticOptions&lt;/CODE&gt;.   Yes the Editor mistakenly omits the value from &lt;CODE&gt;staticOptions&lt;/CODE&gt; in this case, when what it should do is create a value node with a null value.  I will put in a fix for this.   Most of the time when people need a single static option, the default one is what they want (ie if you omit staticOptions entirely, you get a "all/*" option there. )&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2014 17:11:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-util-using-simple-gate-blocking-search/m-p/151519#M13616</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2014-05-08T17:11:01Z</dc:date>
    </item>
  </channel>
</rss>

