How To Install rsyslog on CentOS 7
Introduction
In this tutorial we learn how to install rsyslog
on CentOS 7.
What is rsyslog
Rsyslog is an enhanced, multi-threaded syslog daemon. It supports MySQL, syslog/TCP, RFC 3195, permitted sender lists, filtering on any message part, and fine grain output format control. It is compatible with stock sysklogd and can be used as a drop-in replacement. Rsyslog is simple to set up, with advanced features suitable for enterprise-class, encryption-protected syslog relay chains.
We can use yum
or dnf
to install rsyslog
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install rsyslog.
Install rsyslog on CentOS 7 Using yum
Update yum database with yum
using the following command.
sudo yum makecache
After updating yum database, We can install rsyslog
using yum
by running the following command:
sudo yum -y install rsyslog
Install rsyslog on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
sudo dnf makecache
After updating yum database, We can install rsyslog
using dnf
by running the following command:
sudo dnf -y install rsyslog
How To Uninstall rsyslog on CentOS 7
To uninstall only the rsyslog
package we can use the following command:
sudo dnf remove rsyslog
References
Summary
In this tutorial we learn how to install rsyslog
on CentOS 7 using yum
and dnf
.