![]() |
VOOZH | about |
dotnet add package Serilog.Sinks.Splunk.TCP --version 5.2.0
NuGet\Install-Package Serilog.Sinks.Splunk.TCP -Version 5.2.0
<PackageReference Include="Serilog.Sinks.Splunk.TCP" Version="5.2.0" />
<PackageVersion Include="Serilog.Sinks.Splunk.TCP" Version="5.2.0" />Directory.Packages.props
<PackageReference Include="Serilog.Sinks.Splunk.TCP" />Project file
paket add Serilog.Sinks.Splunk.TCP --version 5.2.0
#r "nuget: Serilog.Sinks.Splunk.TCP, 5.2.0"
#:package Serilog.Sinks.Splunk.TCP@5.2.0
#addin nuget:?package=Serilog.Sinks.Splunk.TCP&version=5.2.0Install as a Cake Addin
#tool nuget:?package=Serilog.Sinks.Splunk.TCP&version=5.2.0Install as a Cake Tool
👁 Build Status
👁 NuGet Version
👁 Join the chat at https://gitter.im/serilog/serilog
A Serilog sink that writes events to the Splunk. Supports .NET 8+, .NET 9, .NET 10, and platforms compatible with the .NET Platform Standard netstandard2.0, netstandard2.1.
Package - Serilog.Sinks.Splunk
To get started install the Serilog.Sinks.Splunk package:
PM> Install-Package Serilog.Sinks.Splunk
OR
$ dotnet add package Serilog.Sinks.Splunk
If using the TCP or UDP sinks install the following packages
Serilog.Sinks.Splunk.TCPSerilog.Sinks.Splunk.UDPTo start using the Splunk Event Collector (Splunk 6.3 and above), logging can be setup as follows.
var log = new LoggerConfiguration()
.WriteTo.EventCollector("https://mysplunk:8088/services/collector/event", "myeventcollectortoken")
.CreateLogger();
If using appsettings.json for configuration the following example illustrates using the Event Collector and Console sinks.
{
"Serilog": {
"Using": ["Serilog.Sinks.Console", "Serilog.Sinks.Splunk"],
"MinimumLevel": "Information",
"WriteTo": [{
"Name": "Console"
},
{
"Name": "EventCollector",
"Args": {
"splunkHost": "http://splunk:8088",
"uriPath": "services/collector/event",
"eventCollectorToken": "00112233-4455-6677-8899-AABBCCDDEEFF"
}
}
],
"Properties": {
"Application": "Serilog Splunk Console Sample"
}
}
}
Use the includeHost option to automatically set the Splunk host metadata field to the machine name. This is opt-in and defaults to false.
var log = new LoggerConfiguration()
.WriteTo.EventCollector(
"https://mysplunk:8088",
"myeventcollectortoken",
includeHost: true)
.CreateLogger();
Or via appsettings.json:
{
"Name": "EventCollector",
"Args": {
"splunkHost": "http://splunk:8088",
"eventCollectorToken": "00112233-4455-6677-8899-AABBCCDDEEFF",
"includeHost": true
}
}
If host is explicitly set, it takes precedence over includeHost.
More information about Serilog is available on the wiki.
Serilog is copyright © 2013-2026 Serilog Contributors - Provided under the Apache License, Version 2.0. Needle and thread logo a derivative of work by Kenneth Appiah.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 is compatible. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 1 NuGet packages that depend on Serilog.Sinks.Splunk.TCP:
| Package | Downloads |
|---|---|
|
QueueClasses
dotnet nuget push QueueClasses.1.0.4.nupkg --api-key oy2n7enwyuk4264fiwoq36wyo72gy2gulpfyyfgr6qsg2u --source https://api.nuget.org/v3/index.json |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.2.1-dev-00200 | 87 | 6/3/2026 |
| 5.2.1-dev-00197 | 89 | 6/2/2026 |
| 5.2.1-dev-00196 | 87 | 6/2/2026 |
| 5.2.1-dev-00188 | 103 | 5/21/2026 |
| 5.2.1-dev-00187 | 97 | 5/21/2026 |
| 5.2.1-dev-00186 | 95 | 5/21/2026 |
| 5.2.1-dev-00185 | 95 | 5/21/2026 |
| 5.2.1-dev-00184 | 88 | 5/21/2026 |
| 5.2.1-dev-00179 | 108 | 5/10/2026 |
| 5.2.1-dev-00171 | 110 | 3/24/2026 |
| 5.2.1-dev-00170 | 103 | 3/24/2026 |
| 5.2.1-dev-00169 | 103 | 3/24/2026 |
| 5.2.0 | 3,248 | 3/24/2026 |
| 5.2.0-dev-00168 | 104 | 3/24/2026 |
| 5.2.0-dev-00167 | 103 | 3/24/2026 |
| 5.2.0-dev-00165 | 98 | 3/24/2026 |
| 5.1.1-dev-00164 | 102 | 3/24/2026 |
| 5.1.1-dev-00153 | 422 | 3/17/2025 |
| 5.1.1-dev-00151 | 229 | 2/21/2025 |
| 5.1.1-dev-00150 | 205 | 2/21/2025 |