<PackageReference Include="Serilog.Sinks.Splunk" Version="5.2.1-dev-00208" />

Serilog.Sinks.Splunk.EventCollectorSink

public class EventCollectorSink : IBatchedLogEventSink, IDisposable
A sink to log to the Event Collector available in Splunk 6.3
public EventCollectorSink(string splunkHost, string eventCollectorToken, IFormatProvider formatProvider = null, bool renderTemplate = true, bool renderMessage = true, SubSecondPrecision subSecondPrecision = 3)

Creates a new instance of the sink

public EventCollectorSink(string splunkHost, string eventCollectorToken, string uriPath, string source, string sourceType, string host, string index, IFormatProvider formatProvider = null, bool renderTemplate = true, bool renderMessage = true, HttpMessageHandler messageHandler = null, SubSecondPrecision subSecondPrecision = 3)

Creates a new instance of the sink

public EventCollectorSink(string splunkHost, string eventCollectorToken, string uriPath, string source, string sourceType, string host, string index, CustomFields fields, IFormatProvider formatProvider = null, bool renderTemplate = true, bool renderMessage = true, HttpMessageHandler messageHandler = null, SubSecondPrecision subSecondPrecision = 3)

Creates a new instance of the sink with Customfields

public EventCollectorSink(string splunkHost, string eventCollectorToken, string uriPath, ITextFormatter jsonFormatter, HttpMessageHandler messageHandler = null)

Creates a new instance of the sink

protected virtual void Dispose(bool disposing)

Releases resources used by the sink.

public void Dispose()

public virtual Task EmitBatchAsync(IReadOnlyCollection<LogEvent> batch)

public virtual Task OnEmptyBatchAsync()