Using Serilog Seq sink gives me Event JSON representation exceeds the body size limit 262144;

1.3k views Asked by At

At some point in the code, I need to specify a huge JSON , I've got my logs full of

Event JSON representation exceeds the body size limit 262144; sample: .

On Seq part I've changed the settings to allowing 1Mb but I still got this error message. Should I also change the web application part?

Is there a setting I can pass in the appsettings.configuration?

Thanks

1

There are 1 answers

1
Nicholas Blumhardt On

The limit needs to be changed both in the WriteTo.Seq() call's eventBodyLimitBytes argument, and on the Seq server in Settings > System > Raw event body limit.