How To Install rubygem-logstash-event on CentOS 7

In this tutorial we learn how to install rubygem-logstash-event on CentOS 7. rubygem-logstash-event is Library that contains the classes required to create LogStash

Introduction

In this tutorial we learn how to install rubygem-logstash-event on CentOS 7.

What is rubygem-logstash-event

rubygem-logstash-event contains the classes required to create LogStash events (combination of timestamp in ISO8601 format and message in any format) and their serialization to json. logstash-event rubygem is part of LogStash project, http

We can use yum or dnf to install rubygem-logstash-event on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-logstash-event.

Install rubygem-logstash-event on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install rubygem-logstash-event using yum by running the following command:

sudo yum -y install rubygem-logstash-event

Install rubygem-logstash-event 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 rubygem-logstash-event using dnf by running the following command:

sudo dnf -y install rubygem-logstash-event

How To Uninstall rubygem-logstash-event on CentOS 7

To uninstall only the rubygem-logstash-event package we can use the following command:

sudo dnf remove rubygem-logstash-event

References

Summary

In this tutorial we learn how to install rubygem-logstash-event on CentOS 7 using yum and dnf.