Skip to content

Conversation

@Mic-U
Copy link

@Mic-U Mic-U commented May 30, 2025

Summary

Capturing SSM agent logs.
It is requested in the issue #84

Implementation details

Adding get_ssm_logs function.
This function collects SSM agent logs with the following commands.

  • journalctl -u amazon-ssm-agent
  • snap logs amazon-ssm-agent (For Ubuntu)
  • cp -f -r /var/log/amazon/ssm/*

https://github.com/Mic-U/amazon-ecs-logs-collector/blob/issues/84/ecs-logs-collector.sh#L550-L580

Testing

  • Works properly on Amazon Linux 2
  • Works properly on Amazon Linux 2023
  • Works properly on Ubuntu 20.04
  • Works properly on CentOS 8

Ubuntu 20.04 is becoming EOL soon.
https://ubuntu.com/about/release-cycle

CentOS 8 has already been EOL.
https://www.centos.org/centos-linux-eol/

So, I tested with Ubuntu 22.04 and CentOS9, it looks working fine.

New tests cover the changes: No, tested manually

Licensing

This contribution is under the terms of the Apache 2.0 License: Yes

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.

1 participant