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

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...