Linux Format

Build a search and analytic engine

The main subject of this tutorial is Elasticsearch, which is a distributed search and analytics engine. However, it can’t work on its own and requires other software for collecting, analysing and visualising data. Elasticsearch works very well with Logstash and Kibana – both will be used in this tutorial. Additionally, you will see Filebeat in action.

Nowadays, almost all software can run as a container using a Docker image, and Elasticsearch is no exception. For reasons of simplicity, we are going to use a docker-compose.yml file for executing the Elasticsearch Docker image along with Kibana. The contents of docker-compose.yml will be the following:

Store docker-compose.yml in its own directory for reasons of simplicity and efficiency – give a descriptive name to the relevant directory. After that you can start the Docker image by running docker-compose up and stop it with docker-compose down from inside that directory. Note that if you have issues with a docker-compose.yml YAML file, it helps to look at the generated output for hints about the problems. Keep in mind that Docker in general and docker-compose.yml files specifically make experimenting with complex software a better experience, so use them when possible.

Docking with Elasticsearch

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format5 min read
Some Ansible Advice For Around The Home!
Of late, this writer has been busy creating new virtual hosts for different things and decided that it would be an ideal time to get stuck into Ansible. Things have evolved in system management since Bash. Ansible is a great way to deploy software c
Linux Format14 min read
Ubuntu at 20
Without Ubuntu, the current Linux landscape would be unrecognisable. Back in October 2004, the first 4.10 (2004.10) release of Ubuntu, with its intriguing Warty Warthog code name, leapt from obscurity to being one of the most downloaded Linux distrib
Linux Format3 min read
Kernel Watch
Linus Torvalds announced the fourth RC (Release Candidate) for what will become Linux 6.9 in another few weeks. In his announcement, he noted that there was “Nothing particularly unusual going on this week – some new hardware mitigations may stand o

Related Books & Audiobooks