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

[ENHANCEMENTS] Logrotation / Compression #411

Open
Morethanevil opened this issue Dec 3, 2024 · 4 comments
Open

[ENHANCEMENTS] Logrotation / Compression #411

Morethanevil opened this issue Dec 3, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@Morethanevil
Copy link
Contributor

This enhancement shall save storage space. I took a look at the logs, and it seems Zoraxy does not compress them, they get bigger over time. No rotation, just archiving. On my homeserver they are 300MB, but on my main server the log folder it was over 15GB :)

Maybe Zoraxy could compress them with zip or tar. An option in the settings to delete them after X days would be an idea too.

Screenshot 2024-12-03 232545

@Morethanevil Morethanevil added the enhancement New feature or request label Dec 3, 2024
@tobychui
Copy link
Owner

tobychui commented Dec 3, 2024

@Morethanevil Wow your homelab is really handling some big traffics.
I am currently planning to reconstruct the whole statistic system with some other faster DB (LevelDB maybe?) so more details can be seen on the statistic analysis & system logger. I could optimize the log file management logic together with this update.

@Morethanevil
Copy link
Contributor Author

That would be cool. An option to delete logs after a month or x days would be cool too.

My main server handles a lot of traffic because it federates with others. Mastodon, Sharkey, Lemmy, Matrix etc... This is normal for me 😄

Most logs by nginx or apache are compressed via tar.gz, maybe Zoraxy could use this too. The newest way in Linux are binary logs (journalctl)

Just a few thoughts

@LeonardoIz
Copy link

Related to this, it would also be good to add an option that automatically cleans the logs every so often.

@barto95100
Copy link

Yes the same and possibility button to clear all file or listed file :
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants