netbirdio / netbird

Connect your devices into a secure WireGuard®-based overlay network with SSO, MFA and granular access controls.
https://netbird.io
BSD 3-Clause "New" or "Revised" License
11.16k stars 514 forks source link

Management json.log too big #2437

Closed hagianghi closed 2 months ago

hagianghi commented 3 months ago

Describe the problem

json.log in Management container too big (54GB)

To Reproduce

Steps to reproduce the behavior:

  1. Go to '/var/lib/docker/containers/dc0c6adf3e5b465bcdf5d7292c8ca1c0b5e75caa2b4e894fa9d26d20b6dee320'
  2. Click on 'ls -lh'
  3. Scroll down to 'check file json.log'

Expected behavior

this log file grow fast (1GB after 24h)

Are you using NetBird Cloud?

I'm using self-hosted netbird

Screenshots

image

Additional context

my docker-compose.yml

version: "3.4" services:

Caddy reverse proxy

caddy: image: caddy restart: unless-stopped networks: [ netbird ] ports:

volumes: netbird_management: netbird_caddy_data: netbird_crdb_data: netbird_crdb_certs: netbird_zitadel_certs:

networks: netbird:

hagianghi commented 2 months ago

done now, just clear docker logs sudo sh -c 'truncate -s 0 /var/lib/docker/containers//-json.log'