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 String
getHost()
String
getIndex()
String
getSource()
String
getSourceType()
String
getSplunkEndpoint()
Long
getTime()
Time this even occurred.boolean
isBodyOnly()
Send only the message bodyboolean
isHeadersOnly()
Send only message headersboolean
isHttps()
boolean
isSkipTlsVerify()
void
setBodyOnly(boolean bodyOnly)
void
setHeadersOnly(boolean headersOnly)
void
setHost(String host)
Splunk host field of the event message.void
setHttps(boolean https)
Contact HEC over https.void
setIndex(String index)
Splunk index to write tovoid
setSkipTlsVerify(boolean skipTlsVerify)
Splunk HEC TLS verification.void
setSource(String source)
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
setTime(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)
-
-