Splunk Search

How to parameterize a search?

foxjazz
New Member

Is there a way to parameterize a search, for instance, lollipop="{first, second, third}".
I want to retrieve a table of data based on multiple search instances where the parameter changes based on a comma-delimited value.

0 Karma

woodcock
Esteemed Legend

You can use a macro or you can also use the savedsearch command, which is probably what you are seeking (search for replace_me😞
https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Savedsearch

0 Karma

jaime_ramirez
Communicator
0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...