EdgeRouter - Remote Syslog Server for System Logs
Overview
Readers will learn how to configure the EdgeRouter to send log messages to a Syslog server.
NOTES & REQUIREMENTS:
Applicable to the latest EdgeOS firmware on all EdgeRouter models. Please see the Related Articles below for more information.
Devices used in this article:
Adding a Syslog Server
Log messages will be sent to the remote Syslog host using UDP port 514.
A remote Syslog server can be defined using an IP address or hostname. The severity levels are:
-
0
Emergency -
1
Alert -
2
Critical -
3
Error -
4
Warning -
5
Notice -
6
Informational -
7
Debug
GUI: Access the EdgeRouter Web UI.
Navigate to the System tab in the bottom left of the Web UI and define the syslog server and log level.
System > System Log
Log to remote server: <server-ip>
Log Level: <severity-level>
NOTE:EdgeOS uses the BSD Syslog format, the rsyslogd service and UDP port 514 (not customizable) for Syslog by default.
The above configuration can also be set using the CLI:
CLI: Access the EdgeRouter Command Line Interface.
configure
set system syslog host <server-ip> facility all level <severity-level>
commit ; save
Related Articles
EdgeRouter - Archiving and Managing the Configuration Files
EdgeRouter - Access the CLI from the Web UI
Intro to Networking - How to Establish a Connection Using SSH