GithubHelp home page GithubHelp logo

mateothegreat / k8-byexamples-fluentd-collector Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 15 KB

Fluentd Log Collection & Transport (via DaemonSet)

License: MIT License

Makefile 100.00%
kubernetes kubernetes-examples kubernetes-manifests fluentd elasticsearch

k8-byexamples-fluentd-collector's Introduction

Clickity click Twitter Follow Skype Contact

Fluentd Log Collection & Transport (via DaemonSet)

Usage

$ make help

                                __                 __
   __  ______  ____ ___  ____ _/ /____  ____  ____/ /
  / / / / __ \/ __  __ \/ __  / __/ _ \/ __ \/ __  /
 / /_/ / /_/ / / / / / / /_/ / /_/  __/ /_/ / /_/ /
 \__, /\____/_/ /_/ /_/\__,_/\__/\___/\____/\__,_/
/____
                        yomateo.io, it ain't easy.

Usage: make <target(s)>

Targets:

  git/update           Update submodule(s) to HEAD from origin
  install              Installs manifests to kubernetes using kubectl apply (make manifests to see what will be installed)
  delete               Deletes manifests to kubernetes using kubectl delete (make manifests to see what will be installed)
  get                  Retrieves manifests to kubernetes using kubectl get (make manifests to see what will be installed)
  describe             Describes manifests to kubernetes using kubectl describe (make manifests to see what will be installed)
  context              Globally set the current-context (default namespace)
  shell                Grab a shell in a running container
  dump/logs            Find first pod and follow log output
  dump/manifests       Output manifests detected (used with make install, delete, get, describe, etc)

Install

$ make install
[ INSTALLING MANIFESTS/DAEMONSET.YAML ]: daemonset "fluentd" created[ INSTALLING MANIFESTS/FLUENTD-CONFIG-CONFIGMAP.YAML ]: configmap "fluentd-configmap" created
[ INSTALLING MANIFESTS/RBAC-CLUSTER-ROLE-BINDING.YAML ]: clusterrolebinding "fluentd-service-account" created
[ INSTALLING MANIFESTS/RBAC-CLUSTER-ROLE.YAML ]: clusterrole "fluentd-service-account" created[ INSTALLING MANIFESTS/RBAC-SERVICE-ACCOUNT.YAML ]: serviceaccount "fluentd-service-account" created

Viewing Logs

$ make dump/logs

2018-02-18 05:58:01 +0000 [info]: #0 following tail of /var/log/containers/cert-manager-6c979cb867-m5d25_default_ingress-shim-88f18629bc16cf3c16c7dee989439718115bd6b808404e4bd1b94245d0195e71.log
2018-02-18 05:58:01 +0000 [info]: #0 following tail of /var/log/containers/kube-dns-6cdf767cb8-wktsj_kube-system_dnsmasq-377ba729f470687f43c882665425a15f1e409a9d9c469a54fdee040a24bda161.log
2018-02-18 05:58:01 +0000 [info]: #0 following tail of /var/log/containers/kube-proxy-gke-cluster-4-default-pool-678a19f9-smqf_kube-system_kube-proxy-7b4cdde5a8c14f467e9c2d7c8d3431016b0e724b00c99c3d0bc4703812101206.log
2018-02-18 05:58:01 +0000 [info]: #0 following tail of /var/log/containers/fluentd-9xjg6_kube-system_fluentd-a901ecdaacac09467d4922a58271d235d4aceed0f7960c31690a2245ff06e51a.log
2018-02-18 05:58:01 +0000 [info]: #0 fluentd worker is now running worker=0
2018-02-18 05:58:07 +0000 [info]: #0 Connection opened to Elasticsearch cluster => {:host=>"elasticsearch.default.svc.cluster.local", :port=>9200, :scheme=>"http", :user=>"elastic", :password=>"obfuscated"}
2018-02-18 05:58:37 +0000 [info]: #0 stats - namespace_cache_size: 2, pod_cache_size: 3, namespace_cache_api_updates: 3, pod_cache_api_updates: 3, id_cache_miss: 3

Cleanup

 make delete
[ DELETING MANIFESTS/DAEMONSET.YAML ]: daemonset "fluentd" deleted
[ DELETING MANIFESTS/FLUENTD-CONFIG-CONFIGMAP.YAML ]: configmap "fluentd-configmap" deleted
[ DELETING MANIFESTS/RBAC-CLUSTER-ROLE-BINDING.YAML ]: clusterrolebinding "fluentd-service-account" deleted
[ DELETING MANIFESTS/RBAC-CLUSTER-ROLE.YAML ]: clusterrole "fluentd-service-account" deleted[ DELETING MANIFESTS/RBAC-SERVICE-ACCOUNT.YAML ]: serviceaccount "fluentd-service-account" deleted

k8-byexamples-fluentd-collector's People

Contributors

mateothegreat avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.