Giter Club home page Giter Club logo

dump-ekl's Introduction

dump-ekl

Provision ekl and restore your dashboard using Ansible, Elasticdump, Nginx and Vagrant OpenStack cloud provider.

Ansible Playbook to automate the setup of an ELK stack

Centralized logging server with Logstash + logstash-forwarder, Elasticsearch, Kibana 4 behind Nginx with https and simple authentication.

This playbook is intended to be run against a vm that will be used as a central logger. After the setup of the server, clients need to be configured to redirect all logs to the central location.

Platform: Tested on **Ubuntu **

Prerequisites: The Vagrantfile assume you have credentials for an Openstack cloud provider. But it can be easily adapt using VirtualBox.

Preparation

  1. Install Ansible and Vagrant Openstack Provider.

  2. Set your .bashrc with the needed Openstack variables OS_USERNAME, OS_PASSWORD, OS_TENANT, OS_FLOATING_IP etc.. used within the Vagrantfile. [List of Openstack public cloud providers] (https://www.openstack.org/marketplace/public-clouds/)

Quick Start

$`./deploy.sh (set the ip address of the vm and then execute vagrant up )

Take a coffee and after three minutes get your centralized logging server up and running!

Browse https://@IPOrFqdn and enter your login/mdp (see nginx-install.yml )!

Hereunder is what the Playbook will do:

  1. Setup java8

  2. Setup and configure Elasticsearch

  3. Setup and configure Nginx with SSL and simple authentication

  4. Setup and configure kibana 4

  5. Setup and configure Logstash

  6. Setup and configure Elasticdump : import/ export your visualizations and dashboards - see below.

  7. Setup and configure logstash-forwarder for real time logging. Client and server on same vm.

Why Elasticdump ?

Because Kibana 4, for now, does not allow you to save and load JSON visualizations and dashboard via its interface.

Export your visualizations/dashboards with the following command:

elasticdump \  
    --input=http://localhost:9200/.kibana  \
    --output=$ \
    --type=data \
    --searchBody='{"filter": { "or": [ {"type": {"value": "dashboard"}}, {"type" : {"value":"visualization"}}] }}' \
    > kibana-exported.json

[Elasticdump import/export] (http://air.ghost.io/kibana-4-export-and-import-visualizations-and-dashboards/)

dump-ekl's People

Contributors

f2brossi avatar

Stargazers

 avatar

Watchers

James Cloos 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.