-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] The fields event.code and event.action specified by the ECS standard are not written correct in dotnet core #356
Comments
Just to be sure are you using https://github.com/serilog/serilog-extensions-logging ? |
Just asking because vanilla extensions logging supports
Will add support for serilog/serilog-extensions-logging |
Actually that is correct I'm using the following packages:
with the following configuration: "Serilog": {
"WriteTo:File": {
"Name": "File",
"Args": {
"formatter": "Elastic.CommonSchema.Serilog.EcsTextFormatter, Elastic.CommonSchema.Serilog",
"path": "./Logfiles/MyApplication-.log",
"restrictedToMinimumLevel": "Verbose"
}
}
} Thank you very much for taking the time. |
ECS integration/library project(s) (e.g. Elastic.CommonSchema.Serilog):
I'm using the Elastic.CommonSchema.Serilog.EcsTextFormatter, Elastic.CommonSchema.Serilog (8.6.1) to output my logs in the ECS standard.
ECS schema version (e.g. 1.4.0):
The ecs.version is 8.6.0
ECS .NET assembly version (e.g. 1.4.2):
Elastic.CommonSchema.Serilog.EcsTextFormatter, Elastic.CommonSchema.Serilog (8.6.1)
Elasticsearch version (if applicable):
n/a
.NET framework / OS:
.net 6.0 on windows 10
Description of the problem, including expected versus actual behavior:
When I'm logging a message with an EventId the properties like EventId.Id and EventId.Name are written in a metadata field. I would expect that the event information are stored in the documented fields in the ECS standard (please see specification for Event Fields).
Actual log output:
Expected log output:
The text was updated successfully, but these errors were encountered: