How To Install logster on Ubuntu 18.04
Introduction
In this tutorial we learn how to install logster
on Ubuntu 18.04.
What is logster
logster is:
Logster is a utility for reading log files and generating metrics in Graphite or Ganglia or Amazon CloudWatch. It is ideal for visualizing trends of events that are occurring in your application/system/error logs. For example, you might use logster to graph the number of occurrences of HTTP response code that appears in your web server logs.
Logster maintains a cursor, via logtail, on each log file that it reads so that each successive execution only inspects new log entries. In other words, a 1 minute crontab entry for logster would allow you to generate near real-time trends in Graphite or Ganglia or Amazon CloudWatch for anything you want to measure from your logs.
There are three methods to install logster
on Ubuntu 18.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install logster Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install logster
using apt-get
by running the following command:
sudo apt-get -y install logster
Install logster Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install logster
using apt
by running the following command:
sudo apt -y install logster
Install logster Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install logster
using aptitude
by running the following command:
sudo aptitude -y install logster
How To Uninstall logster on Ubuntu 18.04
To uninstall only the logster
package we can use the following command:
sudo apt-get remove logster
Uninstall logster And Its Dependencies
To uninstall logster
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove logster
Remove logster Configurations and Data
To remove logster
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge logster
Remove logster configuration, data, and all of its dependencies
We can use the following command to remove logster
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge logster
References
Summary
In this tutorial we learn how to install logster
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.