Before you post: Your responses to these questions will help the community help you. Please complete this template if you’re asking a support question.
Don’t forget to select tags to help index your topic!
1. Describe your incident:
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.
2. Describe your environment:
- OS Information: Windows 10
3. What steps have you already taken to try and solve the problem?
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"
}
}
Logger configuration part:
Log.Logger = new LoggerConfiguration().
ReadFrom.Configuration(builder.Configuration).
Enrich.FromLogContext().
CreateLogger();
builder.Logging.ClearProviders();
builder.Logging.AddSerilog(Log.Logger);
And here is Graylog UDP Input:
TestUDP - GELF UDP - (64b0f801248649515c3f7d0b) - RUNNING
On node 8521730c / graylog
bind_address: 0.0.0.0
charset_name: UTF-8
decompress_size_limit: 8388608
number_worker_threads: 8
override_source: <empty>
port: 1514
recv_buffer_size: 262144
What am I missing? I
Any help would be really appreciated.