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. 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 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

Was this article helpful?
0 out of 2 found this helpful
Can't find what you're looking for?
Visit our worldwide community of Ubiquiti experts for more answers
Visit the Ubiquiti Community