-
Notifications
You must be signed in to change notification settings - Fork 1.7k
ECS metadata fails when container tag is overriden #9028
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
Comments
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the |
This issue was closed because it has been stalled for 5 days with no activity. |
Came across this same issue during testing. I was able to use custom tags by specifying
The filter would then need to have the above tag as an ECS tag prefix:
Only pain point is that there needs to be a filter for each custom tag you specify |
@jenademoodley Unfortunately this is not good enough as there are cases where you may have tags looking like I opened a PR #9033 that addresses just that by providing a field to lookup the container ID from. Unfortunately this hasn't been reviewed yet. |
Bug Report
Describe the bug
ECS metadata plugins fails to retrieve task details when the tag is overridden (by default the container ID) for something custom.
To Reproduce
Config file:
Container sending logs started with the following command:
Resulting in the following errors from fluentbit:
Expected behavior
Fluent-bit ECS filter should not retrieve the container ID from the tag. I am not aware of the internals, but I believe there must be another way to retrieve the container ID as it is available through the
container_id
key regardless.Your Environment
Additional context
I'd like to supply a custom tag to have a different logic depending of the container and log types it ships to fluentbit. The ECS metadata filter does not work when supplying my own tag.
The text was updated successfully, but these errors were encountered: