Git Product home page Git Product logo

elastic-vagrant-stack's Introduction

elastic-vagrant-stack

Elastic stack with single node elastic server in a single VM

ELK single node topology

NOTE: To provision a single-node elastic server

We have to just run the vagrant up command.

Elastic stack with 3 node elastic cluster in three differnet VMs

ELK topology

NOTE: To provision a multi-node elastic cluster

export CLUSTER_TYPE=multi
vagrant up

vagrant commands

Status of each vagrant machine forming the Elastic stack topology can be checked using

$ vagrant status
Current machine states:

esserver                  not created (virtualbox)
logstash-filebeat         not created (virtualbox)
kibana                    not created (virtualbox)

To create and provision the topology use below command

vagrant up

Advisable to run vagrant status again to check and ensure all the vagrant machines are running. The result should be something like the following:

$ vagrant status
Current machine states:

esserver                  running (virtualbox)
logstash-filebeat         running (virtualbox)
kibana                    running (virtualbox)

Automatically elasticsearch cluster,kibana,logstash and filebeat will be configured and pipeline will be build for ready to use.

The elasticsearch server running within the guest VM can be reached from the host machine's browser using the following url:

http://127.0.0.1:9200

The Kibana Dashboard can be viewed from the host machine's browser using the following url:

http://127.0.0.1:5601

Insteasd if each vm has to be created and provisioned independently, below commands can be used for each of them:

example :vagrant up esmaster

To ssh into any of the machine use

vagrant ssh "machine-name"
example : vagrant ssh esmaster

To stop all the vagrant machine (or specify specific vagrant machine)

vagrant halt

To stop and deletes all traces of all the vagrant machine (or specify specific vagrant machine)

vagrant destroy

Below command watches all local directories of any rsync synced folders and automatically initiates an rsync transfer when changes are detected

vagrant rsync-auto

Environment variable CLUSTER_TYPE can be used to create single or multi node cluster. CLUSTER_TYPE= 'multi' will spin up the Elasticsearch cluster with 1 master node and 2 data nodes, each in separate vagrant machines.


NOTE kibana vagrant machine is allocated 2 gb memory and 2 cpu. ES master node is allocated 1 gb memory


elastic-vagrant-stack's People

Contributors

amitashanan2 avatar venkateshsampath avatar pallavdubeytw avatar

Watchers

James Cloos avatar  avatar Amitash Anand avatar

Forkers

amitashanand

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.