Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

62 Zeilen
3.5 KiB

  1. # Configuration file for Log2Ram (https://github.com/azlux/log2ram) under MIT license.
  2. # This configuration file is read by the log2ram service
  3. # Specify the amount of RAM reserved for storing logs. This setting determines the maximum size of the RAM folder.
  4. # Ensure 'SIZE=' is set larger than the current size of your /var/log directory to prevent startup failures.
  5. # Also, configure logrotate to manage log growth and prevent the /var/log directory from exceeding this reserved size.
  6. # The default setting of 128M suffices for many typical applications, but you may need to increase it for
  7. # servers or systems that generate extensive logging.
  8. SIZE=128M
  9. # Select the log syncing method between disk and RAM:
  10. # - 'rsync' is the default unless 'USE_RSYNC' is set to 'false'.
  11. # - If 'rsync' is unavailable, 'cp' is automatically used as a fallback.
  12. # - Set 'USE_RSYNC' to 'false' to explicitly use 'cp'.
  13. #USE_RSYNC=false
  14. # By default, if there is insufficient RAM space, a system notification email is sent.
  15. # Set this to 'false' to disable email notifications. (The error will still be logged locally).
  16. #NOTIFICATION=true
  17. # Specify the command for sending error notifications.
  18. # By default, it uses the `mail` command to send an email, with the message body provided via stdin.
  19. # You can replace this with any command (such as 'shoutrrr') or a custom script for handling notifications.
  20. #NOTIFICATION_COMMAND=mail -s "Log2Ram Error on $HOSTNAME"
  21. # Specify the directories to be stored in RAM. List each directory using its absolute path, e.g., `/path/folder`.
  22. # Corresponding directories on the HDD, named `/path/hdd.folder`, will be automatically created for each listed path.
  23. # Separate multiple paths with a semicolon `;` and do not include a trailing slash at the end of the paths.
  24. # Example: PATH_DISK="/var/log;/home/test/FolderInRam"
  25. PATH_DISK="/var/log"
  26. # Set to 'true' to enable log rotation for journald logs before syncing.
  27. # Note: 'rsync' must be used for this feature to work.
  28. # Ensure 'SystemMaxUse' is configured in '/etc/systemd/journald.conf' (to limit journald’s disk usage)
  29. # Note: Its value must be smaller than log2ram's RAM allocation defined by the SIZE variable above.
  30. JOURNALD_AWARE=true
  31. # **************** Zram backing conf ****************
  32. # Set ZL2R=true to enable zram, providing compressed RAM storage for log2ram.
  33. # Set ZL2R=false to use tmpfs, which provides uncompressed memory-only storage.
  34. ZL2R=false
  35. # Choose a compression algorithm from those listed in /proc/crypto.
  36. # 'lz4' is the fastest, offering the lightest CPU load but lower compression ratios.
  37. # 'deflate' (zlib) and 'Zstandard' (zstd) provide higher compression ratios but use more CPU.
  38. # 'lzo' is similar to 'lz4' but may perform better with certain binaries due to optimizations.
  39. # Set COMP_ALG to 'lz4' for speed, 'zstd' for better compression, or 'lzo' or 'zlib' if optimizations or availability are concerns.
  40. COMP_ALG=lz4
  41. # LOG_DISK_SIZE specifies the uncompressed zram disk size.
  42. # (Sets the size of the zram disk that will be presented to the operating system).
  43. # To estimate amount of RAM this will consume, divide LOG_DISK_SIZE by your chosen compression algorithm's ratio:
  44. # - lzo/lz4 typically compresses at a ratio of 2.1:1
  45. # - zlib compresses at about 2.7:1
  46. # - zstandard (zstd) achieves around 2.9:1
  47. # Example calculation using lz4:
  48. # Given LOG_DISK_SIZE = 256M (which represents 256 Megabytes of uncompressed log data),
  49. # the estimated zram RAM usage = 256 MB / 2.1 ≈ 122 MB of RAM.
  50. LOG_DISK_SIZE=256M