Seq does not handover all incoming events to app #2307
-
I have an application which is feeding in around 150000 events in 5 minutes to Seq. These events appear in seq as they should do. But not all events are handed over to my own developed Seq App. I added a simple counter there and it seems 1/4 of the events are not handed over there. So it seems Seq is not calling the "public async Task OnAsync(Event evtLogEvent)" method. What can be the issue here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @apatenge, thanks for your message. The most likely cause will be your app not processing the events fast enough; Seq has an internal buffer per app of 100000 events, and if the app falls behind, events will be dropped. An event is normally written to Seq's internal diagnostic log when this happens - check out Settings > Diagnostics > Download a full diagnostic report, and search for You can work around this by speeding up the app, but if that isn't possible, you can also modify the implementation of the app to buffer the events internally using some kind of queue, and process them on a second/background thread. Memory use will need to be carefully monitored if you take this path, however. Let me know if this helps, |
Beta Was this translation helpful? Give feedback.
Hi André, thanks for your reply. The buffer size isn't configurable - waiting a few ms between events will be the way to go, currently.
Best regards,
Nick