<?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: dashboard can add value to lookup through submit button.,,,Need a button to remove  from lookup (so users can blacklist and whitelist servers) in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/dashboard-can-add-value-to-lookup-through-submit-button-Need-a/m-p/461949#M30307</link>
    <description>&lt;P&gt;You don't need a button, just create a &lt;CODE&gt;drilldown&lt;/CODE&gt; with SPL like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup alert_blist.csv
| search NOT $click.name$=$click.value$
| outputlookup alert_blist.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Check out the &lt;CODE&gt;Dashboard Examples&lt;/CODE&gt; app for how to build the &lt;CODE&gt;drilldown&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2019 13:50:30 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-10-17T13:50:30Z</dc:date>
    <item>
      <title>dashboard can add value to lookup through submit button.,,,Need a button to remove  from lookup (so users can blacklist and whitelist servers)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dashboard-can-add-value-to-lookup-through-submit-button-Need-a/m-p/461946#M30304</link>
      <description>&lt;P&gt;Hey Splunksters,&lt;/P&gt;

&lt;P&gt;Noob here. I have a dashboard that can add values (server names) to a lookup so users can easily blacklist servers.  The xml below works. However, I need to add a button so the user can remove the server from the blacklist when they are finished.  Any thoughts? Thanks!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Dashboard Blacklist Toggle&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="true" autoRun="false"&amp;gt;
    &amp;lt;input type="text" token="hostname"&amp;gt;
      &amp;lt;label&amp;gt;Host&amp;lt;/label&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row rejects="$field1$"&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| inputlookup alert_blist.csv | table host&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&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;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row depends="$field1$"&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| inputlookup alert_blist.csv | append [ | makeresults | eval host="$hostname$"| fields - _time ] |  table host  | outputlookup alert_blist.csv&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&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;option name="refresh.display"&amp;gt;progressbar&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;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Oct 2019 17:48:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dashboard-can-add-value-to-lookup-through-submit-button-Need-a/m-p/461946#M30304</guid>
      <dc:creator>spluzer</dc:creator>
      <dc:date>2019-10-16T17:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: dashboard can add value to lookup through submit button.,,,Need a button to remove  from lookup (so users can blacklist and whitelist servers)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dashboard-can-add-value-to-lookup-through-submit-button-Need-a/m-p/461947#M30305</link>
      <description>&lt;P&gt;Here's an untested option.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup alert_blist.csv | search NOT [ | makeresults | eval host="$hostname$"| fields host ] |  table host  | outputlookup alert_blist.csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Oct 2019 18:44:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dashboard-can-add-value-to-lookup-through-submit-button-Need-a/m-p/461947#M30305</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-10-16T18:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: dashboard can add value to lookup through submit button.,,,Need a button to remove  from lookup (so users can blacklist and whitelist servers)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dashboard-can-add-value-to-lookup-through-submit-button-Need-a/m-p/461948#M30306</link>
      <description>&lt;P&gt;Thanks. I think I see your logic.   However, I can't figure out how to "plug " it in to the xml.  Forgive me, I'm stooopid.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 12:59:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dashboard-can-add-value-to-lookup-through-submit-button-Need-a/m-p/461948#M30306</guid>
      <dc:creator>spluzer</dc:creator>
      <dc:date>2019-10-17T12:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: dashboard can add value to lookup through submit button.,,,Need a button to remove  from lookup (so users can blacklist and whitelist servers)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dashboard-can-add-value-to-lookup-through-submit-button-Need-a/m-p/461949#M30307</link>
      <description>&lt;P&gt;You don't need a button, just create a &lt;CODE&gt;drilldown&lt;/CODE&gt; with SPL like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup alert_blist.csv
| search NOT $click.name$=$click.value$
| outputlookup alert_blist.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Check out the &lt;CODE&gt;Dashboard Examples&lt;/CODE&gt; app for how to build the &lt;CODE&gt;drilldown&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 13:50:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dashboard-can-add-value-to-lookup-through-submit-button-Need-a/m-p/461949#M30307</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-17T13:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: dashboard can add value to lookup through submit button.,,,Need a button to remove  from lookup (so users can blacklist and whitelist servers)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dashboard-can-add-value-to-lookup-through-submit-button-Need-a/m-p/461950#M30308</link>
      <description>&lt;P&gt;Thanks again.  So, I implemented the click to remove drilldown.  However, it seems to delete the entire lookup. Moreover, it redirects to a new page.  Is there a way to just add another button? rather than drilldown click?&lt;/P&gt;

&lt;P&gt;Dashboard Blacklist Toggle test&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="text" token="hostnamet" searchWhenChanged="true"&amp;gt;
  &amp;lt;label&amp;gt;Host&amp;lt;/label&amp;gt;
&amp;lt;/input&amp;gt;


&amp;lt;panel&amp;gt;
  &amp;lt;table&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;| inputlookup alert_tblist.csv | table host&amp;lt;/query&amp;gt;
      &amp;lt;earliest&amp;gt;-24h@h&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;cell&amp;lt;/option&amp;gt;
     &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
    &amp;lt;drilldown&amp;gt;
      &amp;lt;link target="_self"&amp;gt;search?q=%7C%20inputlookup%20alert_tblist.csv%20%0A%7C%20search%20NOT(host=%22$click.host$%22)%0A%7C%20outputlookup%20alert_tblist.csv&amp;amp;amp;earliest=-24h@h&amp;amp;amp;latest=now&amp;lt;/link&amp;gt;
    &amp;lt;/drilldown&amp;gt;
  &amp;lt;/table&amp;gt;
&amp;lt;/panel&amp;gt;


&amp;lt;panel&amp;gt;
  &amp;lt;table&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;| inputlookup alert_tblist.csv | append [ | makeresults | eval host="$hostnamet$"| fields - _time ] |  table host  | outputlookup alert_tblist.csv&amp;lt;/query&amp;gt;
      &amp;lt;earliest&amp;gt;-24h@h&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;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
  &amp;lt;/table&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Oct 2019 16:14:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dashboard-can-add-value-to-lookup-through-submit-button-Need-a/m-p/461950#M30308</guid>
      <dc:creator>spluzer</dc:creator>
      <dc:date>2019-10-18T16:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: dashboard can add value to lookup through submit button.,,,Need a button to remove  from lookup (so users can blacklist and whitelist servers)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dashboard-can-add-value-to-lookup-through-submit-button-Need-a/m-p/461951#M30309</link>
      <description>&lt;P&gt;I made a slight mistake.  It should be &lt;CODE&gt;NOT $click.name$=$click.value$&lt;/CODE&gt;; the answer has been edited and updated.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 17:31:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dashboard-can-add-value-to-lookup-through-submit-button-Need-a/m-p/461951#M30309</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-18T17:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: dashboard can add value to lookup through submit button.,,,Need a button to remove  from lookup (so users can blacklist and whitelist servers)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dashboard-can-add-value-to-lookup-through-submit-button-Need-a/m-p/461952#M30310</link>
      <description>&lt;P&gt;Thanks again for your help! Ok soooo, It technically works.  However, clicking the hosts redirects to a new page, that runs the query, but only after you select "run" on a splunk outputlookup warning page as follows:&lt;/P&gt;

&lt;P&gt;Warning&lt;/P&gt;

&lt;P&gt;The search you are about to run contains commands that might present a security risk. The commands are: outputlookup&lt;/P&gt;

&lt;P&gt;Do you want to investigate the search string?|&lt;/P&gt;

&lt;P&gt;CANCEL               RUN           INVESTIGATE&lt;/P&gt;

&lt;P&gt;.  Its weird, because I use outputlookup frequently in other context (like a dropdown for instance) and it doesn't require me to select run from a warning pop-up...Anybody else seen this.  Is there a way to stay on the same page (prevent redirect) after clicking the host the user wants to remove? &lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 14:17:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dashboard-can-add-value-to-lookup-through-submit-button-Need-a/m-p/461952#M30310</guid>
      <dc:creator>spluzer</dc:creator>
      <dc:date>2019-10-22T14:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: dashboard can add value to lookup through submit button.,,,Need a button to remove  from lookup (so users can blacklist and whitelist servers)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dashboard-can-add-value-to-lookup-through-submit-button-Need-a/m-p/461953#M30311</link>
      <description>&lt;P&gt;Yes, that is annoying; disable it like this:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Security/SPLsafeguards#Turning_off_the_warning"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Security/SPLsafeguards#Turning_off_the_warning&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Be sure to come back and click &lt;CODE&gt;Accept&lt;/CODE&gt; to close the question.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 18:37:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dashboard-can-add-value-to-lookup-through-submit-button-Need-a/m-p/461953#M30311</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-25T18:37:08Z</dc:date>
    </item>
  </channel>
</rss>

