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

Container log file size #173

Open
samcro1967 opened this issue Jul 6, 2024 · 2 comments
Open

Container log file size #173

samcro1967 opened this issue Jul 6, 2024 · 2 comments

Comments

@samcro1967
Copy link

After running this image for a few weeks, the container log file has grown to almost 200 GB. I needed to reclaim space so I stopped the container, truncated the log file, limited the log file size, and restarted the container. Not sure if this is normal/expected or if I have something misconfigured.

I added the following to docker compose if anyone else sees a similiar issue.

    logging:
      driver: "json-file"
      options:
        max-size: "10m"
        max-file: "3"

Everything seems to be running normally

@nylonee
Copy link
Owner

nylonee commented Jul 31, 2024

That's mad. Is this with debug on or off?

@samcro1967
Copy link
Author

Ah, I did have debug enabled. Forgot that I had even enabled it when first setting up. Forgot to disable after I got things running successfully. That is still a lot. Might want to look at using files for logging with file rotation down the road. Maybe a file a day and keep a week's worth of logs or something along those lines. I like the way the arr's do it with separate files for info versus debug versus trace as well.

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

2 participants