How To Install rsyslog on Rocky Linux 8

In this tutorial we learn how to install rsyslog on Rocky Linux 8. rsyslog is Enhanced system logging and kernel message trapping daemon

Introduction

In this tutorial we learn how to install rsyslog on Rocky Linux 8.

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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install rsyslog.

Install rsyslog on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install rsyslog using dnf by running the following command:

sudo dnf -y install rsyslog

Install rsyslog on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install rsyslog using yum by running the following command:

sudo yum -y install rsyslog

How To Uninstall rsyslog on Rocky Linux 8

To uninstall only the rsyslog package we can use the following command:

sudo dnf remove rsyslog

rsyslog Package Contents on Rocky Linux 8

/etc/logrotate.d/syslog
/etc/pki/rsyslog
/etc/rsyslog.conf
/etc/rsyslog.d
/etc/sysconfig/rsyslog
/usr/bin/rsyslog-recover-qi.pl
/usr/lib/.build-id
/usr/lib/.build-id/01
/usr/lib/.build-id/01/32fa9445b3a6617419e4a19f21aae58c5875f7
/usr/lib/.build-id/02
/usr/lib/.build-id/02/66c604aed6ace9afdd8b2a714c86978f680649
/usr/lib/.build-id/0b
/usr/lib/.build-id/0b/61d8a4700849ec7423550a4f6be4183e1e2afd
/usr/lib/.build-id/0e
/usr/lib/.build-id/0e/ddce4289692b8472f8f6bf329e3c22909aa6a8
/usr/lib/.build-id/14
/usr/lib/.build-id/14/f6228472a3050799455e4e3def547b5619fd72
/usr/lib/.build-id/15
/usr/lib/.build-id/15/e370d7397ed5f784f6f779f4973a84111ceaf5
/usr/lib/.build-id/18
/usr/lib/.build-id/18/523b9a2c11810407d4fedad6605bcbcfa30b24
/usr/lib/.build-id/1f
/usr/lib/.build-id/1f/dec3db98b65e699898b094c685f6edc531119d
/usr/lib/.build-id/27
/usr/lib/.build-id/27/5e8fb4e0954c0a3978a8d186dcffb0dd43facd
/usr/lib/.build-id/29
/usr/lib/.build-id/29/605836f20103ea8e39098e7fd1b8ab0c20073a
/usr/lib/.build-id/2d
/usr/lib/.build-id/2d/b4fac3df63c0712ecfaa24c21df3cad833aba8
/usr/lib/.build-id/2e
/usr/lib/.build-id/2e/51a6dbaf58f63e141dba9d9eb226d423dcff55
/usr/lib/.build-id/35
/usr/lib/.build-id/35/02696d1741bd37f17620be7a75dc50bec6d1c9
/usr/lib/.build-id/3b
/usr/lib/.build-id/3b/6e485a1ee5b763e160e00f9ee3a0fba4b9d1d8
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/37f1a8f54caf4a5cb25e9a78bb2c51d7d443a3
/usr/lib/.build-id/45
/usr/lib/.build-id/45/936c9e3f3977d433488acba413595173a49e2c
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/c635ea7149456fc4acde475e1aab6c4aeb160b
/usr/lib/.build-id/51
/usr/lib/.build-id/51/67313fa9374a5983ec17154f8f08fdfc037a79
/usr/lib/.build-id/54
/usr/lib/.build-id/54/8be12e652783165d394b8476ed3ac3cb828240
/usr/lib/.build-id/56
/usr/lib/.build-id/56/b5774c4a519671e4e1e83a19ec75abf315c370
/usr/lib/.build-id/56/c2a0f6a97b8da99934685efa894eeecccb7b50
/usr/lib/.build-id/5a
/usr/lib/.build-id/5a/020782bc8991e578aa62d07a4abd40d55f3e32
/usr/lib/.build-id/65
/usr/lib/.build-id/65/b1382356227cba3ee046bf52748a6f5d77f43c
/usr/lib/.build-id/85
/usr/lib/.build-id/85/aa37324c789e1b9f15f038425dc191d8008ead
/usr/lib/.build-id/b9
/usr/lib/.build-id/b9/083d5701e87133d0d667f23eccaf98b7c6687b
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/418fed358f23e700e6fb000ba22c8b4a1b0216
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/40b746a04bdb430586bfe9f16a23a1e9e56f7c
/usr/lib/.build-id/c6/720463ad362095360c9bf91bae91b6ba5530fa
/usr/lib/.build-id/c6/a209ccca2c6fc7249c20e6135f1299083767ea
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/67d0121809f6ab66463092688a7cf361050995
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/e4e5e624dbfaabdd07f8b1940cd78d75651ada
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/0b09234d896d29043632e8d882235ce6685075
/usr/lib/.build-id/fd
/usr/lib/.build-id/fd/3b49e3c225650f237a39c5bc7780c16ce8ffe9
/usr/lib/.build-id/fd/a0ce047f175290d40e97c92bfa82f2243efd62
/usr/lib/.build-id/fd/cf5c2d6469b9077ccd14a647cb5097a1464a7a
/usr/lib/systemd/system/rsyslog.service
/usr/lib64/rsyslog
/usr/lib64/rsyslog/fmhash.so
/usr/lib64/rsyslog/fmhttp.so
/usr/lib64/rsyslog/imdiag.so
/usr/lib64/rsyslog/imfile.so
/usr/lib64/rsyslog/imjournal.so
/usr/lib64/rsyslog/imklog.so
/usr/lib64/rsyslog/immark.so
/usr/lib64/rsyslog/impstats.so
/usr/lib64/rsyslog/imptcp.so
/usr/lib64/rsyslog/imtcp.so
/usr/lib64/rsyslog/imudp.so
/usr/lib64/rsyslog/imuxsock.so
/usr/lib64/rsyslog/lmnet.so
/usr/lib64/rsyslog/lmnetstrms.so
/usr/lib64/rsyslog/lmnsd_ptcp.so
/usr/lib64/rsyslog/lmregexp.so
/usr/lib64/rsyslog/lmtcpclt.so
/usr/lib64/rsyslog/lmtcpsrv.so
/usr/lib64/rsyslog/lmzlibw.so
/usr/lib64/rsyslog/mmanon.so
/usr/lib64/rsyslog/mmcount.so
/usr/lib64/rsyslog/mmexternal.so
/usr/lib64/rsyslog/mmutf8fix.so
/usr/lib64/rsyslog/omhttp.so
/usr/lib64/rsyslog/omjournal.so
/usr/lib64/rsyslog/ommail.so
/usr/lib64/rsyslog/omprog.so
/usr/lib64/rsyslog/omstdout.so
/usr/lib64/rsyslog/omtesting.so
/usr/lib64/rsyslog/omuxsock.so
/usr/lib64/rsyslog/pmaixforwardedfrom.so
/usr/lib64/rsyslog/pmcisconames.so
/usr/lib64/rsyslog/pmlastmsg.so
/usr/lib64/rsyslog/pmsnare.so
/usr/sbin/rsyslogd
/usr/share/doc/rsyslog
/usr/share/doc/rsyslog/AUTHORS
/usr/share/doc/rsyslog/COPYING
/usr/share/doc/rsyslog/COPYING.ASL20
/usr/share/doc/rsyslog/COPYING.LESSER
/usr/share/doc/rsyslog/ChangeLog
/usr/share/man/man5/rsyslog.conf.5.gz
/usr/share/man/man8/rsyslogd.8.gz
/var/lib/rsyslog
/etc/logrotate.d/syslog
/etc/pki/rsyslog
/etc/rsyslog.conf
/etc/rsyslog.d
/etc/sysconfig/rsyslog
/usr/bin/rsyslog-recover-qi.pl
/usr/lib/.build-id
/usr/lib/.build-id/08
/usr/lib/.build-id/08/967c6dd0d58babcea73e5853852b78d62ba4c6
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/c441147b7ea825b2f9535e6e1384989133b4b1
/usr/lib/.build-id/12
/usr/lib/.build-id/12/d3d9052fc82c2c586878b80486f9ed6c5c3762
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/71081ca20440b60ca21e771cdf407934dcccdd
/usr/lib/.build-id/1d/f605e1b4c9b9c7c4e5a165c74036ca4a273b65
/usr/lib/.build-id/21
/usr/lib/.build-id/21/93dfe1de2ed6fe5f66b9be899e979addab609e
/usr/lib/.build-id/21/f89cfdf04ac3f1cc7cef094f7556ecbeca4d6c
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/04560f107b73c3a40a97c699a77c73c1993222
/usr/lib/.build-id/39
/usr/lib/.build-id/39/ab2cf289a01b5043b8c0b7d776b6bde7fc1cc3
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/e30208ace95c6c27e2b277ed5b8ee12b94e108
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/58ff00be7dcde8d5b58d8e3c2f8bf8666acae0
/usr/lib/.build-id/44
/usr/lib/.build-id/44/f2f92c279f61965374f3b9d3e90509ef6118ee
/usr/lib/.build-id/49
/usr/lib/.build-id/49/1c52791fcf045d5fba6dacdd5a7d185dee828d
/usr/lib/.build-id/4d
/usr/lib/.build-id/4d/87e876c06f5daccd7452ef3c331b8a6a6e3bc3
/usr/lib/.build-id/55
/usr/lib/.build-id/55/f1aaba73617f728ce278334374579e2ca537f0
/usr/lib/.build-id/58
/usr/lib/.build-id/58/910d2d6700921d391e6dcb5342d5aad88900a0
/usr/lib/.build-id/76
/usr/lib/.build-id/76/71a433dbccdcd18356f3d8efe2c4b2d3475cb4
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/0cc2afc5bc81e70f6f76a0d85afde0c5391c35
/usr/lib/.build-id/7f
/usr/lib/.build-id/7f/a912f3cc2da71f6acd4da03e29e77da8a5a9cd
/usr/lib/.build-id/84
/usr/lib/.build-id/84/e45933cf19ce7b1ca0e0f8d3776e9e37f142d2
/usr/lib/.build-id/8e
/usr/lib/.build-id/8e/0b6dac41bf7e1269762305fc09ad698d09adb8
/usr/lib/.build-id/99
/usr/lib/.build-id/99/62302ea94131a41032e3aca5291285f937e5d3
/usr/lib/.build-id/9d
/usr/lib/.build-id/9d/64dfa5fbe84006b0f20b4731689de8e89812e5
/usr/lib/.build-id/9d/901af8eb8bc7e65a7c04333031fd77a093a1c5
/usr/lib/.build-id/af
/usr/lib/.build-id/af/674a1ec632534111da24c6e350375394bcf07c
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/1e9f2bc69dd17093b31b90d631ef25a6029a5d
/usr/lib/.build-id/bf
/usr/lib/.build-id/bf/0b308d55497d254bbcfade94cf5bd7ebc5275c
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/efa6ab65a107f4d4bd1e883b29519bc676a1c0
/usr/lib/.build-id/cf
/usr/lib/.build-id/cf/4087ff22a31f77b9df699fbc5112566754a785
/usr/lib/.build-id/d3
/usr/lib/.build-id/d3/9977fc4d16c973c77254eaa5d44e19de32b047
/usr/lib/.build-id/d4
/usr/lib/.build-id/d4/666ccd4d5312b7f46cfd8a6238a8933f32cf1f
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/7ea51194ae5e96bcd4a88ed066d91bb61091f3
/usr/lib/.build-id/eb
/usr/lib/.build-id/eb/ced9a5bef92320e90167f8c00a3efc0d5c019e
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/479bb1f5665f5d3f21031874073f982543cefb
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/1122c232cd43d94b6445bd75b5fdb839cd9544
/usr/lib/systemd/system/rsyslog.service
/usr/lib64/rsyslog
/usr/lib64/rsyslog/fmhash.so
/usr/lib64/rsyslog/fmhttp.so
/usr/lib64/rsyslog/imdiag.so
/usr/lib64/rsyslog/imfile.so
/usr/lib64/rsyslog/imjournal.so
/usr/lib64/rsyslog/imklog.so
/usr/lib64/rsyslog/immark.so
/usr/lib64/rsyslog/impstats.so
/usr/lib64/rsyslog/imptcp.so
/usr/lib64/rsyslog/imtcp.so
/usr/lib64/rsyslog/imudp.so
/usr/lib64/rsyslog/imuxsock.so
/usr/lib64/rsyslog/lmnet.so
/usr/lib64/rsyslog/lmnetstrms.so
/usr/lib64/rsyslog/lmnsd_ptcp.so
/usr/lib64/rsyslog/lmregexp.so
/usr/lib64/rsyslog/lmtcpclt.so
/usr/lib64/rsyslog/lmtcpsrv.so
/usr/lib64/rsyslog/lmzlibw.so
/usr/lib64/rsyslog/mmanon.so
/usr/lib64/rsyslog/mmcount.so
/usr/lib64/rsyslog/mmexternal.so
/usr/lib64/rsyslog/mmutf8fix.so
/usr/lib64/rsyslog/omhttp.so
/usr/lib64/rsyslog/omjournal.so
/usr/lib64/rsyslog/ommail.so
/usr/lib64/rsyslog/omprog.so
/usr/lib64/rsyslog/omstdout.so
/usr/lib64/rsyslog/omtesting.so
/usr/lib64/rsyslog/omuxsock.so
/usr/lib64/rsyslog/pmaixforwardedfrom.so
/usr/lib64/rsyslog/pmcisconames.so
/usr/lib64/rsyslog/pmlastmsg.so
/usr/lib64/rsyslog/pmsnare.so
/usr/sbin/rsyslogd
/usr/share/doc/rsyslog
/usr/share/doc/rsyslog/AUTHORS
/usr/share/doc/rsyslog/COPYING
/usr/share/doc/rsyslog/COPYING.ASL20
/usr/share/doc/rsyslog/COPYING.LESSER
/usr/share/doc/rsyslog/ChangeLog
/usr/share/man/man5/rsyslog.conf.5.gz
/usr/share/man/man8/rsyslogd.8.gz
/var/lib/rsyslog

References

Summary

In this tutorial we learn how to install rsyslog on Rocky Linux 8 using yum and dnf.