Package com.splunk.logging
Class HttpEventCollectorLogbackAppender<E>
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.AppenderBase<E>
-
- com.splunk.logging.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 Summary
Constructors Constructor Description HttpEventCollectorLogbackAppender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMetadata(String tag, String value)
protected void
append(E e)
long
getCallTimeout(long milliseconds)
String
getChannel()
long
getConnectTimeout(long milliseconds)
String
getDisableCertificateValidation()
String
getEventBodySerializer()
String
getEventHeaderSerializer()
String
getHost()
boolean
getIncludeException()
boolean
getIncludeLoggerName()
boolean
getIncludeMDC()
boolean
getIncludeThreadName()
String
getIndex()
ch.qos.logback.core.Layout<E>
getLayout()
String
getMessageFormat()
long
getReadTimeout(long milliseconds)
String
getSource()
String
getSourcetype()
long
getTerminationTimeout(long milliseconds)
String
getToken()
String
getType()
String
getUrl()
long
getWriteTimeout(long milliseconds)
void
setbatch_interval(String value)
void
setbatch_size_bytes(String value)
void
setbatch_size_count(String value)
void
setCallTimeout(long milliseconds)
void
setChannel(String channel)
void
setConnectTimeout(long milliseconds)
void
setDisableCertificateValidation(String disableCertificateValidation)
void
setEventBodySerializer(String eventBodySerializer)
void
setEventHeaderSerializer(String eventHeaderSerializer)
void
setHost(String host)
void
setIncludeException(boolean includeException)
void
setIncludeLoggerName(boolean includeLoggerName)
void
setIncludeMDC(boolean includeMDC)
void
setIncludeThreadName(boolean includeThreadName)
void
setIndex(String index)
void
setLayout(ch.qos.logback.core.Layout<E> layout)
void
setMessageFormat(String messageFormat)
void
setmiddleware(String value)
void
setReadTimeout(long milliseconds)
void
setretries_on_error(String value)
void
setsend_mode(String value)
void
setSource(String source)
void
setSourcetype(String sourcetype)
void
setTerminationTimeout(long milliseconds)
void
setToken(String token)
void
setType(String type)
void
setUrl(String url)
void
setWriteTimeout(long milliseconds)
void
start()
void
stop()
-
Methods inherited from class ch.qos.logback.core.AppenderBase
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toString
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
-
-
-
Method Detail
-
start
public void start()
- Specified by:
start
in interfacech.qos.logback.core.spi.LifeCycle
- Overrides:
start
in classch.qos.logback.core.AppenderBase<E>
-
stop
public void stop()
- Specified by:
stop
in interfacech.qos.logback.core.spi.LifeCycle
- Overrides:
stop
in classch.qos.logback.core.AppenderBase<E>
-
append
protected void append(E e)
- Specified by:
append
in classch.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()
-
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)
-
-