Splunk Search

How to get events of selected hosts

splunker09
Engager

I have an index which has 15 hosts and around 15 sourcetypes mapped to all hosts.  How can I get events of only few selected hosts.  (I cannot create separate index of those hosts)

Labels (1)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

You simply filter your search by providing additional conditions in your search. One such condition can be a list of possible values for a given field. Like

index=<myindex> host IN (host1, host2, host3, ...)

See https://docs.splunk.com/Documentation/Splunk/9.1.0/SearchTutorial/WelcometotheSearchTutorial

Get Updates on the Splunk Community!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...