How To Install rsyslog on Fedora 34

rsyslog is Enhanced system logging and kernel message trapping daemon

Introduction

In this tutorial we learn how to install rsyslog on Fedora 34.

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

Install rsyslog on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install rsyslog

Install rsyslog on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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 Fedora 34

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

sudo dnf remove rsyslog

rsyslog Package Contents on Fedora 34

/etc/logrotate.d/rsyslog
/etc/pki/rsyslog
/etc/rsyslog.conf
/etc/rsyslog.d
/etc/sysconfig/rsyslog
/usr/lib/.build-id
/usr/lib/.build-id/0a
/usr/lib/.build-id/0a/d94d6a7a6f8e528a1c6365a8f589be4356d11a
/usr/lib/.build-id/0b
/usr/lib/.build-id/0b/78c7a7f73bbeb9d390f8a7828703adb905653e
/usr/lib/.build-id/13
/usr/lib/.build-id/13/c9d04b70a8279b06a4dcc8b4a6e9ab6efa13ae
/usr/lib/.build-id/15
/usr/lib/.build-id/15/8e23c2a84063f9014d10c0d3a33f655369284f
/usr/lib/.build-id/16
/usr/lib/.build-id/16/312873c0c4dddcac45630c08b6ac82d61c1e7a
/usr/lib/.build-id/16/c812fcf670fb21e91ca17a1dc02fe23a0d36c9
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/064ef0b93ebc0601c931d26f6be819464487a5
/usr/lib/.build-id/1f
/usr/lib/.build-id/1f/e020ca75693d17110cea2a69f388bf99311d59
/usr/lib/.build-id/21
/usr/lib/.build-id/21/0c00291d99a3e54e675171a6e13b00b638e034
/usr/lib/.build-id/25
/usr/lib/.build-id/25/7f582a0e456074217e9ab20b06df821011ab32
/usr/lib/.build-id/30
/usr/lib/.build-id/30/c46a52292d56f1334c896c6ae0771c99b5996a
/usr/lib/.build-id/36
/usr/lib/.build-id/36/e053814e1376528f034c2749d0315b340c0138
/usr/lib/.build-id/3f
/usr/lib/.build-id/3f/b01e7db5a28dd1417236fb415d9d8113c08026
/usr/lib/.build-id/4b
/usr/lib/.build-id/4b/31bcba03829f25aa17b2e652084287c1c32ee7
/usr/lib/.build-id/4d
/usr/lib/.build-id/4d/8438f72c130ef0eaede5a21e43ac37ae8252f9
/usr/lib/.build-id/65
/usr/lib/.build-id/65/9bc6cb2404b801c943a1e5b7ac28f3de0a602d
/usr/lib/.build-id/65/d1d14f75deb62f36b1e57f44119759dbeb32cd
/usr/lib/.build-id/80
/usr/lib/.build-id/80/42ca6b6706b4a340cba87743dbe17bde421069
/usr/lib/.build-id/91
/usr/lib/.build-id/91/b239103b7c1c1aa96d09ae19642d95f40e5078
/usr/lib/.build-id/9d
/usr/lib/.build-id/9d/8462f442a27c89af0f9a315894546865cfa37c
/usr/lib/.build-id/a3
/usr/lib/.build-id/a3/ee6465eff69d51561ec2d662187f4d8a04b17a
/usr/lib/.build-id/b9
/usr/lib/.build-id/b9/07ecb85c49e2491e4d3790c8b4cf0d8fe84680
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/ed9fa8c9172c58e8df147c1ea30c3957ef78f7
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/76c79857803e73831e4e9c8edda1418abe1fab
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/c64047e875e422866026fad13bcd0c6eee1e6c
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/637682fc4398948f8863dbd8663c45a3192729
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/0d70b5f893390ae5379c831b345b6add1d1f2d
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/7da234002bae1679c47104f341c9703425391a
/usr/lib/.build-id/d8
/usr/lib/.build-id/d8/6cad374ff2927a00a64b881941cc1c47b4c507
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/a434f10f78bfe51ec2973c4f6bf8612ef96ae4
/usr/lib/.build-id/e7
/usr/lib/.build-id/e7/ee550934afc199a4bd246538ac1110419a4132
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/75b537d12226989e606e5a250c75fe0a7541b2
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/6c96d8b9e9634be3b8c10a761a32d6f2a698ce
/usr/lib/.build-id/f2
/usr/lib/.build-id/f2/e3314f522f2fd98b3d1242f9ff3da8fd3c9f9d
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/afa134ed1d1291a37ce87e0dec5ab2d82b7bc9
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/a6e1345738aeba2e1d0e33a4e5c928392f8a2c
/usr/lib/.build-id/fa
/usr/lib/.build-id/fa/4f8062bce85802f6f77766d19dd2cb2b9428fc
/usr/lib/systemd/system/rsyslog.service
/usr/lib64/rsyslog
/usr/lib64/rsyslog/fmhash.so
/usr/lib64/rsyslog/fmhttp.so
/usr/lib64/rsyslog/imdocker.so
/usr/lib64/rsyslog/imfile.so
/usr/lib64/rsyslog/imjournal.so
/usr/lib64/rsyslog/imklog.so
/usr/lib64/rsyslog/immark.so
/usr/lib64/rsyslog/improg.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/omclickhouse.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/ChangeLog
/usr/share/doc/rsyslog/README.md
/usr/share/doc/rsyslog/k8s_container_name.rulebase
/usr/share/doc/rsyslog/k8s_filename.rulebase
/usr/share/doc/rsyslog/recover_qi.pl
/usr/share/licenses/rsyslog
/usr/share/licenses/rsyslog/COPYING
/usr/share/licenses/rsyslog/COPYING.ASL20
/usr/share/licenses/rsyslog/COPYING.LESSER
/usr/share/man/man5/rsyslog.conf.5.gz
/usr/share/man/man8/rsyslogd.8.gz
/var/lib/rsyslog
/etc/logrotate.d/rsyslog
/etc/pki/rsyslog
/etc/rsyslog.conf
/etc/rsyslog.d
/etc/sysconfig/rsyslog
/usr/lib/.build-id
/usr/lib/.build-id/0b
/usr/lib/.build-id/0b/82c221c5212d93aa1a2b23c26391873997169f
/usr/lib/.build-id/1f
/usr/lib/.build-id/1f/87987bc4e1b2ae7859d5527f6c79122e98b985
/usr/lib/.build-id/28
/usr/lib/.build-id/28/4e32dc9ec3e1965a9eb1d84769c99bde582ce7
/usr/lib/.build-id/41
/usr/lib/.build-id/41/473e0999ec8a6df506b1a92c8bbf070e69e282
/usr/lib/.build-id/44
/usr/lib/.build-id/44/5d16149116f2b2f224309cf7335c058b6949fe
/usr/lib/.build-id/50
/usr/lib/.build-id/50/e4f23488784b378e4a5c1df1053ebce637379f
/usr/lib/.build-id/57
/usr/lib/.build-id/57/969a14a391c9ed749773dc3d589371b47f29de
/usr/lib/.build-id/5b
/usr/lib/.build-id/5b/aa49051f58db3c13cb0ab7e4503cffec98202c
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/9f5132216835ee248199c84d7aaa9ad5b8e60a
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/8874a06b639620908d5ceae6d00f941dc3114e
/usr/lib/.build-id/72
/usr/lib/.build-id/72/a24d4205bdd3d2b81564ae8f0449f90dbdd260
/usr/lib/.build-id/74
/usr/lib/.build-id/74/7b83cf82f9511dbd0d31657b6232e5ee6c6cfb
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/5546d58d73ca595245b5fdef34b8174b4156aa
/usr/lib/.build-id/7d
/usr/lib/.build-id/7d/3debdf64db594afda489b7bb9807fbd37a9125
/usr/lib/.build-id/83
/usr/lib/.build-id/83/62a173532978d3ae3ba83b91d009feb293642c
/usr/lib/.build-id/84
/usr/lib/.build-id/84/9b2e20d09b4032c5d00dc5c700d1a6f657e612
/usr/lib/.build-id/87
/usr/lib/.build-id/87/db86167c10f8b9ca135fbde7774fa9eb58bcff
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/08c7968ed75f868f1c4ca38fe66d437d24f113
/usr/lib/.build-id/8c
/usr/lib/.build-id/8c/83cb87035d0d931946c522738ab675e3fec602
/usr/lib/.build-id/90
/usr/lib/.build-id/90/211196e119544f469220bb12ab950e1ec4fc7e
/usr/lib/.build-id/94
/usr/lib/.build-id/94/63d80f560380e9989bafac81b55886cb750b63
/usr/lib/.build-id/95
/usr/lib/.build-id/95/32a728eb4d274c78b44a14723024b83820c49e
/usr/lib/.build-id/95/d452d3c374283d3f3e06005cc1e9e47478ca74
/usr/lib/.build-id/96
/usr/lib/.build-id/96/60386f2666ac305a468041c0c6caae678fa333
/usr/lib/.build-id/a6
/usr/lib/.build-id/a6/1b258579f72c19be47c4110d04fc91dc067d52
/usr/lib/.build-id/ae
/usr/lib/.build-id/ae/63ecb4d34d3fa21542196d276dd7b1a85ed733
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/7c5d99908881d370033c991b7e90e95aa7e4aa
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/64a65bb19ba88a7c1b91f9f9f3aef5cf939f89
/usr/lib/.build-id/c9/86d5a5aa5d44ba828462882a364fea42a8d2c7
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/7cd9e231a38674b58723fd5a0e4508ebea61ae
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/a804349094583be36e510ebf5feabd52dce19c
/usr/lib/.build-id/db
/usr/lib/.build-id/db/62c2073ce8340419cbfaca4d0d97c29b23332e
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/ae3fbedebc95a9b74570b494da2ea846fb61c5
/usr/lib/.build-id/f0/c1d70272a85af636d951d19efba26de054cba8
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/29d6c09dae3e1f0cdeb615d4adf8792e134963
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/202aebbd94b100c93526649ea8b66ec132497b
/usr/lib/.build-id/fe/7674fedadad6625e27d0671758cdb80483a4f9
/usr/lib/systemd/system/rsyslog.service
/usr/lib64/rsyslog
/usr/lib64/rsyslog/fmhash.so
/usr/lib64/rsyslog/fmhttp.so
/usr/lib64/rsyslog/imdocker.so
/usr/lib64/rsyslog/imfile.so
/usr/lib64/rsyslog/imjournal.so
/usr/lib64/rsyslog/imklog.so
/usr/lib64/rsyslog/immark.so
/usr/lib64/rsyslog/improg.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/omclickhouse.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/ChangeLog
/usr/share/doc/rsyslog/README.md
/usr/share/doc/rsyslog/k8s_container_name.rulebase
/usr/share/doc/rsyslog/k8s_filename.rulebase
/usr/share/doc/rsyslog/recover_qi.pl
/usr/share/licenses/rsyslog
/usr/share/licenses/rsyslog/COPYING
/usr/share/licenses/rsyslog/COPYING.ASL20
/usr/share/licenses/rsyslog/COPYING.LESSER
/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 Fedora 34 using yum and dnf.