EdgeRouter - Adjusting System Log Size


Readers will learn how to adjust the default log size and rotate options.

Applicable to the latest EdgeOS firmware on all EdgeRouter models. Please see the Related Articles below for more information.
Device used in this article:

How to Adjust the Log Size and Rotate Options

Back to Top

CLI: Access the command line interface (CLI). You can do this using the CLI button in the GUI or by using a program such as PuTTY.

The EdgeRouter is automatically set up to rotate the log messages. The default log options can be viewed by running the below command:

cat /etc/logrotate.d/messages
/var/log/messages {
rotate 10
invoke-rc.d rsyslog reload >/dev/null
NOTE: It is recommended to set up a remote syslog server over increasing the log size + files when extensive logging is needed.

Modify the log options by running the commands below:

set system syslog global archive files <nr>
set system syslog global archive size <kbytes>
commit ; save

Related Articles

Back to Top

Intro to Networking - How to Establish a Connection Using SSH

We're sorry to hear that!