<?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 have &amp;quot;EQUAL&amp;quot; and &amp;quot;NOT EQUAL TO&amp;quot; filters in DROPDOWN or INPUT PANELS in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-quot-EQUAL-quot-and-quot-NOT-EQUAL-TO-quot-filters/m-p/701402#M57512</link>
    <description>&lt;P&gt;Keep your original text boxes so that the user can enter the ip address (range) but also have either a checkbox for the equal/not equal decision or a pair of radio buttons and use the token from this choice to modify your search.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Oct 2024 10:53:11 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-10-09T10:53:11Z</dc:date>
    <item>
      <title>How to have "EQUAL" and "NOT EQUAL TO" filters in DROPDOWN or INPUT PANELS</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-quot-EQUAL-quot-and-quot-NOT-EQUAL-TO-quot-filters/m-p/701389#M57511</link>
      <description>&lt;P&gt;Hello,&amp;nbsp; I have a dashboard that shows network traffic based on 4 simple text boxes for the user to input&lt;BR /&gt;SRC_IP&lt;BR /&gt;SRC_PORT&lt;BR /&gt;DEST_IP&lt;BR /&gt;DEST_PORT&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;How can we create a filter such as "EQUAL" and "NOT EQUAL TO" options for a&amp;nbsp; DEST_IP input box ?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Requirement is that end user should be to select "NOT EQUAL and enter an ip-address or range to exclude whatever they want to&amp;nbsp; in the input box and accordingly the panels will display the corresponding data.&lt;BR /&gt;&lt;BR /&gt;For example , if they want to exclude all private ips (10.x.x.x)&amp;nbsp; from DEST_IP ,&amp;nbsp; &amp;nbsp;they need to be able to select "NOT EQUAL TO" along with entering "10.0.0.0\8"&amp;nbsp; for this ask.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hope clear.&amp;nbsp; I tried creating MULTISELECT input box as follows but in MULTISELECT box, it does not let a user enter/type any data that they want to manually filter .&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="neerajs_81_0-1728454089409.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33016i06F3F15343B9992F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="neerajs_81_0-1728454089409.png" alt="neerajs_81_0-1728454089409.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="neerajs_81_1-1728454344764.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33017i4FAD32E0BA8CF8DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="neerajs_81_1-1728454344764.png" alt="neerajs_81_1-1728454344764.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance will be highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 06:14:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-quot-EQUAL-quot-and-quot-NOT-EQUAL-TO-quot-filters/m-p/701389#M57511</guid>
      <dc:creator>neerajs_81</dc:creator>
      <dc:date>2024-10-09T06:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to have "EQUAL" and "NOT EQUAL TO" filters in DROPDOWN or INPUT PANELS</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-quot-EQUAL-quot-and-quot-NOT-EQUAL-TO-quot-filters/m-p/701402#M57512</link>
      <description>&lt;P&gt;Keep your original text boxes so that the user can enter the ip address (range) but also have either a checkbox for the equal/not equal decision or a pair of radio buttons and use the token from this choice to modify your search.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 10:53:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-quot-EQUAL-quot-and-quot-NOT-EQUAL-TO-quot-filters/m-p/701402#M57512</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-10-09T10:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to have "EQUAL" and "NOT EQUAL TO" filters in DROPDOWN or INPUT PANELS</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-quot-EQUAL-quot-and-quot-NOT-EQUAL-TO-quot-filters/m-p/701406#M57513</link>
      <description>&lt;P&gt;Thanks, i tried that it&amp;nbsp; works .&amp;nbsp; &amp;nbsp; However,&amp;nbsp; it ends up looking this because as we are using 2 separate input types so there is a huge gap between the radiobox input and the Text box where user enters the IP.&amp;nbsp; The classic dashboard doesn't let me shrink the size of these boxes .&amp;nbsp; Is there any way to merge/ bring them closer under one Title / Header - "Destination IP"&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="neerajs_81_0-1728473042966.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33021i5B63FD2FF5CED3EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="neerajs_81_0-1728473042966.png" alt="neerajs_81_0-1728473042966.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Below is my code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form version="1.1" theme="light"&amp;gt;
  &amp;lt;label&amp;gt;test&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;&amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Destination IP&amp;lt;/title&amp;gt;
      &amp;lt;input type="radio" token="condition" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
        &amp;lt;choice value="="&amp;gt;EQUAL&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="!="&amp;gt;NOT EQUAL&amp;lt;/choice&amp;gt;
        &amp;lt;search&amp;gt;
          &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;default&amp;gt;=&amp;lt;/default&amp;gt;
        &amp;lt;initialValue&amp;gt;=&amp;lt;/initialValue&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;input type="text" token="dest_ip" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;dest_ip&amp;lt;/label&amp;gt;
        &amp;lt;default&amp;gt;&amp;lt;/default&amp;gt;
      &amp;lt;/input&amp;gt;
             &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;dest_ip_graph&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=aws_vpc_flow_logs aws_account_id="*60036" dest_ip$condition$$dest_ip$ | stats count(vpcflow_action) as flowCount sum(packets) as pktCount sum(bytes) as sumBytes by aws_account_id instance_id src_ip src_port dest_ip dest_port action flow_direction interface_id vpc_id | eval pkt(million)=round((pktCount)/10000) | eval bytes(GB)=round((sumBytes)/1024/1024/1024) | iplocation src_ip | table aws_account_id instance_id src_ip src_port dest_ip dest_port action flow_direction interface_id vpc_id City Country flowCount pkt(million) bytes(GB) | sort - bytes(GB)&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m@m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
      &amp;lt;/row&amp;gt;
     
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 11:30:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-quot-EQUAL-quot-and-quot-NOT-EQUAL-TO-quot-filters/m-p/701406#M57513</guid>
      <dc:creator>neerajs_81</dc:creator>
      <dc:date>2024-10-09T11:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to have "EQUAL" and "NOT EQUAL TO" filters in DROPDOWN or INPUT PANELS</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-quot-EQUAL-quot-and-quot-NOT-EQUAL-TO-quot-filters/m-p/701407#M57514</link>
      <description>&lt;P&gt;You could try changing the order of the text field and the check boxes. Alternatively, you might be able to apply some CSS to modify the width of the check box panel (although this might get a bit messy as Splunk Classic Dashboards have a habit of modifying the width of panels to optimise screen real-estate).&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 11:38:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-quot-EQUAL-quot-and-quot-NOT-EQUAL-TO-quot-filters/m-p/701407#M57514</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-10-09T11:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to have "EQUAL" and "NOT EQUAL TO" filters in DROPDOWN or INPUT PANELS</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-quot-EQUAL-quot-and-quot-NOT-EQUAL-TO-quot-filters/m-p/701408#M57515</link>
      <description>&lt;P&gt;Based on this solution&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-a-textbox-value-to-a-multiselect-input/m-p/443073" target="_blank"&gt;Solved: How do I add a textbox value to a multiselect inpu... - Splunk Community&lt;/A&gt; please try following xml:&lt;/P&gt;&lt;PRE&gt;&amp;lt;form version="1.1"&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;IP List dynamically added to multiselect based on textbox input&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;fieldset submitButton="false" autoRun="true"&amp;gt;&lt;BR /&gt;&amp;lt;input type="text" token="tkn_ip"&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;Enter a IP (range)&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;/input&amp;gt;&lt;BR /&gt;&amp;lt;input type="multiselect" token="iplist"&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;IP List&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;valuePrefix&amp;gt;clientip&amp;lt;/valuePrefix&amp;gt;&lt;BR /&gt;&amp;lt;delimiter&amp;gt; OR &amp;lt;/delimiter&amp;gt;&lt;BR /&gt;&amp;lt;fieldForLabel&amp;gt;field3&amp;lt;/fieldForLabel&amp;gt;&lt;BR /&gt;&amp;lt;fieldForValue&amp;gt;field3&amp;lt;/fieldForValue&amp;gt;&lt;BR /&gt;&amp;lt;search&amp;gt;&lt;BR /&gt;&amp;lt;query&amp;gt;| makeresults &lt;BR /&gt;| eval previplist="$form.iplist$"&lt;BR /&gt;| eval newiplist="$tkn_ip$"&lt;BR /&gt;| makemv delim="," previplist&lt;BR /&gt;| makemv delim=" " newiplist&lt;BR /&gt;| eval field3=mvappend(previplist,newiplist)&lt;BR /&gt;| eval valcount= mvcount(field3)&lt;BR /&gt;| eval field3=if(valcount&amp;amp;gt;1,mvfilter(NOT match(field3,"all")),field3)&lt;BR /&gt;&amp;lt;/query&amp;gt;&lt;BR /&gt;&amp;lt;done&amp;gt;&lt;BR /&gt;&amp;lt;condition match="$job.resultCount$&amp;amp;gt;0"&amp;gt;&lt;BR /&gt;&amp;lt;eval token="form.iplist"&amp;gt;case(isnotnull($result.field3$),$result.field3$)&amp;lt;/eval&amp;gt;&lt;BR /&gt;&amp;lt;/condition&amp;gt;&lt;BR /&gt;&amp;lt;/done&amp;gt;&lt;BR /&gt;&amp;lt;finalized&amp;gt;&lt;BR /&gt;&amp;lt;condition match="$job.resultCount$&amp;amp;gt;0"&amp;gt;&lt;BR /&gt;&amp;lt;unset token="tkn_ip"&amp;gt;&amp;lt;/unset&amp;gt;&lt;BR /&gt;&amp;lt;/condition&amp;gt;&lt;BR /&gt;&amp;lt;/finalized&amp;gt;&lt;BR /&gt;&amp;lt;/search&amp;gt;&lt;BR /&gt;&amp;lt;choice value="=*"&amp;gt;All&amp;lt;/choice&amp;gt;&lt;BR /&gt;&amp;lt;change&amp;gt;&lt;BR /&gt;&amp;lt;eval token="form.iplist"&amp;gt;if(mvcount('form.iplist')=0,"=*",if(mvcount('form.iplist')!=1,mvfilter('form.iplist'!="=*"),'form.iplist'))&amp;lt;/eval&amp;gt;&lt;BR /&gt;&amp;lt;unset token="form.tkn_ip"&amp;gt;&amp;lt;/unset&amp;gt;&lt;BR /&gt;&amp;lt;/change&amp;gt;&lt;BR /&gt;&amp;lt;default&amp;gt;=*&amp;lt;/default&amp;gt;&lt;BR /&gt;&amp;lt;initialValue&amp;gt;=*&amp;lt;/initialValue&amp;gt;&lt;BR /&gt;&amp;lt;/input&amp;gt;&lt;BR /&gt;&amp;lt;/fieldset&amp;gt;&lt;BR /&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;panel&amp;gt;&lt;BR /&gt;&amp;lt;event&amp;gt;&lt;BR /&gt;&amp;lt;search&amp;gt;&lt;BR /&gt;&amp;lt;query&amp;gt;index=_internal $iplist$&amp;lt;/query&amp;gt;&lt;BR /&gt;&amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;&lt;BR /&gt;&amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;&lt;BR /&gt;&amp;lt;/search&amp;gt;&lt;BR /&gt;&amp;lt;option name="list.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;/event&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&amp;lt;/form&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 11:44:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-quot-EQUAL-quot-and-quot-NOT-EQUAL-TO-quot-filters/m-p/701408#M57515</guid>
      <dc:creator>PaulPanther</dc:creator>
      <dc:date>2024-10-09T11:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to have "EQUAL" and "NOT EQUAL TO" filters in DROPDOWN or INPUT PANELS</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-quot-EQUAL-quot-and-quot-NOT-EQUAL-TO-quot-filters/m-p/701413#M57516</link>
      <description>&lt;P&gt;Thanks for responding but the solution given there is different use case. The query and tokens mentioned in the XML code are very confusing to understand.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 12:10:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-quot-EQUAL-quot-and-quot-NOT-EQUAL-TO-quot-filters/m-p/701413#M57516</guid>
      <dc:creator>neerajs_81</dc:creator>
      <dc:date>2024-10-09T12:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to have "EQUAL" and "NOT EQUAL TO" filters in DROPDOWN or INPUT PANELS</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-quot-EQUAL-quot-and-quot-NOT-EQUAL-TO-quot-filters/m-p/701415#M57517</link>
      <description>&lt;P&gt;Sorry, my notebook ran out of battery.&lt;/P&gt;&lt;P&gt;To test the dashboard you only have to enter the ip (range) with either prefix = or ! = to black or white list the ip (range). The entered value in the text box will be passed to the multiselect field.&lt;/P&gt;&lt;P&gt;For the multiselect input you only have to change the prefix from "clientip" to the desired field that you wanna filter.&lt;/P&gt;&lt;P&gt;The search in the search panel can be replaced by your search&amp;nbsp;&lt;/P&gt;&lt;P&gt;That should be enough to verify if it is a proper solution for your problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 12:25:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-quot-EQUAL-quot-and-quot-NOT-EQUAL-TO-quot-filters/m-p/701415#M57517</guid>
      <dc:creator>PaulPanther</dc:creator>
      <dc:date>2024-10-09T12:25:36Z</dc:date>
    </item>
  </channel>
</rss>

