Splunk Dev

Looking for parse comma separated string to use in search

gsmith61293
Engager

When we on board several servers into our Splunk instance, we install and turn on the Universal Forwarder for testing connectivity with the indexer. To do this, we search with the server name in the search head against the _internal index. If we have 5 or more servers, we usually make a lookup table and use the search:
index=_internal [| inputlookup server_table.csv]
To save time, i would like to create a dashboard where you enter a comma separated string in a text box, and in the search, parse out the servers and use them in a search. I can accomplish this with this search:

index=_internal sourcetype=splunkd earliest=-1m@m latest=now
| join type=inner host
[ search
| eval host=""
| makemv delim="," host
| mvexpand host]
| dedup host
| stats values(host)

But this only returns the servers that are connecting to Splunk indexer. I would like the search to report on those the are connected and those that are not. I have tried the "appendcols" command, but had no luck. Can anybody tell me how to parse a string into fields to use in a search? Thank you.

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

What's New in Splunk Observability Cloud and Splunk AppDynamics - May 2025

This month, we’re delivering several new innovations in Splunk Observability Cloud and Splunk AppDynamics ...

Getting Started with Splunk Artificial Intelligence, Insights for Nonprofits, and ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Splunk Observability Cloud’s AI Assistant in Action Series: Identifying Unknown ...

Agentic AI powers the Splunk AI Assistant within the Splunk Observability Cloud interface to help you quickly ...