Good evening everybody,
first of all I would like to thank the you for this awesome project.
Since I have just experienced a boot drive failure caused by the write load, I have been looking into ways to reduce the load on my drives. While doing so, I've seen that a lot of the write load is produced by the logs. Therefore I am looking into disabling logging to disk and using a dedicated log aggregation VM with its own drive for that. Maybe we can turn this thread into a tutorial in the long term. For now my intention is to document the path I am taking in this regard.
So far, there are some unknowns to me here. Btw I am on PVE8.1.10
- How do I disable all logging to disk in PVE?
Taking a look at the wiki, the logging service should be
So far so good.
But taking a look at the
Am I right in suspecting that they are circumventing journald and how would I get them to stop logging to disk/use journald so I can send those logs to the aggregation system?
- What options are there for me to use for log aggregation?
From the PVE GUI I can see that InfluxDB and Graphite are supported for metrics out of the box but does that include logs? Are they still going to work when journald's storage setting is set to none or would I have to set the server to forward logs to in the
Best,
Gab
first of all I would like to thank the you for this awesome project.
Since I have just experienced a boot drive failure caused by the write load, I have been looking into ways to reduce the load on my drives. While doing so, I've seen that a lot of the write load is produced by the logs. Therefore I am looking into disabling logging to disk and using a dedicated log aggregation VM with its own drive for that. Maybe we can turn this thread into a tutorial in the long term. For now my intention is to document the path I am taking in this regard.
So far, there are some unknowns to me here. Btw I am on PVE8.1.10
- How do I disable all logging to disk in PVE?
Taking a look at the wiki, the logging service should be
rsyslogd
but there is only one file in /etc/rsyslog.d/
(which is postfix.conf) and everything is pointing me to think that it is actually journald
. After setting Storage=none
in /etc/systemd/journald.conf
, no logs show up in the GUI which would be expected and when calling journalctl
I get a message telling me that there are no logs available.
Bash:
root@pve1:~# journalctl
No journal files were found.
-- No entries --
So far so good.
But taking a look at the
ls /var/log
output there are still files being generated and if I delete the folder I won't have access to the WebUI as pveproxy will fail if its access.log file doesn't exist so it seems to circumvent the journald log. After restoring the /var/log/pveproxy/access.log
directory and file (including permissions), it will work fine again.
Bash:
root@pve1:~# ls /var/log
alternatives.log btmp chrony ifupdown2 lastlog private pve pve-firewall.log pveproxy README wtmp
Am I right in suspecting that they are circumventing journald and how would I get them to stop logging to disk/use journald so I can send those logs to the aggregation system?
- What options are there for me to use for log aggregation?
From the PVE GUI I can see that InfluxDB and Graphite are supported for metrics out of the box but does that include logs? Are they still going to work when journald's storage setting is set to none or would I have to set the server to forward logs to in the
journald.conf
?Best,
Gab
Last edited: