I send only Log.Information with Facility.Local0 but I receive also Local7.Debug events #74
Unanswered
marcomoret
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is my configuration of logger
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.WriteTo.TcpSyslog(host: system, port: port, appName: "my-app", format: SyslogFormat.RFC5424, facility: Facility.Local0) //, outputTemplate: "{Message}")
.CreateLogger();
and I send some events like this
Log.Information("170515@@osa@@Useraccess@@ponale@@no@@Pontoglio ALESSIO@@20240719170239@@@@QZRCSRVS@@quser@@046936@@QWTPITPP@@Qsys@@@@@@@@b@@access@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@1@@*USER@@castel@@10101@@2024-07-19 17:05:37");
await Task.Delay(500);
Log.Information("170516@@osa@@Useraccess@@biaale@@no@@bianchi Alessandra@@20240719170259@@@@QZRCSRVS@@quser@@047941@@QWTPITPP@@Qsys@@@@@@@@b@@access@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@1@@*USER@@castel@@10101@@2024-07-19 17:05:37");
await Task.Delay(500);
Log.Information("170517@@osa@@Useraccess@@biaale@@no@@bianchi Alessandra@@20240719170259@@@@QZRCSRVS@@quser@@047942@@QWTPITPP@@Qsys@@@@@@@@b@@access@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@1@@*USER@@castel@@10101@@2024-07-19 17:05:37");
await Task.Delay(500);
In syslog server I find messages like this
2024-07-22 11:10:17 Local7.Debug 127.0.0.1 283 <134>1 2024-07-22T11:10:17.003421+02:00 POWER-CHECK-IBM my-app 22520 - - 170515@@osa@@Useraccess@@ponale@@no@@Pontoglio ALESSIO@@20240719170239@@@@QZRCSRVS@@quser@@046936@@QWTPITPP@@Qsys@@@@@@@@b@@access@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@1@@*USER@@castel@@10101@@2024-07-19 17:05:37
2024-07-22 11:10:19 Local7.Debug 127.0.0.1 284
2024-07-22 11:10:19 Local7.Debug 127.0.0.1
2024-07-22 11:10:19 Local0.Info 127.0.0.1 1 2024-07-22T11:10:17.534779+02:00 POWER-CHECK-IBM my-app 22520 - - 170516@@osa@@Useraccess@@biaale@@no@@bianchi Alessandra@@20240719170259@@@@QZRCSRVS@@quser@@047941@@QWTPITPP@@Qsys@@@@@@@@b@@access@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@1@@*USER@@castel@@10101@@2024-07-19 17:05:37
2024-07-22 11:10:19 Local7.Debug 127.0.0.1 284
2024-07-22 11:10:19 Local7.Debug 127.0.0.1
2024-07-22 11:10:19 Local0.Info 127.0.0.1 1 2024-07-22T11:10:18.050379+02:00 POWER-CHECK-IBM my-app 22520 - - 170517@@osa@@Useraccess@@biaale@@no@@bianchi Alessandra@@20240719170259@@@@QZRCSRVS@@quser@@047942@@QWTPITPP@@Qsys@@@@@@@@b@@access@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@1@@*USER@@castel@@10101@@2024-07-19 17:05:37
2024-07-22 11:10:19 Local7.Debug 127.0.0.1 295
2024-07-22 11:10:19 Local7.Debug 127.0.0.1
some one I find also 2 or more events in the same received message
Why this? where I make a wrong configuration?
thanks
Beta Was this translation helpful? Give feedback.
All reactions