Readers will learn how to adjust the default log size and rotate options.
NOTES & REQUIREMENTS:
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
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:
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