Git Product home page Git Product logo

fluentd-splunk's Introduction

Fluentd-Splunk on Kubernetes

Send kubernetes logs to splunk using fluentd

Before start

Download the project

curl -L https://github.com/apprenda/fluentd-splunk/archive/v0.1.tar.gz | tar -xz

Create config-map for fluentd.conf

Modify fluentd.conf with custom <source> definitions if needed.

kubectl create configmap fluentd-config --from-file=fluentd.conf --namespace=kube-system

Create secret with the Splunk HEC configuration for fluentd.conf

kubectl --namespace kube-system create secret generic splunk-config \
 --from-literal=hec-token=$HEC_TOKEN \
 --from-literal=hec-address=$HEC_ADDRESS \
 --from-literal=hec-protocol=$HEC_PROTOCOL \
 --from-literal=hec-verify-tls=$HEC_VERIFY_TLS \
 --from-literal=hec-index=$HEC_INDEX
  • HEC_TOKEN: a unique token generated by Splunk
  • HEC_ADDRESS: Do not include the protocol. ie 10.0.0.5:8088
  • HEC_PROTOCOL: https or http
  • HEC_VERIFY_TLS: set to false if using self-signed cert
  • HEC_INDEX: index configured in HEC

Deploy Daemonset

kubectl apply -f kubernetes/fluentd-splunk.yaml

fluentd-splunk's People

Contributors

dkoshkin 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.