this post was submitted on 07 Jun 2023
9 points (100.0% liked)

Lemmy Support

4651 readers
1 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 6 years ago
MODERATORS
 

My log (accessed via docker-compose logs -f lemmy has gotten very noisy since my instance has been federating with several others. It makes it harder to troubleshoot odd behavior and I'm concerned that it's going to quickly fill up my server's disk with logs. What can I do to improve this?

you are viewing a single comment's thread
view the rest of the comments
[–] ptz@lemmy.ptznetwork.org 3 points 2 years ago* (last edited 2 years ago)

I just used the Docker logging options to cap the stdout/stderr log to a reasonable size. Just add logging options to each chatty service and change 25m to whatever makes sense for your environment.

docker-compose.yml:

services:
  ....
  lemmy:
    ...
     logging:                                                                                                                                                                                 
        options:                                                                                                                                                                               
          max-size: 25m
  pictrs:
    ...
       logging:                                                                                                                                                                                 
        options:                                                                                                                                                                               
          max-size: 25m