Class SplunkHECConfiguration
- java.lang.Object
-
- org.apache.camel.component.splunkhec.SplunkHECConfiguration
-
@UriParams public class SplunkHECConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description SplunkHECConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHost()StringgetIndex()StringgetSource()StringgetSourceType()StringgetSplunkEndpoint()LonggetTime()Time this even occurred.booleanisBodyOnly()Send only the message bodybooleanisHeadersOnly()Send only message headersbooleanisHttps()booleanisSkipTlsVerify()voidsetBodyOnly(boolean bodyOnly)voidsetHeadersOnly(boolean headersOnly)voidsetHost(String host)Splunk host field of the event message.voidsetHttps(boolean https)Contact HEC over https.voidsetIndex(String index)Splunk index to write tovoidsetSkipTlsVerify(boolean skipTlsVerify)Splunk HEC TLS verification.voidsetSource(String source)Splunk 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?auto_extract_timestamp=true Remember to utilize RAW{} for questionmarks or slashes in parameters.voidsetTime(Long time)
-
-
-
Method Detail
-
getSourceType
public String getSourceType()
-
setSourceType
public void setSourceType(String sourceType)
Splunk sourcetype argument
-
getSource
public String getSource()
-
setSource
public void setSource(String source)
Splunk source argument
-
setIndex
public void setIndex(String index)
Splunk index to write to
-
getIndex
public String getIndex()
-
getHost
public String getHost()
-
setHost
public void setHost(String host)
Splunk host field of the event message. This is not the Splunk host to connect to.
-
setSplunkEndpoint
public void 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.
-
getSplunkEndpoint
public String 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
public Long getTime()
Time this even occurred. By default, the time will be when this event hits the splunk server.
-
setTime
public void setTime(Long time)
-
-