Hello,
Is there any CLI command to check the peer status?
Thanks
Try this (gives xml output with status of all search peer)
./splunk _internal call /services/search/distributed/peers
OR
./splunk search "| rest /services/search/distributed/peers | rename status as search_peer_status| table host replicationStatus search_peer_status startup_time "
Would this not be cleaner?
./splunk list search-server
Server at URI "11.22.33.44:8089" with status as "Up"
Server at URI "22.33.44.55:8089" with status as "Up"
Server at URI "33.44.55.66:8089" with status as "Up"
Try this (gives xml output with status of all search peer)
./splunk _internal call /services/search/distributed/peers
OR
./splunk search "| rest /services/search/distributed/peers | rename status as search_peer_status| table host replicationStatus search_peer_status startup_time "
Thanks Somesh 🙂