Send Audit.NET Trail Logs as connectionless UDP datagrams to a remote host or a multicast group
$ dotnet add package Audit.NET.UdpUDP provider for Audit.NET library (An extensible framework to audit executing operations in .NET).
Sends Audit Logs as UDP datagrams to a network remote host or a multicast group.
NuGet Package To install the package run the following command on the Package Manager Console:
PM> Install-Package Audit.NET.Udp
Please see the Audit.NET Readme
Set the static Audit.Core.Configuration.DataProvider property to set the UDP data provider, or call the UseUdp method on the fluent configuration. This should be done before any AuditScope creation, i.e. during application startup.
For example:
Audit.Core.Configuration.DataProvider = new UdpDataProvider()
{
RemoteAddress = IPAddress.Parse("224.0.0.1"),
RemotePort = 3333
};
Or by using the fluent configuration API:
Audit.Core.Configuration.Setup()
.UseUdp(config => config
.RemoteAddress("224.0.0.1")
.RemotePort(3333));
Mandatory:
UdpClient should send the audit events.UdpClient should send the audit events.Optional:
The theoretical limit for the maximum size of a UDP packet is approximately 64Kb, so events that serializes to a length larger than that, will make the provider fail with an exception of type SocketException.
Entity Framework Extensions and Dapper Plus are major sponsors and are proud to contribute to the development of Audit.NET
Combine the power of auditing with the speed of Bulk Operations to get the best of both worlds — audit and performance.