How To Install systemd-journal-gateway.x86_64 on Amazon Linux 2

In this tutorial we learn how to install systemd-journal-gateway.x86_64 in Amazon Linux 2. systemd-journal-gateway.x86_64 is Gateway for serving journal events over the network using HTTP

Introduction

In this tutorial we learn how to install systemd-journal-gateway.x86_64 on Amazon Linux 2.

What is systemd-journal-gateway.x86_64

systemd-journal-gatewayd serves journal events over the network using HTTP.

We can use yum to install systemd-journal-gateway.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install systemd-journal-gateway.x86_64.

Install systemd-journal-gateway.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install systemd-journal-gateway.x86_64 using yum by running the following command:

sudo yum -y install systemd-journal-gateway.x86_64

How To Uninstall systemd-journal-gateway.x86_64 on Amazon Linux 2

To uninstall only the systemd-journal-gateway.x86_64 package we can use the following command:

sudo yum remove systemd-journal-gateway.x86_64

systemd-journal-gateway.x86_64 Package Contents on Amazon Linux 2

/etc/systemd/journal-remote.conf
/etc/systemd/journal-upload.conf
/usr/lib/systemd/system/systemd-journal-gatewayd.service
/usr/lib/systemd/system/systemd-journal-gatewayd.socket
/usr/lib/systemd/system/systemd-journal-remote.service
/usr/lib/systemd/system/systemd-journal-remote.socket
/usr/lib/systemd/system/systemd-journal-upload.service
/usr/lib/systemd/systemd-journal-gatewayd
/usr/lib/systemd/systemd-journal-remote
/usr/lib/systemd/systemd-journal-upload
/usr/lib/tmpfiles.d/systemd-remote.conf
/usr/share/man/man8/systemd-journal-gatewayd.8.gz
/usr/share/man/man8/systemd-journal-gatewayd.service.8.gz
/usr/share/man/man8/systemd-journal-gatewayd.socket.8.gz
/usr/share/man/man8/systemd-journal-remote.8.gz
/usr/share/systemd/gatewayd
/usr/share/systemd/gatewayd/browse.html
/var/lib/systemd/journal-upload

References

Summary

In this tutorial we learn how to install systemd-journal-gateway.x86_64 on Amazon Linux 2 using yum.