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
Description of the problem, including expected versus actual behavior:
When using ECS with Serilog, exception properties are not sent to ES. I expect to see various exceptions.* properties in my log messages.
Steps to reproduce:
I'm configuring Serilog with the ES sink like so:
The log is sent to ES, but does not include information about the exception, the custom property (.Enrich.WithProperty("Application", "MyService")), does get sent to ES.
When removing CustomFormatter = new EcsTextFormatter() from the ES sink configuration, the exception does get sent to ES (in the exceptions.* properties), but my custom property not anymore.
The text was updated successfully, but these errors were encountered:
Mpdreamz
changed the title
No exceptions logged to ES using when using Serilog
Support serializing exceptions like Serilog.Sinks.Elasticsearch
Feb 10, 2023
Thanks for reporting this took me a while to parse this is actually a feature request to suppot the exceptions.* property just like Serilog.Sinks.Elasticsearch. A feature I actually contributed there back in '15 🐱
Potential dupe of #139 , but am still facing the same issue with Serilog on 1.5.3
ECS integration/library project(s) (e.g. Elastic.CommonSchema.Serilog): Elastic.CommonSchema.Serilog
ECS schema version (e.g. 1.4.0): 1.5.3
ECS .NET assembly version (e.g. 1.4.2): 1.5.3
Elasticsearch version (if applicable): 7.13.1
.NET framework / OS: .NET 5.0 / windows 10
Description of the problem, including expected versus actual behavior:
When using ECS with Serilog, exception properties are not sent to ES. I expect to see various
exceptions.*
properties in my log messages.Steps to reproduce:
I'm configuring Serilog with the ES sink like so:
When doing e.g.:
The log is sent to ES, but does not include information about the exception, the custom property (
.Enrich.WithProperty("Application", "MyService")
), does get sent to ES.When removing
CustomFormatter = new EcsTextFormatter()
from the ES sink configuration, the exception does get sent to ES (in theexceptions.*
properties), but my custom property not anymore.The text was updated successfully, but these errors were encountered: