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

pipelines: filters: ecs: Retrieve container ID from record field #1402

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

RaJiska
Copy link

@RaJiska RaJiska commented Jul 3, 2024

Documentation for PR fluent/fluent-bit#9033

Also fixed a typo.

Signed-off-by: Ra'Jiska <[email protected]>
Copy link
Contributor

@lockewritesdocs lockewritesdocs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your submission! I suggested some editorial changes and left a question about the referenced tag value.

Comment on lines 155 to 156
Attaches the cluster metadata, as well as task metadata using the already populated field `container_id` containing the
container ID to query the ECS introspection endpoint. In this configuration the tag can be set to anything.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Attaches the cluster metadata, as well as task metadata using the already populated field `container_id` containing the
container ID to query the ECS introspection endpoint. In this configuration the tag can be set to anything.
Attaches the cluster metadata and task metadata using the populated `container_id`
field, which includes the container ID to query the ECS introspection endpoint. In this
configuration the tag can be set to anything.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm unsure what the referenced tag is in the last sentence. Can you provide some clarification?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your suggested changed!

As for the last sentence, I updated to hopefully make it clearer. To put simply, currently ECS metadata requires incoming log records to have a the tag set in a format <prefix><containerid>. Formatting the tag is no longer necessary when using Container_Id_Field_Name as the container ID is retrieved through a given field within the log record.

pipeline/filters/ecs-metadata.md Outdated Show resolved Hide resolved
@RaJiska RaJiska force-pushed the ecs-container-id-field-name branch from 9e57b13 to 5e91178 Compare July 3, 2024 14:55
Co-authored-by: Adam Locke <[email protected]>
Signed-off-by: Doriann Corlouër <[email protected]>
Copy link
Contributor

@lockewritesdocs lockewritesdocs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🦖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants