Splunk Search

Can I edit my search or a filter field to search for multiple UserIDs as an input on my dashboard?

hypePG
Path Finder

Hello,

In one of my dashboards, I am using a filter field to search for one UserID. Can I edit my search or my filterfield, so it is possible to search for more than one userid as an input? e.g. like "userid1|userid2|userid3" as an input would resolve in something like "userid=userid1 OR userid=userid2 OR ..."

thanks in advance.

hype

0 Karma
1 Solution

somesoni2
SplunkTrust
SplunkTrust

You can use subsearches for the same. See the example below

index=_internal  [| gentimes start=-1 | eval sourcetype="Your|Sourcetype|List|Goes|Here" | table sourcetype | makemv sourcetype delim="|" | mvexpand sourcetype ] | stats count by sourcetype

View solution in original post

somesoni2
SplunkTrust
SplunkTrust

You can use subsearches for the same. See the example below

index=_internal  [| gentimes start=-1 | eval sourcetype="Your|Sourcetype|List|Goes|Here" | table sourcetype | makemv sourcetype delim="|" | mvexpand sourcetype ] | stats count by sourcetype
Get Updates on the Splunk Community!

Infographic provides the TL;DR for the 2023 Splunk Career Impact Report

We’ve been shouting it from the rooftops! The findings from the 2023 Splunk Career Impact Report showing that ...

Splunk Lantern | Getting Started with Edge Processor, Machine Learning Toolkit ...

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

Enterprise Security Content Update (ESCU) | New Releases

In the last month, the Splunk Threat Research Team (STRT) has had 2 releases of new security content via the ...