Replies: 3 comments 14 replies
-
Hi Jakub, Setting an API key per log source is the intended mechanism to use on the Seq side and will be handy in the long run, if you're able to retroactively do it now. Another option is to briefly increase the limit and try to spot some large events in a short window (say 10 mins). These messages are generated client-side - I'm guessing by Serilog in your apps? - so you'd need to reconfigure your client logger in order to change the limit anyway, so using a unique API key is probably a similar amount of work and a better solution overall. Hope this helps, |
Beta Was this translation helpful? Give feedback.
-
Hey Nick Thanks for the reply. I do use Serilog and as you wrote I would have to reconfigure client to change the limit. Regarding using an API key per log source. How do you guys advise to handle mobile clients that can log to Seq. I can imagine having a mobile app with hundreds of instances installed. In this scenario having API key per log source seems really difficult to implement. Thanks |
Beta Was this translation helpful? Give feedback.
-
@nblumhardt I am also facing the same message. If I understood correctly, current implementation is, when message limit is exceeded, it only displays 512 bytes (sample). I can see two problems with sample output: it is not formatted, and sometimes its short. Example: Event JSON representation exceeds the body size limit 262144; sample: {"@t":"2023-06-29T13:28:44.4061815Z","@mt":"Saving data for {Type} failed in {DatabaseName}","@l":"Error","@x":"Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.\r\n ---> MySqlConnector.MySqlException (0x80004005): Data too long for column 'StreetName' at row 1\r\n at MySqlConnector.Core.ResultSet.ReadResultSetHeaderAsync(IOBehavior ioBehavior) in /_/src/MySqlConnector/Core/ResultSet.cs:line 43\r\n at MySqlConnector. Is it possible to first format the sample value? And also it would be nice to be able to control sample limit as parameter, so user can increase it (ex eventBodySampleLimitBytes). So, someone can put 1024 for their scenario. |
Beta Was this translation helpful? Give feedback.
-
Hi guys
If multiple apps (mobile) write to seq using the same api key and I receive "Event JSON representation exceeds the body size limit" how can I figure out which app cause the issue? It looks like my whole seq is polluted with those messages but I can't find a way to figure out which app cause that since I was sending app id as part of the log body which is not present in the body sample included with this error event?
Beta Was this translation helpful? Give feedback.
All reactions