Class SplunkHECConfiguration
java.lang.Object
org.apache.camel.component.splunkhec.SplunkHECConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHost()getIndex()getTime()Time this even occurred.getToken()booleanSend only the message bodybooleanSend only message headersbooleanisHttps()booleanvoidsetBodyOnly(boolean bodyOnly) voidsetHeadersOnly(boolean headersOnly) voidSplunk host field of the event message.voidsetHttps(boolean https) Contact HEC over https.voidSplunk index to write tovoidsetSkipTlsVerify(boolean skipTlsVerify) Splunk HEC TLS verification.voidSplunk source argumentvoidsetSourceType(String sourceType) Splunk sourcetype argumentvoidsetSplunkEndpoint(String splunkEndpoint) Splunk endpoint Defaults to /services/collector/event To write RAW data like JSON use /services/collector/raw For a list of all endpoints refer to splunk documentation (HTTP Event Collector REST API endpoints) Example for Spunk 8.2.x: https://docs.splunk.com/Documentation/SplunkCloud/8.2.2203/Data/HECRESTendpoints To extract timestamps in Splunk>8.0 /services/collector/event?voidvoidSplunk HEC token (this is the token created for HEC and not the user's token)
-
Constructor Details
-
SplunkHECConfiguration
public SplunkHECConfiguration()
-
-
Method Details
-
getSourceType
-
setSourceType
Splunk sourcetype argument -
getSource
-
setSource
Splunk source argument -
setIndex
Splunk index to write to -
getIndex
-
getHost
-
setHost
Splunk host field of the event message. This is not the Splunk host to connect to. -
setSplunkEndpoint
Splunk endpoint Defaults to /services/collector/event To write RAW data like JSON use /services/collector/raw For a list of all endpoints refer to splunk documentation (HTTP Event Collector REST API endpoints) Example for Spunk 8.2.x: https://docs.splunk.com/Documentation/SplunkCloud/8.2.2203/Data/HECRESTendpoints To extract timestamps in Splunk>8.0 /services/collector/event?auto_extract_timestamp=true Remember to utilize RAW{} for questionmarks or slashes in parameters. -
getSplunkEndpoint
-
getToken
-
setToken
Splunk HEC token (this is the token created for HEC and not the user's token) -
isSkipTlsVerify
public boolean isSkipTlsVerify() -
setSkipTlsVerify
public void setSkipTlsVerify(boolean skipTlsVerify) Splunk HEC TLS verification. -
isHttps
public boolean isHttps() -
setHttps
public void setHttps(boolean https) Contact HEC over https. -
isBodyOnly
public boolean isBodyOnly()Send only the message body -
setBodyOnly
public void setBodyOnly(boolean bodyOnly) -
isHeadersOnly
public boolean isHeadersOnly()Send only message headers -
setHeadersOnly
public void setHeadersOnly(boolean headersOnly) -
getTime
Time this even occurred. By default, the time will be when this event hits the splunk server. -
setTime
-