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.boolean
Send only the message bodyboolean
Send only message headersboolean
isHttps()
boolean
void
setBodyOnly
(boolean bodyOnly) void
setHeadersOnly
(boolean headersOnly) void
Splunk host field of the event message.void
setHttps
(boolean https) Contact HEC over https.void
Splunk index to write tovoid
setSkipTlsVerify
(boolean skipTlsVerify) Splunk HEC TLS verification.void
Splunk source argumentvoid
setSourceType
(String sourceType) Splunk sourcetype argumentvoid
setSplunkEndpoint
(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?auto_extract_timestamp=true Remember to utilize RAW{} for questionmarks or slashes in parameters.void
-
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
-
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
-