'Need help configuring Serilog (TcpSyslog)
Has anyone been successful in setting up the TcpSyslog settings in the appsettings.json. Is there anything else needed other than the following
I have also added the package Serilog.Sinks.SyslogMessages.
I have the following settings:
"Serilog": {
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information",
"MassTransit": "Debug"
}
},
"WriteTo": [
{
"Name": "File",
"Args": {
"path": "/tmp/logs/myapp-log.txt",
"rollingInterval": "Day"
}
},
{
"Name": "Syslog",
"Args": {
"outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj} <s:{SourceContext}>{NewLine}{Exception}",
"host": "myhostIP",
"port": 514,
"format": "RFC5424",
"secureProtocols": "SecureProtocols.None",
"appName": "myapp",
"facility": "Local7"
}
}
]
},
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
