GithubHelp home page GithubHelp logo

lekube's Introduction

leKube Alt text

logentries.com daemon set for Kubernetes

Get started

There are a few different moving parts in the configuration. First, you need to go to logentries.com and generate a token for this installation. By Log Sets in the upper left corner, there's a +Add New button. Click that, add log. The next screen gives you lots of different agent options. You want the Docker icon, next to the "Platforms" section. Click the whale, and it's time to sail. Next, under Select Set, give your cluster logs a name like "Kubernetes Dev", then you'll notice the "Create Log Token" button light up. Click that! We're almost done. You want to capture the token which is highlighted in green. We're going to put that in our lekube.yaml file.

Open the lekube.yaml file and replace the xxxxx value with your token. You'll notice that the image in there is jsingerdumars/lekube:latest which will do the trick. Note that the source for my Docker image came directly from https://github.com/rapid7/docker-logentries I made my own image so it was insulated from upstream changes and simpler to install. You can simply create your own image and swap the entry in the lekube.yaml

Installing the daemon set in your cluster (and a few tweaks)

We assume at this point you have an up and running Kubernetes cluster and access to kubectl. Before installing the daemon set, there are a few things you might want to customize. First, it is configured to run in the default namespace, and you may prefer to put it in its own. Just change the line in the lekube.yaml file. Lastly, you can make the service account name different too. But whatever you choose needs to be consistent between the two yaml files.

Step one: build the service account
kubectl create -f le-service.yaml

Step two: install the daemon set
kubectl create -f lekube.yaml

You're done. Now data should be flowing to your logentries account. Just click the "Finish & View Log" button and you'll see logs appearing.

lekube's People

Contributors

jdumars avatar

Watchers

 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.