Coder Social home page Coder Social logo

fluentd-elasticsearch-kibana's Introduction

#references: https://github.com/kubernetes/examples/tree/master/staging/elasticsearch/production_cluster

Kubernetes Logging into Elasticsearch

This repository contains a docker images for a fluentd logshipper, kubernetes configs to deploy a basic elasticsearch cluster with kibana frontend, and documentation. These files should show how to setup a fluentd logshipper as kubernetes daemonset and pipe all container logs into an elasticsearch cluster. The logs are enriched with Metadata like pod_name, pod_id, docker_id.

To setup the Elasticsearch Cluster and a kibana frontend run:

kubectl create -f elastic-search-rc.yaml

kubectl create -f elasticsearch-svc.yaml

kubectl create -f kibana-rc.yaml

kubectl create -f kibana-svc.yaml

To start the fluentd daemonset run:

kubectl create -f fluentd-daemonset.yaml

After this setup you can check the pods you have deployed. The command is:

kubectl --namespace=kube-system get pods The output should look like this:

NAME READY STATUS RESTARTS AGE elasticsearch-logging-v1-15qsf 1/1 Running 0 2m elasticsearch-logging-v1-278v2 1/1 Running 0 2m fluentd-logging-mcegp 1/1 Running 0 10s kibana-logging-v1-mmfv4 1/1 Running 0 2m kube-addon-manager-minikubevm 1/1 Running 0 4m kubernetes-dashboard-ms0el 1/1 Running 0 4m

ToDo

  • elasticsearch remove persistent storage - we rebuild, if needed looks like already taken care of because of emptyDir volume type pick later version (5.2 is out)

  • fluentd support authentication place auth info in secret

  • nginx what the hell is this for?

    GEORGE MALARY: I say let's delete the nginx yaml. works without deploying and yaml makes no sense. probably for debugging of was trying # to add some new functionality.

  • Implement log retention and rotation: look int curator add on

fluentd-elasticsearch-kibana's People

Watchers

 avatar  avatar  avatar

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.