25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

log2ram.conf 3.0 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Configuration file for Log2Ram (https://github.com/azlux/log2ram) under MIT license.
  2. # This configuration file is read by the log2ram service
  3. # Size for the ram folder, it defines how much space is reserved in the RAM for the logs.
  4. # Ensure 'SIZE=' is larger than your /var/log directory.
  5. # - (If not enough is reserved, log2ram will fail to start).
  6. # Ensure logrotate is set to keep your /var/log directory from growing too large.
  7. # - (If your /var/log directory grows larger than 'SIZE=', new logs entries can't be written).
  8. # The default of 128M is adequate for a lot of applications.
  9. # You will need to increase it if you have a server and a lot of log for example.
  10. SIZE=128M
  11. # Select the log syncing method between disk and RAM:
  12. # - 'rsync' is the default unless 'USE_RSYNC' is set to 'false'.
  13. # - If 'rsync' is unavailable, 'cp' is automatically used as a fallback.
  14. # - Set 'USE_RSYNC' to 'false' to explicitly use 'cp'.
  15. #USE_RSYNC=false
  16. # If there are some errors with available RAM space, a system mail will be send by default (see next parameter)
  17. # Change it to false and you will have only a log if there is no place on RAM anymore.
  18. #NOTIFICATION=true
  19. # This is a one-line command for the error notification.
  20. # By default, it's a email with the command `mail`, the body is passed in stdin.
  21. # So you can set any command(like shoutrrr) or custom script for the error notification.
  22. #NOTIFICATION_COMMAND=mail -s "Log2Ram Error on $HOSTNAME"
  23. # Variable for folders to put in RAM. You need to specify the real folder `/path/folder` , the `/path/hdd.folder` will
  24. # be automatically created. Multiple path can be separeted by `;`. Do not add the final `/` !
  25. # example : PATH_DISK="/var/log;/home/test/FolderInRam"
  26. PATH_DISK="/var/log"
  27. # Should log2ram consider journald and do a log rotate before copying the log files back? Please note that for this
  28. # rsync is mandatory. Also make sure that you have configured SystemMaxUse in journald.conf, because the size of this
  29. # ram folder is will probably not be as large as journald will use by default
  30. JOURNALD_AWARE=true
  31. # **************** Zram backing conf *************************************************
  32. # ZL2R Zram Log 2 Ram enables a zram drive when ZL2R=true ZL2R=false is mem only tmpfs
  33. ZL2R=false
  34. # COMP_ALG this is any compression algorithm listed in /proc/crypto
  35. # lz4 is fastest with lightest load but deflate (zlib) and Zstandard (zstd) give far better compression ratios
  36. # lzo is very close to lz4 and may with some binaries have better optimisation
  37. # COMP_ALG=lz4 for speed or Zstd for compression, lzo or zlib if optimisation or availabilty is a problem
  38. COMP_ALG=lz4
  39. # LOG_DISK_SIZE is the uncompressed disk size. Note zram uses about 0.1% of the size of the disk when not in use
  40. # LOG_DISK_SIZE is expected compression ratio of alg chosen multiplied by log SIZE
  41. # lzo/lz4=2.1:1 compression ratio zlib=2.7:1 zstandard=2.9:1
  42. # Really a guestimate of a bit bigger than compression ratio whilst minimising 0.1% mem usage of disk size
  43. LOG_DISK_SIZE=256M