Skip to content

Update ECS logs collector - #758

Open
tessaSlice wants to merge 3 commits into
aws:mainfrom
tessaSlice:main
Open

Update ECS logs collector#758
tessaSlice wants to merge 3 commits into
aws:mainfrom
tessaSlice:main

Conversation

@tessaSlice

@tessaSlice tessaSlice commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

ECS logs collector shell script copy on this repository has drifted from ECS logs collector repo: github.com/aws/amazon-ecs-logs-collector

Implementation details

Copy over ecs-logs-collector.sh from the amazon-ecs-logs-collector repository.

Update ECS_LOGS_COLLECTOR_VERSION to reflect latest commit SHA in ECS logs repository.

Testing

New tests cover the changes: yes

Description for the changelog

Enhancement - Update ECS Logs Collector

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@tessaSlice
tessaSlice marked this pull request as ready for review July 31, 2026 22:32
@tessaSlice
tessaSlice requested a review from a team as a code owner July 31, 2026 22:32
# This file tracks the latest ECS Logs Collector version available during AMI build.

d9f4f2989ef8ed0c83c680b5e9c1971bedb45ac7 No newline at end of file
c01bc32e87905363b1fc29c4c3072238eef79e20

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

verified: matching sha

modinfo nvidia > "$info_system"/gpu/gpu-installed-kmod.txt
fi

if [ -e /var/log/nv-hostengine.log ]; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't see L893 - L895 in the logs-collector repo
Why is it removed here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We don't need this since we're already redirecting the output of nv-hostengine log to the logs folder.


# datetime is the date and time when the script was executed used in pack()
datetime=$(date +%Y%m%d%H%M)
datetime=`date +%Y%m%d%H%M`

@TheanLim TheanLim Aug 1, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this big diff mainly comes from the previous author running make fmt which formats all the shell scripts.
interestingly our PR Static Check check against different set of files, but this all goes back to our Makefile -- calling it out of scope to fix.

I'd suggest you to run make fmt too to minimize the diff

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.

2 participants