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

access.log does not have retention #40

Open
Kirbo opened this issue Jan 2, 2024 · 2 comments
Open

access.log does not have retention #40

Kirbo opened this issue Jan 2, 2024 · 2 comments
Labels

Comments

@Kirbo
Copy link

Kirbo commented Jan 2, 2024

Hi,
First of all, thanks for this awesome project!
I've been using Lancache at home for the past 1-2 years now as well as on our small friend groups lan party (~40-50 people).

Now I just noticed on my home instance, that the /logs/access.log does not appear to have retention. I was wondering why I ran out of disk space all the sudden, as I have 1.4T disk, I use 1350G for cache and 500M for index, so there should've been ~48G free space for the OS etc.
I just cleared all the caches, but right after that I noticed this:

root@lancache:/cache/logs# ls -la
total 113190328
drwxr-xr-x 2 root root         4096 Jul 27 20:51 .
drwxr-xr-x 4 root root         4096 Jul 27 20:51 ..
-rw-r--r-- 1 root root 115905572629 Jan  2 18:06 access.log
-rw-r--r-- 1 root root       226523 Jan  2 17:53 error.log
-rw-r--r-- 1 root root       651463 Jan  2 17:58 stream-access.log
-rw-r--r-- 1 root root       200704 Dec 23 16:26 stream-error.log
-rw-r--r-- 1 root root        75732 Dec  6 18:12 upstream-error.log

root@lancache:/cache/logs# ls -lah 
total 108G
drwxr-xr-x 2 root root 4.0K Jul 27 20:51 .
drwxr-xr-x 4 root root 4.0K Jul 27 20:51 ..
-rw-r--r-- 1 root root 108G Jan  2 17:54 access.log
-rw-r--r-- 1 root root 222K Jan  2 17:53 error.log
-rw-r--r-- 1 root root 636K Dec 23 16:26 stream-access.log
-rw-r--r-- 1 root root 196K Dec 23 16:26 stream-error.log
-rw-r--r-- 1 root root  74K Dec  6 18:12 upstream-error.log

That's quite big access.log file there 😅 Some kind of retention, for either e.g. 10G or past 30 days or something would be better, imho.

In case you're interested, here's my repo with configs that I use: https://github.com/kirbo/lancache

@Kirbo
Copy link
Author

Kirbo commented Jan 2, 2024

Copy link

stale bot commented Mar 17, 2024

This issue has been automatically marked as inactive because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the inactive label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant