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 Use Google SMTP Relay with Sendmail

Check to see if TLS is enabled:# sendmail -d0.1 -bv rootMake a certs directory:# mkdir…

IP Address Summarization

Requirements: - 8+ subnets per site - 3+ sites - 500+ IPs per subnet -…

Redirecting Microphone through Remmina RDP Sessions

Update 11/29/2020: the 'redirect local microphone' option is now simply a check-mark on Remmina version…