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

Amazon SSM seelog configuration doesn't compress rotated logs (and other requested changes) #308

Closed
michaelsmoody opened this issue Sep 23, 2020 · 2 comments

Comments

@michaelsmoody
Copy link

Good afternoon,

The default configuration for seelog in SSM doesn't compress the log files in /var/log/amazon/ssm/

seelog does have a directive that allows for zip or gzip compression of log files when rotated. Considering the default seems to allow 300Mbyte log files prior to requiring rotation, this could potentially grow quite large on a /var/log volume (most compliance benchmarks require /var/log to be a separate partition with its own distinct mount options). Please consider modifying the default behavior to include compression of old log files.

Similarly, it appears the rotated logs are rotated in reverse order (meaning that the sequential numbering is backwards, with the most recent number taking the highest number, and it seems this continues getting higher the longer the system runs and rotates logs). This is in contrast to most logging rotation, which numbers the existing log with no number, the recently rotated log with "1", the newly rotated old log as "2", and so on. If you'd like me to open a separate issue for this, I'm happy to do so.

Thanks,
Michael

@ferkhat-aws
Copy link
Contributor

Thank you for bringing this to our attention. We have taken a note of this.

@RushikeshJoshi4
Copy link

I'm seeing a similar issue. Is there any update on this? If not, I just need some help in deciding which files are safe to delete/rotate?
I see leaks in these directories -

  • ./var/log/amazon/ssm
  • ./var/lib/amazon/ssm/<some-random-number>/session/orchestration/*
    Are logs in these directories safe to rotate on a daily basis? Can someone provide more guidance on that?

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

3 participants