Splunk Search

Why don't I see my three Splunk servers via the rest call?

danielbb
Motivator

I'm running the following command -

| rest /services/server/sysinfo

And it shows the indexer and the search head but not the heavy forwarder.

What can it be? 

Tags (1)
0 Karma

isoutamo
SplunkTrust
SplunkTrust

If you want to see also those HFs you must to add those as a search peers to your SH. Usually this shouldn’t do any other SHs than MC. In MC just add those as indexers and add separate own group like HFs to those. Then you can query from those by using that group on rest. 

danielbb
Motivator

Thank you @isoutamo, when trying to put the HF as a search peer in the SH and it gives this error -  
Encountered the following error while trying to save: Status 401 while sending public key to search peer https://<ip>:8089: Unauthorized

0 Karma

isoutamo
SplunkTrust
SplunkTrust
When you are adding search peer you must have/know admin level account on that HF. Then use it when you add a new peer.
0 Karma

richgalloway
SplunkTrust
SplunkTrust

The rest command is processed by the local search head and all search peers, but not by heavy forwarders.  That's the way searches work.  No query is sent to a HF.

---
If this reply helps you, Karma would be appreciated.
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 ...