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

Add ecs metadata fields to logger #637

Open
applike-ss opened this issue Dec 7, 2021 · 0 comments
Open

Add ecs metadata fields to logger #637

applike-ss opened this issue Dec 7, 2021 · 0 comments
Assignees

Comments

@applike-ss
Copy link
Contributor

applike-ss commented Dec 7, 2021

If available, we want to add the ecs metadata fields to the logger.

This adds e.g. the instance id and task definition revision which should help debugging things.

I would suggest these fields to be added:

  • TaskDefinitionFamily as fields.aws.task_definition.family (e.g. project-env-family-appGroup-appName)
  • TaskDefinitionRevision as fields.aws.task_definition.revision (e.g. 123)
  • ContainerID as fields.container.id (e.g. 65c751452f5c8bef0304ff96dba3fcaa0f49a421d74c86aad95789f68d8c566d)
  • ImageName as fields.container.imageName (e.g. accountId.dkr.ecr.region.amazonaws.com/project/family/appGroup-appName:ciRefName-ciCommitSha)
  • AvailabilityZone as fields.cloud.availability_zone (e.g. eu-central-1a)
  • HostPrivateIPv4Address as fields.instance.ip (e.g. 10.1.2.3)
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

No branches or pull requests

1 participant