Modifier and Type | Method and Description |
---|---|
boolean |
getEnableSplunkWebSSL()
Indicates whether SSL is enabled on the Splunk management port.
|
String |
getHost()
Returns the default host name to use for data inputs.
|
int |
getHttpPort()
Returns the port on which Splunk Web is listening for this
instance of Splunk.
|
int |
getMgmtPort()
Returns the IP address:port number for Splunkd.
|
int |
getMinFreeSpace()
Returns the amount of free disk space that is required for Splunk
to continue searching and indexing.
|
String |
getPass4SymmKey()
Returns the string that is prepended to the Splunk symmetric key to
generate the final key that used to sign all traffic between master and
slave licensers.
|
String |
getServerName()
Returns the name that is used to identify this Splunk instance for
features such as distributed search.
|
String |
getSessionTimeout()
Returns the amount of time before a user session times out.
|
String |
getSplunkDB()
Returns the fully-qualified path to the directory containing the
default index for this instance of Splunk.
|
String |
getSplunkHome()
Returns the fully-qualified path to the Splunk installation directory.
|
boolean |
getStartWebServer()
Indicates whether the instance is configured to start Splunk Web.
|
String |
getTrustedIP()
Returns the IP address of the authenticating proxy.
|
void |
setEnableSplunkWebSSL(boolean useHttps)
Sets whether Splunk Web uses HTTP or HTTPS.
|
void |
setHost(String host)
Sets the default host name to use for data inputs that do not override
this setting.
|
void |
setHttpPort(int port)
Sets the Splunk Web listening port.
|
void |
setMgmtPort(int port)
Sets the management port for splunkd.
|
void |
setMinimumFreeSpace(int minFreeSpace)
Sets the amount of free disk space that must exist for splunkd to
continue operating.
|
void |
setPasswordSymmKey(String pass4SymmKey)
Sets the password string that is prepended to the Splunk symmetric key
to generate the final key, which is used to sign all traffic between
master/slave licensers.
|
void |
setServerName(String serverName)
Sets the name that is used to identify this Splunk instance for features
such as distributed search.
|
void |
setSessionTimeout(String sessionTimeout)
Sets the session timeout.
|
void |
setSplunkDBPath(String path)
Sets the fully-qualified local path to the default index.
|
void |
setStartWebServer(boolean startwebserver)
Sets whether to start Splunk Web.
|
void |
setTrustedIP(String trustedIP)
Sets the IP address of the authenticating proxy.
|
void |
update()
Updates the entity with the accumulated arguments, established by the
individual setter methods for each specific entity class.
|
void |
update(Map<String,Object> args)
Updates the entity with the values you previously set using the setter
methods, and any additional specified arguments.
|
actionPath, clear, containsKey, containsValue, disable, enable, entrySet, get, getContent, getMetadata, isDisabled, isEmpty, isNameChangeAllowed, keySet, put, putAll, refresh, remove, remove, size, validate, values
getName, getPath, getService, getTitle, getUpdated, invalidate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getSplunkDB()
public String getSplunkHome()
public boolean getEnableSplunkWebSSL()
true
if SSL is enabled, false
if not.public String getHost()
public int getHttpPort()
public int getMgmtPort()
public int getMinFreeSpace()
public String getPass4SymmKey()
public String getServerName()
public String getSessionTimeout()
public boolean getStartWebServer()
true
if the instance is configured to start Splunk Web,
false
if Splunk Web is disabled.public String getTrustedIP()
public void setSplunkDBPath(String path)
$SPLUNK_HOME/var/lib/splunk/defaultdb/db/
.path
- The local path to the default index.public void setEnableSplunkWebSSL(boolean useHttps)
useHttps
- true
to use SSL and HTTPS, false
to use
HTTP.public void setHost(String host)
host
- The default host name.public void setHttpPort(int port)
Note: The port must be present for Splunk Web to start. If this value is omitted or set to 0, the server will not start an HTTP listener.
port
- The Splunk Web listening port.getEnableSplunkWebSSL()
public void setMgmtPort(int port)
8089
.port
- The port for the management interface.public void setMinimumFreeSpace(int minFreeSpace)
Before attempting to run a search, Splunk requires this amount of
free space on the file system where the dispatch directory is stored
($SPLUNK_HOME/var/run/splunk/dispatch
).
minFreeSpace
- The minimum free space, in megabytes.public void setPasswordSymmKey(String pass4SymmKey)
pass4SymmKey
- The prepended password string.public void setServerName(String serverName)
<hostname>-<user running splunk>
.serverName
- The server name.public void setSessionTimeout(String sessionTimeout)
sessionTimeout
- The session timeout value.public void setStartWebServer(boolean startwebserver)
startwebserver
- true
to start Splunk Web, false
if
not.public void setTrustedIP(String trustedIP)
trustedIP
- The authenticating proxy's IP address.public void update(Map<String,Object> args)
Copyright © 2022 Splunk, Inc.. All rights reserved.