This is wonderful to hear, but in the mean time is would be the impact if these log files weren't able to be written to ? Say due to filling the disk ?Hey,
the loglevel right now is fixed on "info" for api/proxy. There is a patch in progress for controlling it using an env variable.
Preliminary patch: https://lists.proxmox.com/pipermail/pbs-devel/2023-August/006486.html (not merged and probably subject to change, just fyi)
find /var/log/proxmox-backup -mtime +90 -delete
proxmox-backup-manager node update --task-log-max-days 90
find /var/log/proxmox-backup -mtime +90 -delete
proxmox-backup-manager node update --task-log-max-days 90
When the patch is merged you will be able to set the LogLevel to `OFF`.Our current issue stems from using PBS-client to back up approximately 22TB of data every day. This process creates substantial log directories, as mentioned earlier. These extensive logs are not only consuming a significant amount of our storage space but also wearing down our SSDs to the point where we had to transition to using HDDs to store the log files. To mitigate this problem, we are seeking a way to either disable these logs.
Is this path merged yet? The fills my disk every day now with 90GB data (then the root disk is full).When the patch is merged you will be able to set the LogLevel to `OFF`.
PBS_LOG
environment variable to your max log level. So for example you could use systemctl edit proxmox-backup.service
or/and systemctl edit proxmox-backup-proxy.service
and insert Environment="PBS_LOG=error"
in the [Service]
section. E.g.:[Service]
Environment="PBS_LOG=error"
[Service]
LogRateLimitIntervalSec=1s
LogRateLimitBurst=16
Jan 20 09:10:08 pbs111 proxmox-backup-proxy[1235]: UPLOAD END 4194304 bytes
[Service]
Environment="PBS_LOG=off"
This message is suppressed >>-->Jan 20 10:20:51 pbs111 proxmox-backup-proxy[2082]: starting new benchmark on datastore 'PBSdatastore' from ::ffff:192.168.212.131: "host/benchmark/2025-01-20T15:20:51Z"
Jan 20 10:20:51 pbs111 proxmox-backup-proxy[2082]: UPLOAD END 4194304 bytes
Jan 20 10:20:51 pbs111 proxmox-backup-proxy[2082]: UPLOAD END 4194304 bytes
Jan 20 10:20:51 pbs111 proxmox-backup-proxy[2082]: UPLOAD END 4194304 bytes
Jan 20 10:20:51 pbs111 proxmox-backup-proxy[2082]: UPLOAD END 4194304 bytes
.
over 1400 of those messages are still logged
.
Jan 20 10:20:56 pbs111 proxmox-backup-proxy[2082]: UPLOAD END 4194304 bytes
Jan 20 10:20:56 pbs111 proxmox-backup-proxy[2082]: UPLOAD END 4194304 bytes
Jan 20 10:20:56 pbs111 proxmox-backup-proxy[2082]: UPLOAD END 4194304 bytes
Jan 20 10:20:56 pbs111 proxmox-backup-proxy[2082]: UPLOAD END 4194304 bytes
Jan 20 10:20:56 pbs111 proxmox-backup-proxy[2082]: UPLOAD END 4194304 bytes
This message is suppressed >>-->Jan 20 10:20:56 pbs111 proxmox-backup-proxy[2082]: benchmark finished successfully
stdout
using println
without using our usual logging (https://git.proxmox.com/?p=proxmox-...a1d8a1b54051b4c5ce63f5c66f1ce6cf;hb=HEAD#l270). I will send a patch soon. (I generally have to go through the whole code base another time and convert all the println's and eprintln's to real logs.)StandardOutput=null
to the [Service]
section in the systemd override file. Also note two things: I don't recommend having the loglevel "off" as you won't see anything; and there is currently an issue that the result of a task will not be written correctly if the loglevel is higher than info (this means that the status will be unknown, although the task will be run correctly. This will be fixed with: https://lore.proxmox.com/pbs-devel/20250120102657.290339-1-g.goller@proxmox.com/T/#u).We use essential cookies to make this site work, and optional cookies to enhance your experience.