The correct answer is: B. [searchGroup:Paris] default = false servers = server1:8089, server2:8089
Explanation:
In Splunk, to configure distributed search groups, you must use the correct stanza format and port configuration in the distsearch.conf file. The valid configuration follows these rules:
Stanza: [searchGroup:<group_name>]
default: Specifies whether the group is the default search group.
servers: Lists search peers with their management ports (default port is 8089) separated by commas.
Therefore, B correctly follows this format with the stanza [searchGroup:Paris], default set to false, and servers listed with the proper port (8089).
D is the correct answer, however with a typo
I checked and you have to provide port number, otherwise you get the following error:
Failed to parse uri for peer:Paris. This search peer will be ignored.
B and C are definitely wrong. A is not correct since no port number is given, and that is required. See https://docs.splunk.com/Documentation/Splunk/8.0.6/Admin/Distsearchconf Distributed Search Group Definitions:
servers = <comma-separated list>
* A list of search peers that are members of this group.
* The list must use peer identifiers (i.e. hostname:port)
Answer D must be a typo, and supposed to show a comma and not a semi colon. In that case it is correct.
It is A, read the documentation : "The servers attribute lists groups of search peers by IP address and management port" , so a server always contains already a port, it is not listed as a seperate attribute.
distsearch.conf specification says:
servers = <comma-separated list>
* An initial list of servers.
* Each member of this list must be a valid URI in the format of
scheme://hostname:port
I haven't tested, but in my understanding the port value is needed, and in that case it couldn't be alternative A. The separator ";" in alternative D makes it wrong too (maybe a test typo?), although it certainly would be the correct one if the separator was a comma.
A is the correct one
correct stanza name -> [distributedSearch:xxxx]
correct separator -> ,
servers listed don't need to have the port defined, and Splunk will use the default attribute listed in distsearch.conf.spec
https://docs.splunk.com/Documentation/Splunk/8.0.6/Admin/Distsearchconf#distsearch.conf.example
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
giubal
Highly Voted 3 years, 3 months agoAngusBlack
2 years, 1 month agotoney_mu
6 months, 1 week agoAsami
Highly Voted 3 years, 1 month agoames
2 years, 11 months agonecococo
Most Recent 1 week, 1 day ago3bd8ac0
1 week, 6 days agotmmt
6 months, 1 week agotoney_mu
6 months, 1 week agohuu_nguyen
1 year, 6 months agohuu_nguyen
1 year, 6 months agoApis
1 year, 7 months agoM9201715
1 year, 9 months agoL4Best
2 years, 2 months agoArDeKu
2 years, 4 months agoShaq007
2 years, 7 months agonewrose
2 years, 8 months agodpharker
2 years, 11 months agoJosi12
3 years, 3 months agogiubal
3 years, 3 months ago