I set it to debug at somepoint and forgot maybe? Idk, but why the heck does the default config of the official Docker is to keep all logs, forever, in a single file woth no rotation?

Feels like 101 of log files. Anyway, this explains why my storage recipt grew slowly but unexpectedly.

  • catloaf@lemm.ee
    link
    fedilink
    English
    arrow-up
    29
    ·
    17 hours ago

    We should each not have to configure log rotation for every individual service. That would require identify what and how it logs data in the first place, then implementing a logrotate config. Services should include a reasonable default in logrotate.d as part of their install package.

    • sugar_in_your_tea@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      35 minutes ago

      Docker services should let docker handle it, and the user could then manage it through Docker or forward to some other logging service (syslog, systemd, etc). Processes in containers shouldn’t touch rotation or anything, just log levels and maybe which types of logs go to stdout vs stderr.

    • Shimitar@downonthestreet.eu
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      7 hours ago

      Agreed, but going container route those nice basic practices are dead.

      And also, being mextcloud a php service, of can’t by definition ship with a logrotate config too, because its never packaged by your repo.

    • RubberElectrons@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      17 hours ago

      Ideally yes, but I’ve had to do this regularly for many services developed both in-house and out of house.

      Solve problems, and maybe share your work if you like, I think we all appreciate it.