Member-only story

Kubernetes EFK Logging

Setting up EFK with some basic examples of usage.

Eric Fossas
3 min readJul 22, 2019
Logging… get it? 🤔🤐💀

Introduction

Here’s a basic example of installing and using unified logging on Kubernetes. I assume you now nothing about it for this tutorial. My personal preference is to use the EFK stack, which is Elastic Search for storage and indexing, Fluentd for aggregating logs for all of your containers, and Kibana to visualize and search through your logs.

What This Tutorial Covers

  1. Installing Elasic Search
  2. Installing Fluentd
  3. Installing Kibana
  4. Basic EFK Usage

What You Need For This Tutorial

A Kubernetes Cluster

Logging really helps understand what’s happening in your apps when used correctly

Install EFK

Helm makes it very easy to install an EFK stack. Some people install these all at once, but I install them individually for more control over each part of the stack. We’ll be creating values.yml for each part of the stack

First create the following file for Elastic Search:

Now install Elastic Search with the following commands:

Now create the following file for Fluentd:

--

--

No responses yet

Write a response