The correction is integrated into the TP (See the green boxes)
Prerequisites #
You must have a Linux machine. If you do not have a machine or test environment, we invite you to do the lab on setting up the test environment.
Package manager #
In this lab, we will install Logstash using the package manager that corresponds to your distribution.
Identify the distribution
You must identify the machine's distribution with the different options available to you: file, command.
You have different options to identify your distribution. The most used is to do it with the lsb_release command:
The Linux Standard Base (abbreviation: LSB) is a joint project by a number of Linux distributions under the organizational structure of the Free Standards Group in order to design and standardize the internal structure of GNU/Linux-based operating systems. Alongside this, another option is to use system files:root@logstash-formation:/home/debian# lsb_release -a Distributor ID: Debian ...
Depending on the distributions, you may have specific files. For example, in the Debian OS family, you will have the file /etc/[debian|ubuntu|...]_versionroot@logstash-formation:/home/debian# cat /etc/*release ID="genericcloud" ...Install Logstash
In the previous section, you identified the machine's distribution. You must therefore proceed with its installation by following the procedure that corresponds to the distribution's package manager.
You must follow the installation procedure that corresponds to your package manager: Logstash InstallationKnowing that you have these matches:
- YUM / DNF: Fedora family (fedora, redhat, centos, ...)
- APT: Debian family (debian, ubuntu, ...)
Enable automatic startup
In the previous section, you installed Logstash. In this section we will make sure that it is started and set in the services to start with the system.
Historically Linux systems used init.d. But if this is the case on your machine, we recommend you update your OS to a newer version that uses systemd. You will thus be able to start and enable your logstash service with the following commands:
You have other options for the systemctl command that we encourage you to learn:root@logstash-formation:/home/debian# systemctl start logstash ... root@logstash-formation:/home/debian# systemctl enable logstash Created symlink /etc/systemd/system/multi-user.target.wants/logstash.service → /lib/systemd/system/logstash.service.root@logstash-formation:/home/debian# systemctl --help
Difficulty level : ●○○○○ (1/5)
Course Glossary
Logstash
An open-source, server-side data processing pipeline that ingests data from a multitude of sources simultaneously, transforms it, and then sends it to...
Recommended Articles
License consumption types
Understand the evolution of billing in Dynatrace: the difference between the old licensing model ...
Grafana Alloy: The importance of Self-Monitoring
Discover why and how to configure Grafana Alloy so that it monitors itself, collecting its own lo...
Grafana Alloy: Understanding and exploiting the User Interface (UI)
Discover how to enable, secure, and use Grafana Alloy's built-in web interface to visualize your ...
Grafana Alloy: Introduction and Architecture
Discover the fundamental concepts of Grafana Alloy, the transition from the static Agent to Alloy...
Grafana Alloy: Syntax and Configuration (Alloy Language: River)
As part of a Grafana training or observability training, master the declarative syntax of Grafana...
Grafana Alloy: Metrics Collection (Prometheus & Ecosystem)
Learn how to configure Grafana Alloy to collect, transform, and forward metrics using the Prometh...
Grafana Alloy: Log Management with Loki
Discover how to configure Grafana Alloy to read log files, journald, or network streams, process ...
Grafana Alloy: Trace Management with Tempo
Dive into distributed trace processing. Learn how to ingest OTLP, Jaeger, or Zipkin traces with G...
Grafana Alloy: Continuous Profiling with Pyroscope
Discover how to configure continuous profiling in your environments using Grafana Alloy and Pyros...
Grafana Alloy: Advanced Deployment and Clustering
Learn how to manage large-scale Grafana Alloy deployments. Configure Clustering mode for high ava...
Grafana Assistant: AI at the service of observability
Discover Grafana Assistant, the artificial intelligence integrated into Grafana Cloud. Learn how ...
Grafana Alloy vs OpenTelemetry Collector: Which One Should You Choose?
A detailed comparison between Grafana Alloy and the OpenTelemetry Collector. Discover the strengt...
Grafana Alloy vs Dynatrace ActiveGate: Which to choose?
Comparison between Grafana Alloy and Dynatrace ActiveGate. Understand the fundamental differences...