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

Difficulty level
Easy (less than an hour)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Improvement (missing useful functionality)

Event Timeline

c-po triaged this task as Normal priority.May 30 2021, 9:26 AM
c-po created this task.
c-po added a project: VyOS 1.3 Equuleus.
c-po changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
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 Need Triage to Finished on the VyOS 1.4 Sagitta board.
SrividyaA set Issue type to Improvement (missing useful functionality).Aug 31 2021, 6:04 PM