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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...