Class SplunkHECConfiguration


  • @UriParams
    public class SplunkHECConfiguration
    extends Object
    • Constructor Detail

      • SplunkHECConfiguration

        public SplunkHECConfiguration()
    • 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)