Overview
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:
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 over increasing the log size + files 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