You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following error in the application: Event JSON representation exceeds the body size limit 262144; sample: ...
GlobalConfiguration.Configuration.UseSerilogLogProvider();
var logger = new LoggerConfiguration()
.ReadFrom.Configuration(builder.Configuration)
.Filter.ByExcluding(logEvent => logEvent.Exception is OperationCanceledException)
.CreateLogger();
builder.Host
.UseSerilog(logger);
In my appsettings.json I have the following configuration:
I see similar thread, but hey use a slightly different configuration.
I'd like to increase the batch size limit, where do I have to put this setting in my client code?
The text was updated successfully, but these errors were encountered:
The default is 256KiB, which should be plenty for any text-based log event that doesn't contain binary data (e.g. Base64 encoded binary data, as in the similar thread), or other issues (see here, under "settings you shouldn't need to touch): https://blog.datalust.co/collecting-serilog-events/
While we don't recommend this (rather, we feel its much wiser to work out why your logs are so large and fix that instead), you could achieve that using eventBodyLimitBytes and following the additional configuration info here:
I get the following error in the application:
Event JSON representation exceeds the body size limit 262144; sample: ...
In my appsettings.json I have the following configuration:
I see similar thread, but hey use a slightly different configuration.
I'd like to increase the batch size limit, where do I have to put this setting in my client code?
The text was updated successfully, but these errors were encountered: