Installation Guide For Elasticsearch, Filebeat, and Kibana: Our Goal
Installation Guide For Elasticsearch, Filebeat, and Kibana: Our Goal
Our Goal
The goal is to set up Filebeat to gather syslogs of server, and set up Kibana to visualize the gathered
logs.
Prerequisites
To complete this you will require sudo access on an Ubuntu 16.04 server or desktop,
If you would prefer to use CentOS instead, check out this tutorial: How To Install ELK on CentOS 7.
The amount of CPU, RAM, and storage that your ELK Server will require depends on the volume of
logs that you intend to gather. For this we will be using with the following specs for our ELK Server:
Install Java 8
Elasticsearch and Filebeat require Java, so we will install that now. We will install a recent version of
Oracle Java 8 because that is what Elasticsearch recommends. It should, however, work fine with
OpenJDK, if you decide to go that route.
Install the latest stable version of Oracle Java 8 with this command (and accept the license agreement
that pops up):
sudo apt-get -y install oracle-java8-installer
network.host: localhost
The 64-bit Linux archive for Kibana v5.6.3 can be downloaded and installed as follows:
wget https://artifacts.elastic.co/downloads/kibana/kibana-5.6.3-linux-x86_64.tar.gz
The 64-bit Linux archive for filebeat-5.0.2 can be downloaded and installed as follows:
curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-5.0.2-
darwin-x86_64.tar.gz
- input_type: log
# Paths that should be crawled and fetched. Glob based paths.
paths:
- /var/log/*.log
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["localhost:9200"]