Splunk Search

Using variable in same search

JYTTEJ
Communicator

Hi. I am going to set up the same search - for a lot of different hosts.(20)

The result of the search is displayed on 2 different dashboards.

The search is running every 30 minutes - thus updating the dashboard every 30 minutes.

I would like to use the same search - and just reference the different hosts - instead of having 20 saved searches which are the same - only difference is the host name.

How do I accomplish this?

Tags (1)
0 Karma

Ayn
Legend

This sounds like a good situation to use a search macro. I could describe it a bit more but really I think the docs explain the concept best though: http://docs.splunk.com/Documentation/Splunk/latest/User/CreateAndUseSearchMacros

Ayn
Legend

No problem! Could you please mark my answer as accepted? Thanks!

0 Karma

JYTTEJ
Communicator

Great! thank you so much!

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...