Dashboards & Visualizations

Dashboard exclude multiple string from input text

newbie09
Explorer

Hello,

My objective is to exclude anything the user input from an input text in a dashboard.

Search string:

index = index_string  sourcetype =  stype_string |eval host = mvindex(fields ,10) | where NOT host in ("$host_token$")

 

Input xml like this:

<input type="text" token="host_token">

<label>Host</label>

<default></default>

</input>

The above works only for a single input in the textbox.

ex.  host1

But if multiple host it doesn't work. Nothing is filtered and all below host shows

ex. host1,host2,host3

Labels (1)
0 Karma
Get Updates on the Splunk Community!

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...