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.
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

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 ...