@placement search-head, indexer # Version 20170103 # # This file contains possible attribute and value pairs for creating new # Representational State Transfer (REST) endpoints. # # There is a restmap.conf in $SPLUNK_HOME/etc/system/default/. To set custom # configurations, place a restmap.conf in $SPLUNK_HOME/etc/system/local/. For # help, see restmap.conf.example. You must restart Splunk to enable # configurations. # # To learn more about configuration files (including precedence) please see the # documentation located at # http://docs.splunk.com/Documentation/Splunk/latest/Admin/Aboutconfigurationfiles # NOTE: You must register every REST endpoint via this file to make it # available. ########################### # Global stanza [global] * This stanza sets global configurations for all REST endpoints. * Follow this stanza name with any number of the following attribute/value pairs. allowGetAuth=[true|false] * Allow user/password to be passed as a GET parameter to endpoint services/auth/login. * Setting this to true, while convenient, may result in user/password getting logged as cleartext in Splunk's logs *and* any proxy servers in between. * Defaults to false. allowRestReplay=[true|false] * POST/PUT/DELETE requests can be replayed on other nodes in the deployment. * This enables centralized management. * Turn on or off this feature. You can also control replay at each endpoint level. This feature is currently INTERNAL and should not be turned on witout consulting splunk support. * Defaults to false defaultRestReplayStanza= * Points to global rest replay configuration stanza. * Related to allowRestReplay * Defaults to "restreplayshc" pythonHandlerPath= * Path to 'main' python script handler. * Used by the script handler to determine where the actual 'main' script is located. * Typically, you should not need to change this. * Defaults to $SPLUNK_HOME/bin/rest_handler.py. ########################### # Applicable to all REST stanzas # Stanza definitions below may supply additional information for these. # [:] match= * Specify the URI that calls the handler. * For example if match=/foo, then https://$SERVER:$PORT/services/foo calls this handler. * NOTE: You must start your path with a /. requireAuthentication=[true|false] * This optional attribute determines if this endpoint requires authentication. * Defaults to 'true'. authKeyStanza= * This optional attribute determines the location of the pass4SymmKey in the server.conf to be used for endpoint authentication. * Defaults to 'general' stanza. * Only applicable if the requireAuthentication is set true. restReplay=[true|false] * This optional attribute enables rest replay on this endpoint group * Related to allowRestReplay * This feature is currently INTERNAL and should not be turned on without consulting splunk support. * Defaults to false restReplayStanza= * This points to stanza which can override the [global]/defaultRestReplayStanza value on a per endpoint/regex basis * Defaults to empty capability= capability.= * Depending on the HTTP method, check capabilities on the authenticated session user. * If you use 'capability.post|delete|get|put,' then the associated method is checked against the authenticated user's role. * If you just use 'capability,' then all calls get checked against this capability (regardless of the HTTP method). * Capabilities can also be expressed as a boolean expression. Supported operators include: or, and, (), ! acceptFrom= ... * Lists a set of networks or addresses to allow this endpoint to be accessed from. * This shouldn't be confused with the setting of the same name in the [httpServer] stanza of server.conf which controls whether a host can make HTTP requests at all * Each rule can be in the following forms: 1. A single IPv4 or IPv6 address (examples: "10.1.2.3", "fe80::4a3") 2. A CIDR block of addresses (examples: "10/8", "fe80:1234/32") 3. A DNS name, possibly with a '*' used as a wildcard (examples: "myhost.example.com", "*.splunk.com") 4. A single '*' which matches anything * Entries can also be prefixed with '!' to cause the rule to reject the connection. Rules are applied in order, and the first one to match is used. For example, "!10.1/16, *" will allow connections from everywhere except the 10.1.*.* network. * Defaults to "*" (accept from anywhere) includeInAccessLog=[true|false] * If this is set to false, requests to this endpoint will not appear in splunkd_access.log * Defaults to 'true'. ########################### # Per-endpoint stanza # Specify a handler and other handler-specific settings. # The handler is responsible for implementing arbitrary namespace underneath # each REST endpoint. [script:] * NOTE: The uniqueName must be different for each handler. * Call the specified handler when executing this endpoint. * The following attribute/value pairs support the script handler. scripttype=python * Tell the system what type of script to execute when using this endpoint. * Defaults to python. * If set to "persist" it will run the script via a persistent-process that uses the protocol from persistconn/appserver.py. handler=