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

Make script to compress logs on server #4

Open
smessie opened this issue Nov 30, 2022 · 0 comments
Open

Make script to compress logs on server #4

smessie opened this issue Nov 30, 2022 · 0 comments
Labels
diff: easy 0-1h enhancement New feature or request prio: low Changes are cosmetic, not hindering, or hindering but not urgent

Comments

@smessie
Copy link
Member

smessie commented Nov 30, 2022

Logging in production was done to /mnt/dsashare/fireball/logs. Those logs were then rotated to /mnt/dsashare/fireball/logs/archive and took up some storage. You want to compress these with for example gzip. The compressed logs that you can find in the folder are because of manual compression.
I see that since 2021-01-02 no more logs are send here. The docker now has a volume that is mount onto the log folder. Logs can now be found here /var/lib/docker/volumes/blokat_backend_logs/_data. The archived folder now has 5.3GB of raw archived logs. This should be compressed.

Currently disk usage of this is not a problem yet, but to be prepared following idea:
Create a manual zip script to compress logs from time to time. The script can then filter all log files so that already zipped files are not recompressed.

@smessie smessie added enhancement New feature or request diff: easy 0-1h prio: low Changes are cosmetic, not hindering, or hindering but not urgent labels Nov 30, 2022
@smessie smessie moved this to Todo in Studieplekken Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
diff: easy 0-1h enhancement New feature or request prio: low Changes are cosmetic, not hindering, or hindering but not urgent
Projects
Status: Todo
Development

No branches or pull requests

1 participant