Posted On August 29, 2021

How to configure Ubiquiti EdgeRouter to send logs to a Syslog Server

kimconnect 0 comments
blog.KimConnect.com >> Linux , Networking >> How to configure Ubiquiti EdgeRouter to send logs to a Syslog Server

Method 1: using text editor

# Edit the syslog config
sudo vi /etc/rsyslog.d/vyatta-log.conf

# Change the @ = udp symbol to @@ = tcp
# add :PORTNUMBER after node name or IP if necessary
admin@EdgeRouter-4:~$ cat /etc/rsyslog.d/vyatta-log.conf
*.err	@graylog.kimconnect.com
*.notice;local7.debug	-/var/log/messages

Method 2: use sed to update texts

# Change from udp to tcp
sudo sed 's/@/@@/' -i /etc/rsyslog.d/vyatta-log.conf
cat /etc/rsyslog.d/vyatta-log.conf

# Change from tcp to udp
sudo sed 's/@@/@/' -i /etc/rsyslog.d/vyatta-log.conf
cat /etc/rsyslog.d/vyatta-log.conf

# Restart syslogd
sudo service rsyslog restart

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

How To Install Google Earth on Linux Mint, Debian, or Ubuntu

# Install Google Earth cd /tmp wget https://dl.google.com/dl/earth/client/current/google-earth-pro-stable_current_amd64.deb sudo dpkg -i google-earth-pro-stable_current_amd64.deb # Run the…

PowerShell: Scan for Available or Unavailable IPs

This function is a demonstration of multi-tasking using PowerShell. The program will ping multiple targets…

How to Install Selenium for Python on Windows or Linux

Windows # This error would occur if pip is not up to date PS C:\WINDOWS\system32>…
Other project: DragonCoin.com