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!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...