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

new: Added support for configuration compatible with ECS log format #104

Merged
merged 1 commit into from
Dec 9, 2023

Conversation

pamburus
Copy link
Owner

@pamburus pamburus commented Dec 9, 2023

  • Added support for predefined field names that can match fields in nested objects when used with dot delimiters.
    For example, if log.origin.file.name is used for a predefined field name, it will match any of the
    • { "log.origin.file.name": "app.py" }
    • { "log": { "origin.file.name": "app.py" } }
    • { "log": { "origin": {"file.name": "app.py" } } }
    • { "log": { "origin": {"file": {"name": "app.py" } } } }
    • etc.
  • Added predefined caller-file and caller-line fields for separate processing of file name and line number.

Example output

23-11-02 08:09:10.423 |INF| __main__: backup for database bar in foo is already done today application='backup-rds' ecs={ version='1.6.0' } language='python' process={ name='MainProcess' pid=1 thread={ id=140610736142144 name='MainThread' } } ... @ app.py:107

Suggested configuration file for ECS logs is etc/defaults/config-ecs.yaml
These settings have not been added to the default configuration because it is not yet clear how they will affect performance.

Closes #97

@pamburus pamburus force-pushed the feature/issues/97/a branch from eebdb04 to 3dc833c Compare December 9, 2023 22:25
@pamburus pamburus changed the title new: Added support for ECS logs format new: Added support for configuration compatible with ECS logs format Dec 9, 2023
@pamburus pamburus changed the title new: Added support for configuration compatible with ECS logs format new: Added support for configuration compatible with ECS log format Dec 9, 2023
@pamburus pamburus merged commit cad30c7 into master Dec 9, 2023
1 check passed
@pamburus pamburus deleted the feature/issues/97/a branch December 9, 2023 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for ecs log format
1 participant