serilog-contrib / serilog-sinks-splunk

A Serilog sink that writes to Splunk
https://splunk.com
Apache License 2.0
46 stars 47 forks source link

Splunk sink is not working in asp.net core 6 #160

Closed milad-karimifard closed 7 months ago

milad-karimifard commented 2 years ago

Hi, I work on an application developed by Asp.net core 6 and integrated with serilog. I installed this sink to integrate my app with Splunk, but when logging something with serilog, nothing happened. I debug that and make sure my log is added to the sink queue but is not sent to the Splunk server. Even I set batchIntervalInSeconds to zero but nothing happen either. On my last try, when the app stop and serilog flush their log, the sink is not trying to send logs to Splunk

ghost commented 2 years ago

We have the same Issue

zhosafwan commented 1 year ago

I have the same Issue Any update?

j2jensen commented 1 year ago

Some of my team members were a little scared to try this library due to its not being updated any time recently, and the presence of this open issue. However, we tried it and it seems to work just fine in ASP.NET Core 6. We used Serilog's Getting Started documentation to set up serilog and tie it into our host builder, and then used the instructions in this repo's Readme to set up logging to Splunk.

Can anyone who's having these issues share a minimum repro for this issue?

EEParker commented 8 months ago

This should be addressed by #171 once released to Nuget.