Class HttpEventCollectorLogbackAppender<E>

  • All Implemented Interfaces:
    ch.qos.logback.core.Appender<E>, ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.FilterAttachable<E>, ch.qos.logback.core.spi.LifeCycle

    public class HttpEventCollectorLogbackAppender<E>
    extends ch.qos.logback.core.AppenderBase<E>
    Logback Appender which writes its events to Splunk http event collector rest endpoint.
    • Constructor Detail

      • HttpEventCollectorLogbackAppender

        public HttpEventCollectorLogbackAppender()
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface ch.qos.logback.core.spi.LifeCycle
        Overrides:
        start in class ch.qos.logback.core.AppenderBase<E>
      • stop

        public void stop()
        Specified by:
        stop in interface ch.qos.logback.core.spi.LifeCycle
        Overrides:
        stop in class ch.qos.logback.core.AppenderBase<E>
      • append

        protected void append​(E e)
        Specified by:
        append in class ch.qos.logback.core.AppenderBase<E>
      • setUrl

        public void setUrl​(String url)
      • getUrl

        public String getUrl()
      • setToken

        public void setToken​(String token)
      • getToken

        public String getToken()
      • setChannel

        public void setChannel​(String channel)
      • getChannel

        public String getChannel()
      • setType

        public void setType​(String type)
      • getType

        public String getType()
      • setLayout

        public void setLayout​(ch.qos.logback.core.Layout<E> layout)
      • getLayout

        public ch.qos.logback.core.Layout<E> getLayout()
      • getIncludeLoggerName

        public boolean getIncludeLoggerName()
      • setIncludeLoggerName

        public void setIncludeLoggerName​(boolean includeLoggerName)
      • getIncludeThreadName

        public boolean getIncludeThreadName()
      • setIncludeThreadName

        public void setIncludeThreadName​(boolean includeThreadName)
      • getIncludeMDC

        public boolean getIncludeMDC()
      • setIncludeMDC

        public void setIncludeMDC​(boolean includeMDC)
      • getIncludeException

        public boolean getIncludeException()
      • setIncludeException

        public void setIncludeException​(boolean includeException)
      • setSource

        public void setSource​(String source)
      • getSource

        public String getSource()
      • setSourcetype

        public void setSourcetype​(String sourcetype)
      • getSourcetype

        public String getSourcetype()
      • setMessageFormat

        public void setMessageFormat​(String messageFormat)
      • getMessageFormat

        public String getMessageFormat()
      • setHost

        public void setHost​(String host)
      • getHost

        public String getHost()
      • setIndex

        public void setIndex​(String index)
      • getIndex

        public String getIndex()
      • addMetadata

        public void addMetadata​(String tag,
                                String value)
      • getEventBodySerializer

        public String getEventBodySerializer()
      • getEventHeaderSerializer

        public String getEventHeaderSerializer()
      • setDisableCertificateValidation

        public void setDisableCertificateValidation​(String disableCertificateValidation)
      • setbatch_size_count

        public void setbatch_size_count​(String value)
      • setbatch_size_bytes

        public void setbatch_size_bytes​(String value)
      • setbatch_interval

        public void setbatch_interval​(String value)
      • setretries_on_error

        public void setretries_on_error​(String value)
      • setsend_mode

        public void setsend_mode​(String value)
      • setmiddleware

        public void setmiddleware​(String value)
      • getDisableCertificateValidation

        public String getDisableCertificateValidation()
      • setEventBodySerializer

        public void setEventBodySerializer​(String eventBodySerializer)
      • setEventHeaderSerializer

        public void setEventHeaderSerializer​(String eventHeaderSerializer)
      • setConnectTimeout

        public void setConnectTimeout​(long milliseconds)
      • getConnectTimeout

        public long getConnectTimeout​(long milliseconds)
      • setCallTimeout

        public void setCallTimeout​(long milliseconds)
      • getCallTimeout

        public long getCallTimeout​(long milliseconds)
      • setReadTimeout

        public void setReadTimeout​(long milliseconds)
      • getReadTimeout

        public long getReadTimeout​(long milliseconds)
      • setWriteTimeout

        public void setWriteTimeout​(long milliseconds)
      • getWriteTimeout

        public long getWriteTimeout​(long milliseconds)
      • setTerminationTimeout

        public void setTerminationTimeout​(long milliseconds)
      • getTerminationTimeout

        public long getTerminationTimeout​(long milliseconds)