Class SplunkConfiguration
java.lang.Object
org.apache.camel.component.splunk.SplunkConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetApp()intintgetCount()getHost()getIndex()getName()getOwner()intgetPort()com.splunk.SSLSecurityProtocolintgetToken()booleanisRaw()booleanbooleanvoidSplunk appvoidsetConnectionFactory(SplunkConnectionFactory connectionFactory) Splunk connection factory.voidsetConnectionTimeout(int timeout) Timeout in MS when connecting to Splunk servervoidsetCount(int count) A number that indicates the maximum number of entities to return.voidsetEarliestTime(String earliestTime) Earliest time of the search time window.voidsetEventHost(String eventHost) Override the default Splunk event host fieldvoidSplunk host.voidSplunk index to write tovoidsetInitEarliestTime(String initEarliestTime) Initial start offset of the first searchvoidsetLatestTime(String latestTime) Latest time of the search time window.voidvoidSplunk ownervoidsetPassword(String password) Password for SplunkvoidsetPort(int port) Splunk portvoidsetRaw(boolean raw) Should the payload be inserted rawvoidsetSavedSearch(String savedSearch) The name of the query saved in Splunk to runvoidSplunk schemevoidThe Splunk query to runvoidSplunk source argumentvoidsetSourceType(String sourceType) Splunk sourcetype argumentvoidsetSslProtocol(com.splunk.SSLSecurityProtocol sslProtocol) Set the ssl protocol to usevoidsetStreaming(boolean streaming) Sets streaming mode.voidsetTcpReceiverLocalPort(Integer tcpReceiverLocalPort) Splunk tcp receiver port defined locally on splunk server.voidsetTcpReceiverPort(int tcpReceiverPort) Splunk tcp receiver portvoidUser's token for Splunk.voidsetUsername(String username) Username for SplunkvoidsetUseSunHttpsHandler(boolean useSunHttpsHandler) Use sun.net.www.protocol.https.Handler Https handler to establish the Splunk Connection.
-
Constructor Details
-
SplunkConfiguration
public SplunkConfiguration()
-
-
Method Details
-
getName
-
setName
-
getInitEarliestTime
-
setInitEarliestTime
Initial start offset of the first search -
getCount
public int getCount() -
setCount
public void setCount(int count) A number that indicates the maximum number of entities to return. -
getSearch
-
setSearch
The Splunk query to run -
getEarliestTime
-
setEarliestTime
Earliest time of the search time window. -
getLatestTime
-
setLatestTime
Latest time of the search time window. -
getTcpReceiverPort
public int getTcpReceiverPort() -
setTcpReceiverPort
public void setTcpReceiverPort(int tcpReceiverPort) Splunk tcp receiver port -
getTcpReceiverLocalPort
-
setTcpReceiverLocalPort
Splunk tcp receiver port defined locally on splunk server. (For example if splunk port 9997 is mapped to 12345, tcpReceiverLocalPort has to be 9997) -
isRaw
public boolean isRaw() -
setRaw
public void setRaw(boolean raw) Should the payload be inserted raw -
getSourceType
-
setSourceType
Splunk sourcetype argument -
getSource
-
setSource
Splunk source argument -
getEventHost
-
setEventHost
Override the default Splunk event host field -
setIndex
Splunk index to write to -
getIndex
-
getHost
-
setHost
Splunk host. -
getPort
public int getPort() -
setPort
public void setPort(int port) Splunk port -
getSslProtocol
public com.splunk.SSLSecurityProtocol getSslProtocol() -
setSslProtocol
public void setSslProtocol(com.splunk.SSLSecurityProtocol sslProtocol) Set the ssl protocol to use- Parameters:
sslProtocol-
-
getScheme
-
setScheme
Splunk scheme -
getApp
-
setApp
Splunk app -
getOwner
-
setOwner
Splunk owner -
getUsername
-
setUsername
Username for Splunk -
getPassword
-
setPassword
Password for Splunk -
getToken
-
setToken
User's token for Splunk. This takes precedence over password when both are set -
isStreaming
public boolean isStreaming() -
setStreaming
public void setStreaming(boolean streaming) Sets streaming mode.Streaming mode sends exchanges as they are received, rather than in a batch.
-
getConnectionTimeout
public int getConnectionTimeout() -
setConnectionTimeout
public void setConnectionTimeout(int timeout) Timeout in MS when connecting to Splunk server -
isUseSunHttpsHandler
public boolean isUseSunHttpsHandler() -
setUseSunHttpsHandler
public void setUseSunHttpsHandler(boolean useSunHttpsHandler) Use sun.net.www.protocol.https.Handler Https handler to establish the Splunk Connection. Can be useful when running in application servers to avoid app. server https handling. -
getSavedSearch
-
setSavedSearch
The name of the query saved in Splunk to run -
getConnectionFactory
-
setConnectionFactory
Splunk connection factory.
-