Page MenuHomeVyOS Platform

op-mode: support clearing out logfiles from CLI
Closed, ResolvedPublicFEATURE REQUEST

Description

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.

Details

Version
-
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

c-po triaged this task as Normal priority.
c-po added a project: VyOS 1.3 Equuleus.
c-po edited a custom field.
c-po updated the task description. (Show Details)
c-po claimed this task.
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus board.
c-po moved this task from Open to Finished on the VyOS 1.4 Sagitta board.