Configuring the Syslog Disk and Syslog Server
NOTE:
Syslog protocol runs in management VRF by default. If you use Ethernet management interface Eth0/1 to connect with the syslog server, you do not need to do the following operations.
However, if the L3 VLAN interface is used to connect with the syslog server, the syslog protocol cannot run normally by default, as all the L3 VLAN interface is in the default VRF by default. You need to modify the configurations to make the L3 VLAN interface management interface and syslog protocol run in the same VRF, so as to run the syslog protocol normally. You can choose either one of the following two ways:
Way 1. Use the command set system management-services vrf default to move syslog protocol to run in the default VRF. This way is recommended. Note that using this command also moves the NTP/TACACS+/RADIUS management services to the default VRF.
Way 2. Use the command set l3-interface vlan-interface <interface-name> vrf mgmt-vrf to move the L3 VLAN interface connected to the syslog Collector to management VRF.
Configuring the Syslog Server
After you configure the syslog server IP address, the log files will be sent to the syslog server.
admin@XorPlus# set system syslog server-ip 192.168.1.1 ? Possible completions: <[Enter]> Execute this command port Remote syslog server port protocol Remote syslog server protocol source-interface Configure an existing network interface, e.g. vlan20, eth0, loopback or routed interface admin@XorPlus# set system syslog server-ip 192.168.1.1 protocol udp admin@XorPlus# commit Commit OK. Save done. admin@XorPlus#
It is recommended to configure UDP protocol as the port protocol.
Configuring Syslog for Local Storage
You can configure syslog messages to be stored in RAM or in a local SD card.
XorPlus# set system syslog local-file disk XorPlus# commit Waiting for merging configuration. Commit OK. Save done. XorPlus# XorPlus# set system syslog local-file ram XorPlus# commit Waiting for merging configuration. Commit OK. Save done. XorPlus#
Copyright © 2024 Pica8 Inc. All Rights Reserved.