Skip to content
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

Use ecszap formatter to add MVP support for ECS logging #17942

Closed
simitt opened this issue Apr 23, 2020 · 2 comments
Closed

Use ecszap formatter to add MVP support for ECS logging #17942

simitt opened this issue Apr 23, 2020 · 2 comments
Assignees
Labels
Team:apm APM Server team issues/PRs Team:Integrations Label for the Integrations team

Comments

@simitt
Copy link
Contributor

simitt commented Apr 23, 2020

Motivation/Summary

As part of the ECS logging effort, integrate the new ecszap formatter in libbeats logging layer. The intention is to let users enable ECS compliant logging. The log formatter currently supports adding ECS fields defined as MVP in the ecs-logging project. If a caller is logged, the logging format also adheres to ECS.

ECS compliant error logging is not yet fully supported, but the general ECS error format is respected, by following the format "error": { "message": "", "stacktrace": "" }.

This is part of the ECS logging effort described in #15544.

@simitt simitt self-assigned this Apr 23, 2020
@andresrc andresrc added [zube]: Inbox Team:Integrations Label for the Integrations team labels Apr 27, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@andresrc andresrc added Team:apm APM Server team issues/PRs [zube]: In Progress and removed [zube]: Inbox labels Apr 27, 2020
simitt added a commit to simitt/beats that referenced this issue May 4, 2020
Enable ECS conformant logging by setting `logging.ecs:true`
Adds @timestamp, log.level, message and ecs.version to every log line.
If EnableCaller is set add log.origin.file and log.origin.line.
Logs error.message when error is given

implements elastic#17942
simitt added a commit that referenced this issue May 5, 2020
Enable minimal ECS conformant logging by setting `logging.ecs:true`:
* adds @timestamp, log.level, message and ecs.version to every log line
* if EnableCaller is set add log.origin.file and log.origin.line.
* logs error.message when error is given

implements #17942
simitt added a commit to simitt/beats that referenced this issue May 5, 2020
Enable minimal ECS conformant logging by setting `logging.ecs:true`:
* adds @timestamp, log.level, message and ecs.version to every log line
* if EnableCaller is set add log.origin.file and log.origin.line.
* logs error.message when error is given

implements elastic#17942
simitt added a commit that referenced this issue May 5, 2020
Enable minimal ECS conformant logging by setting `logging.ecs:true`:
* adds @timestamp, log.level, message and ecs.version to every log line
* if EnableCaller is set add log.origin.file and log.origin.line.
* logs error.message when error is given

implements #17942
@simitt
Copy link
Contributor Author

simitt commented May 28, 2020

Implemented with #17974

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:apm APM Server team issues/PRs Team:Integrations Label for the Integrations team
Projects
None yet
Development

No branches or pull requests

3 participants