Get your syslog out
Posted: Fri May 22, 2020 5:36 pm
Envisalink has decided to restrict syslog to its own local subnet, which for some reason they have defined as matching the last octet of the ip address
Many users have the envisalink in a different subnet. This is one way to get the syslog out of there and do whatever you want with it.
Start a linux box / a raspberry pi / a vm / or whatever in the subnet your envisalink shares
or
depending on your os.
then edit the configuration file for rsyslog
uncomment these two lines to accept remote syslog on port 514 over udp:
add the following at the bottom to send everything logged to this host to a remote destination
for example, send everything to papertrail (setup your free papertrail account first to get your url)
open the port to accept incoming syslog:
restart rsyslog to grab the new config:
look at the status if you have troubles:
if you find you are sending things you don't want to be sending, you can stop (drop) those messages in rsyslog.conf:
or, only send messages that match a specific string
You can use various rules and regex here to get it just right.
point envisalink syslog to this host. It will catch all the syslog messages and ship them to your remote destination
Many users have the envisalink in a different subnet. This is one way to get the syslog out of there and do whatever you want with it.
Start a linux box / a raspberry pi / a vm / or whatever in the subnet your envisalink shares
Code: Select all
install rsyslog
Code: Select all
apt install rsyslog
Code: Select all
yum install rsyslog
then edit the configuration file for rsyslog
Code: Select all
sudo vi /etc/rsyslog.conf
Code: Select all
module(load="imudp")
input(type="imudp" port="514")
Code: Select all
*.* @remotesysloghost:port
Code: Select all
*.* @logs5.papertrailapp.com:26587
Code: Select all
firewall-cmd --zone=public --add-port=514/udp --permanent
firewall-cmd --reload
Code: Select all
systemctl restart rsyslog
Code: Select all
systemctl status rsyslog
Code: Select all
:msg, contains, "some_string_in_a_message_i_dont_want_to_send" stop
*.* @logs5.papertrailapp.com:26587
Code: Select all
:msg, contains, "some_interesting_msg" @logs5.papertrailapp.com:26587
You can use various rules and regex here to get it just right.
point envisalink syslog to this host. It will catch all the syslog messages and ship them to your remote destination