Skip to content

access.log does not have retention #40

@Kirbo

Description

@Kirbo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions