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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...