You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using 2.0 version of this library for my Asp.Net 4.5.1 project. I am trying to send my logs to our company server which has specific streams for each application in the company. I couldn't achieve to see my logs on the server dashboard.
Here my code.
_logger = new LoggerConfiguration()
.WriteTo.Graylog(new GraylogSinkOptions {
HostnameOrAddress = "server",
Port =port,
TransportType = TransportType.Udp
})
//.Enrich.WithProperty("LogSource", "applicationName")
.Enrich.WithProperty("AdditionalFields" , new { application = "applicationName" })
.MinimumLevel.Information()
.CreateLogger();
I am not sure but Graylog GELF specification expects an applicationName for the stream, how can I send these additional fields via this (Serilog graylog) extension? (Tried with Enrich api but not worked)
The text was updated successfully, but these errors were encountered:
@whir1 Thank you for your answer, in our Graylog configuration, a stream is configured as an applicationName field required.
So later, I did exactly what you post, but still, no log received.
Also, to ensure I tried with a .net core project if stream accepts any log for the given application name. So, I could get logs from that project. I am not sure what I am missing.
I am using 2.0 version of this library for my Asp.Net 4.5.1 project. I am trying to send my logs to our company server which has specific streams for each application in the company. I couldn't achieve to see my logs on the server dashboard.
Here my code.
I am not sure but Graylog GELF specification expects an applicationName for the stream, how can I send these additional fields via this (Serilog graylog) extension? (Tried with Enrich api but not worked)
The text was updated successfully, but these errors were encountered: