Help Center Help Articles Professional Support Community RMA & Warranty Downloads Tech Specs

EdgeRouter - Adjusting System Log Size

Overview

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

NOTES & REQUIREMENTS:
  • Applicable to the latest firmware on all EdgeRouter models.

How to Adjust the Log Size and Rotate Options

CLI: Access the Command Line Interface on the EdgeRouter.

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 {
missingok
notifempty
rotate 10
size=1000k
postrotate
invoke-rc.d rsyslog reload >/dev/null
endscript
}
NOTE: It is recommended to set up a remote syslog server when extensive logging is needed.

Modify the log options by running the commands below:

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

Related Articles

Intro to Networking - How to Establish a Connection Using SSH

Was this article helpful?