I am new to Graylog and trying to integrate Graylog with Serilog in my back-end app. Graylog server is on another machine and runs on 10.0.6.55. Udp port is 1514. I've did the configurations but logs are not displaying.
Here's my appsettings.json:
"Serilog": { "Using": [ "Serilog.Sinks.Graylog" ], "MinimumLevel": "Information", "WriteTo": [ { "Name": "Graylog", "Args": { "hostnameOrAddress": "10.0.5.57", "port": "1514", "transportType": "Udp", } } ], "Properties": { "Application": "Centralized logging application" } }
Program.cs Log configuration part:
Log.Logger = new LoggerConfiguration() .ReadFrom.Configuration(builder.Configuration) .Enrich.FromLogContext() .CreateLogger();
And here is Graylog UDP Input:
What am I missing?
Any help would be really appreciated.