Filebeat: Install

HN LEE
Learn Elasticsearch
1 min readJun 30, 2020

How to install Filebeat on Ubuntu 18.04. If your env is the other OS, please follow official document at below <Information> chapter.

Environment

  • Ubuntu 18.04 LTS (on AWS EC2 with AWS EBS)
  • Filebeat 7.8 (latest version at the writing)

Prerequsite

Information

How To Install

  • Case1: use dpkg
$ curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.8.0-amd64.deb
$ sudo dpkg -i filebeat-7.8.0-amd64.deb
  • Case2: unzip
$ curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.8.0-linux-x86_64.tar.gz
# tar xzvf filebeat-7.8.0-linux-x86_64.tar.gz
# ln -s filebeat-7.8.0-linux-x86_64 filebeat780

(Case1) Default Directory Layout

Filebeat Default File Paths

Register on System as Service and How to Run

  • WARN: If you take <Case2> root, it should be not work.

Initiative

$ cd <config file path> # to use filebeat.yml
$ sudo <bin file path>/filebeat setup -e

Register on System

$ sudo systemctl enable filebeat.service
$ sudo systemctl start filebeat.service
$ sudo systemctl status filebeat.service # if you can see "active" status, it's installed successfully.

--

--

HN LEE
Learn Elasticsearch

A Software Engineer who believes the tech could make the world better.