Skip to Main Menu

DotNet Core RC2, Splunk and Serilog

Over at Serilog, we have been busy over the last few months getting the library ready for the next release of DotNet.

After some changes to the core library it was time to move our attention to the sinks and enrichers.

The Splunk sink is now available with RC2 compatibility.

The packages are Serilog.Sinks.Splunk 2.0.0-rc-xxx and can be sourced from NuGet.

This now means you can use DotNet, Serilog and Splunk via the HTTP Event Collector on a wide range of platforms.

Simple as always to setup.

var host = "http://localhost:8088/services/collector"
var token = "xxx"
var log = new LoggerConfiguration() 
	.WriteTo.EventCollector(host, token)
	.CreateLogger();

With the ability to override source, host, sourcetype and index.

var host = "http://localhost:8088/services/collector"
var token = "xxx"
var log = new LoggerConfiguration() 
	.WriteTo.EventCollector(host, token, 
		source: "MySource")
	.CreateLogger();

Get Amongst It!!

comments powered by Disqus