Simple sending using rsyslog (Obsolete legacy format)
This article describes how to manually configure rsyslog to send system log events to Devo over an unsecured channel. This is the recommended procedure when you want to forward events within your network to a Devo In-House Relay.
Create the Devo configuration files
To forward a system’s internal logs to a Devo Relay, you need to create two files in the /etc/rsyslog.d/ directory. The 00-devo.conf file contains general connection settings. The 49-devo.conf file is responsible for forwarding the events to the Devo Relay.
00-devo.confÂ
This file contains general connection settings. Create it with the following contents.
/etc/rsyslog.d/00-logtrust.conf
$ModLoad imfile
$ModLoad immark
$MarkMessagePeriod 60
$WorkDirectory /var/spool/rsyslog
$RepeatedMsgReduction off
#Disable imuxsock rate limit
$IMUXSockRateLimitInterval 0
$SystemLogRateLimitInterval 0
Make sure that the $WorkDirectory path exists and that the user running rsyslog (often syslog) has permissions over it. To find out which user runs rsyslog, enter the following command:Â
ps -ouser= $(pgrep rsyslogd)
If it is not root it is recommended to perform the below command. Please note that in some distributions it runs by default as root and in others, a drop of privileges to syslog user is performed.
mkdir /var/spool/rsyslog
chown syslog:syslog /var/spool/rsyslog
chmod 770 /var/spool/rsyslog
49-devo.conf
The 49-devo.conf file forwards the operating system log events to the Devo Relay. Create the file with the following contents.
/etc/rsyslog.d/49-devo.conf
Replace DEVO-RELAY:PORT with your relay IP address and port.Â
The Action Queue section is optional but is recommended to prevent data loss in the event of a connectivity problem between the machine and the relay.
This file should be sequentially one of the last ones in the /etc/rsyslog.d/ directory. This is because wildcards *.* are used in the forwarding rule. By making this one of the last files to be processed in this directory, you can prevent the duplication of logs.
You may want to list the files in /etc/rsyslog.d/ to review and confirm the run order:
Restart rsyslogÂ
After creating and saving the new files, restart rsyslog to activate the new configuration:
With the configuration activated, rsyslog should begin to forward events to your Devo Relay.
Test the connection
You can make sure that the events are being forwarded to the Relay by using the logger command to write test messages to the system log.Â
In the Devo web application, go to Data search. Open the box.unix
data table to confirm that these logger events were forwarded and received correctly.