A Visual Studio 2019 solution written in C# to demonstrate sending messages to a Syslog Server using the SyslogNet open source library for .NET. Supports both RFC 3164 and RFC 5424 Syslog standards.
For this solution to work, it is necessary to add a SyslogNet.Client reference to project.
In order to send messages to Syslog, you must have a Syslog Server setup and configured. You will need its IP address and UDP port number to send messages.
- Download the solution from our GitHub repository
- Open the solution in Visual Studio 2019
- Install the SyslogNet NuGet Package: Install-Package SyslogNet.Client
- Edit the 'SyslogServer' string constant with your Syslog Server IP address
- Edit the 'SyslogPort' string constant with your Syslog Server UDP port number (usually 514)
- Edit the 'AppName' string constant with your Syslog application name
- Click the Start button, or press F5
This project is licensed under the MIT License - see the LICENSE.md file for details