Giter Club home page Giter Club logo

efk-stack-k8s's Introduction

ELK-Stack-Kubernetes

Elasticsearch, Logstash and Kibana for Kubernetes Elasticsearch, Fluentd and Kibana for Kubernetes

This stack is set to be utilized as a DaemonSet, allowing the collection of logs in ANY pod in the k8s cluster.

How to Use

This was tested only on Minikube, however I believe that this should work on any k8s cluster. Also important to note is that the Persistent Volume option can be any choice that works with your environment.

Install

Prerequisites: A functional Kubernetes cluster or Minikube cluster (Optional: Ansible)

  1. Run either the shell script './init_env.sh'

OR

  1. Run 'ansible-playbook playbook.yml' (-v or -vvvv for verbosity levels).

Running

1a) Once setup is completed then run port_forward.sh to port forward your Kibana to localhost:5601 From there, just open up your favorite web-browser to http://localhost:5601.

OR:

1b) Run 'minikube service list' then grab the IP and port associated with the service in namespace kube-logging: kibana | http://ip:port

THEN:

  1. In the Kibana dashboard, Create Index Pattern 'logstash-*'.
    Then Select the Filter for @timestamp

  2. Done!

Detailed instructions for setting up Kibana are in the below link, under 'Credits':

Credit

Much credit has to go to the following article for inspiration: https://www.digitalocean.com/community/tutorials/how-to-set-up-an-elasticsearch-fluentd-and-kibana-efk-logging-stack-on-kubernetes

Disclaimer

This was tested locally in my Minikube environment. I wouldn't recommended this for anything serious until further testing.

Lisence:

Patrick Stambaugh

Fix History:

  1. Added Kibana and Fluentd to both the shell install script and Ansible install script.
  2. Fixed Kibana so it can also be accessed via its Service.

Goals/TODO:

  1. Add SIEM Security AuditBeat for security metrics.
  2. Add FileBeat to gather log data.
  3. Add HeartBeat for UpTime Monitoring
  4. Add MetricBeat for Metrics for such thing as Docker containers.
  5. Considering adding APM for Application Monitoring

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.