Splunk Enterprise Security

Multivalue Text Input Fields

DSMcL
New Member

I have been struggling to get a multivalue text input field to work. Originally, I had tried this approach:

index=<index> sourcetype=<sourcetype> [stats count | eval url = "$key$" | makemv url delim=" " | mvexpand url | fields url] | table url, host

I am trying to look for any values input into the text field that are separated by spaces (I've also tried commas), in the URL field of the results. This didn't work for me and did not return any results when using more than one value in the text input.

index=<index> sourcetype=<sourcetype> url IN ($key$) 

This DOES work.

My question is, can I do this with spaces instead of commas? And, also, can I automatically add wildcards (*) at the beginning and end of each individual entry in the input field?

Thank you in advance.

0 Karma

marycordova
SplunkTrust
SplunkTrust

Can you please post a sample data set?

@marycordova
0 Karma

DSMcL
New Member

Thank you for your reply. I can try to sanitize a data set, but they are sensitive log files so it would be rather difficult. Yes, it is a dashboard and I am passing a token (the token is called "key") from a text entry box.

I believe I now have the multivalue text input search working like this:

index=<index> sourcetype=<sourcetype> url IN ($key$)

and

index=<index> sourcetype=<sourcetype> [stats count | eval url = "$key$" | makemv url delim=" " | mvexpand url | fields url] | table url, host

I prefer the second way as I can use space as the delimiter. I believe the reason it wasn't working before was because of the formatting of the input.

I am still unable to add in *'s at the beginning and end of each entry automatically.

Ex.

textfield: google.com,msn.com,bing.com

but have the search look for *google.com*, *msn.com*, or *bing.com*.

Is there a way that add the wildcards in before searching?

I apologize for not having figured out my first issue earlier, a blatant oversight on my part.

0 Karma

marycordova
SplunkTrust
SplunkTrust

Also, is this in a Dashboard where you are passing in a token from a text entry box in the Dashboard?

@marycordova
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...