Serilog.Sinks.BetterstackSyslog 0.0.5

dotnet add package Serilog.Sinks.BetterstackSyslog --version 0.0.5
                    
NuGet\Install-Package Serilog.Sinks.BetterstackSyslog -Version 0.0.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Serilog.Sinks.BetterstackSyslog" Version="0.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Serilog.Sinks.BetterstackSyslog" Version="0.0.5" />
                    
Directory.Packages.props
<PackageReference Include="Serilog.Sinks.BetterstackSyslog" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Serilog.Sinks.BetterstackSyslog --version 0.0.5
                    
#r "nuget: Serilog.Sinks.BetterstackSyslog, 0.0.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Serilog.Sinks.BetterstackSyslog@0.0.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Serilog.Sinks.BetterstackSyslog&version=0.0.5
                    
Install as a Cake Addin
#tool nuget:?package=Serilog.Sinks.BetterstackSyslog&version=0.0.5
                    
Install as a Cake Tool

NuGet

A Serilog sink that logs events to Better Stack over syslog (UDP or TCP/TLS).

Getting started

Install the Serilog.Sinks.BetterstackSyslog package from NuGet:

Using Package Manager In Visual Studio, open NuGet Package Manager Console by clicking Tools → NuGet Package Manager → Package Manager Console

In the console run the following command:

Install-Package Serilog.Sinks.BetterstackSyslog

Optionally using Dotnet CLI

dotnet add package Serilog.Sinks.BetterstackSyslog

To start logging you need to set up an rsyslog source in Better Stack, please use their documentation for this: Better Stack - Getting started

The new ingestion hosts require a -vec suffix, which might not always show in the source tab. It should look like: sXXXXXX.eu-fsn-3-vec.betterstackdata.com

This package supports both UDP and TCP thanks to the well maintained Serilog.Sinks.SyslogMessages.

To configure the sink, call WriteTo.BetterstackUdp() or WriteTo.BetterstackTcp() with your Better Stack source token during logger configuration.

For UDP:

var log = new LoggerConfiguration()
    .WriteTo.BetterstackUdp(host: "<YOUR_INGESTION_HOST>", port: 6517, token: "<SOURCE_TOKEN>")
    .CreateLogger();

For TCP (TLS by default):

var log = new LoggerConfiguration()
    .WriteTo.BetterstackTcp(host: "<YOUR_INGESTION_HOST>", port: 6514, token: "<SOURCE_TOKEN>")
    .CreateLogger();

DNS refresh (UDP)

Better Stack's ingestion hosts rotate between IPs, and UDP gives no error when sending to one that is gone, so logs would be silently lost. The UDP sink therefore re-resolves the host after dnsTtl (default 1 minute) and only switches IP when the current one is no longer returned. IPv4 addresses are preferred, IPv6 is only used when the host has no IPv4 address, since some environments (e.g. Azure Container Apps) have no IPv6 egress. If a send fails, the host is re-resolved before the retry and another address is tried.

.WriteTo.BetterstackUdp(host: "<YOUR_INGESTION_HOST>", port: 6517, token: "<SOURCE_TOKEN>", dnsTtl: TimeSpan.FromMinutes(5))

Use Timeout.InfiniteTimeSpan to resolve only once at startup. The TCP sink resolves the host whenever it reconnects, so it needs no setting.

A number of optional parameters are available for more advanced configurations, see doc tags for more information.

NOTE: Project is in no way associated with Better Stack or Serilog.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.5 343 11/17/2026
0.0.4 204 11/10/2026
0.0.3 322 10/29/2026
0.0.2 321 3/3/2026
0.0.1 141 3/3/2026
0.0.1-pre 136 3/3/2026