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.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...