Introduction
Rsyslog is a system for log processing and capable of accepting inputs from various sources, transforming them, and outputting to a variety of destinations.
To integrate Rsyslog with OpsRamp, use the following configuration:
Default configuration
Note
This integration is supported in OpsRamp agent version 13.1 and above.Configuration for receiving data from network
To configure Rsyslog to receive data from the network, you need to append the following lines to the /etc/rsyslog.conf
file:
Configuration for pushing data to OpsRamp Agent
- To configure Rsyslog to forward all logs to the OpsRamp agent, append the following lines to the
/etc/rsyslog.conf
file:
Or,
- To restart Rsyslog in Linux distributions, you can execute the following command in the terminal:
Note
The configuration example provided for RSyslog is generic. If you need to forward logs only from a specific host, see the RSyslog documentation for detailed instructions.Custom configuration
- Create custom configuration file
/opt/opsramp/agent/conf/log.d/log-config.yaml
with the content copied from sample config file/opt/opsramp/agent/conf/log.d/log-config.yaml.sample
. - Update (add / edit / remove) configurations as needed for
syslog_server
source using the guidelines for field definitions provided below:
Save the updated configuration file
/opt/opsramp/agent/conf/log.d/log-config.yaml
.Restart the agent by executing the below command in terminal: