I am planning to use configuration management tool like Chef to manage my search head cluster.
I knew I can use splunk CLI in https://docs.splunk.com/Documentation/Splunk/7.0.1/DistSearch/ViewSHCstatus to get the search head cluster information like all members and captain, but it's not so convenient for Chef to configure.
Does Splunk store the related information into some configuration file?
Hi. Yes, the search head cluster configuration is stored under the [shclustering] stanza in server.conf. For more info, see these docs:
View solution in original post
I have checked out server.conf, it apparently does not have any search head cluster member information. Does it mean I have to run splunk CLI to add/remove/list cluster members?