Initially reported via https://forum.vyos.io/t/clear-pppoe-log-file
We have a log of daemons logging via journald as of VyOS 1.3. We also utilize journald to retrieve individual daemon log files but there is yet no way in clearing out that specific journal on user request.
Systems currently logging via journald:
(11:27) cpo lnx01:~/vyos-1x [current] # git grep journal op-mode-definitions/ op-mode-definitions/show-console-server.xml.in: <command>/usr/bin/journalctl -u conserver-server.service</command> op-mode-definitions/show-interfaces-pppoe.xml.in: <command>/usr/bin/journalctl -u "ppp@$4".service</command> op-mode-definitions/show-interfaces-wirelessmodem.xml.in: <command>/usr/bin/journalctl -u "ppp@$4".service</command> op-mode-definitions/show-log.xml.in: <command>/bin/journalctl</command> op-mode-definitions/show-log.xml.in: <command>/bin/journalctl -q SYSLOG_FACILITY=10 SYSLOG_FACILITY=4</command>
Apparently it shows that it is not supported to clear out the logfile for an individual journalctl unit. One can only clean out the entire journal.