How to Install and Configure Logstash

August 17, 2020 Liquid Web

Logstash is a free, open source, server-side data collection and processing engine which uses dynamic pipelining capabilities. It takes in information from multiple data sources, reconstructs it, and then sends it to a destination of our choice. Logstash also cleans and modifies the data for use in an advanced outbound analytics and visualization use cases. It is the L in the ELK stack (Elasticsearch, Logstash and Kibana) and is typically responsible for sending data to Elasticsearch.

Effectively administrating Linux systems requires familiarity with the locations of and possible contents of logs. Application and system-level logs provide insight into an application’s behavior or the system that might not be apparent on the surface. When many cooperating systems each provide their logs, aggregating, and processing that information becomes imperative. This is where Logstash shines.

In this video, we describe how to install and configure Logstash.

Commands used:
java -version
apt install openjdk-8-jdk
java -version
apt update -y
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
apt install apt-transport-https -y

echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list

apt update -y
apt install logstash -y
/usr/share/logstash/bin/logstash -V
/usr/share/logstash/bin/logstash -e 'input { stdin { } } output { stdout {} }'

Video by: Justin Palmer

About the Author

Liquid Web

Liquid Web powers online content, commerce, and potential for SMB entrepreneurs and the designers, developers and digital agencies who create for them. Sign up for our <a href="https://www.liquidweb.com/blog">newsletter</a> to stay up to date with our latest content.

More Content by Liquid Web
Previous Video
How to Solve the Upgrade Ubuntu Install Updates Error
How to Solve the Upgrade Ubuntu Install Updates Error

In this video, we describe how to solve the error "Please install all available updates for your release be...

Next Video
How to Install and Configure Elasticsearch
How to Install and Configure Elasticsearch

In this video, we describe how to install and configure Elasticsearch.

Learn What Qualities to Look for in Your Next Host in Our New Guide!

Download Now