Giter Site home page Giter Site logo

elkdemo's Introduction

ELK Demo

This repo is a demonstration of a 3 node ELK stack:

  • server: runs Elasticsearch, Logstash, and Kibana. Logstash pulls from Redis on the broker vm and from /var/log/messages
  • broker: runs Logstash and Redis. No filtering is done here. Inputs are setup for Logstash Forwarder (lumberjack), syslog via udp, NXLog(tcp json_lines), and /var/log/messages
  • client: runs Logstash Forwarder and ships logs to the broker vm

Dependency

If you have the Vagrant plugin "Vagrant Cachier" installed this project will utilize it to save you a fair amount of downloading. If you don't have the plugin installed already just run the following:

$ vagrant plugin install vagrant-cachier

As a byproduct of the type of setup this is, more memory is required than with most Vagrant setups... server uses 2G and the others each use 1G for a total of 4G.

Running the demo

To get started all you need to do is run

$ vagrant up

Once all machines are up you can go to the following URL's:

You can easily generate a bunch of log entries by running yum -y upgrade on the client.

Both the broker and the server also log to stdout. By running

$ tail -f /var/log/logstash/logstash.stdout

you can see logs in Ruby format like this one:

{
       "message" => "Jul 20 22:31:06 localhost yum[3791]: Updated: dracut-kernel-004-356.el6_6.3.noarch",
      "@version" => "1",
    "@timestamp" => "2015-07-21T02:31:13.196Z",
          "type" => "syslog",
          "tags" => [
        [0] "lumberjack",
        [1] "redis"
    ],
          "file" => "/var/log/messages",
          "host" => "client.localdomain",
        "offset" => "87573"
}

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.