Click here to Skip to main content
15,887,027 members
Articles / Database Development / Elasticsearch
Tip/Trick

ELK Stack Install on Windows

Rate me:
Please Sign up or sign in to vote.
4.67/5 (2 votes)
5 Mar 2016CPOL2 min read 53.9K   4   14
How to install ELK (elasticsearch, kibana and logstash) on Windows

Introduction

There are a few tutorials on the internet on how to install ELK (elasticsearch, kibana and logstash) on Windows. Anyway, in all these tutorials, there are a lot of manual operations involved that are tedious and time consuming. So I thought it would be easier to create an installer to automate the process.

What is ELK?

ELK is a collection of tools from elastic to manage logs. The ELK stack is composed of 3 components:

  • Elasticsearch: This is a distributed search server. In this scenario is used to store log messages.
  • Logstash: It's a tool to collect log messages or data in general from a variety of sources, filter and mugle the data, and then output the data to a destination (in this case, elasticsearch).
  • Kibana: It's a log analyzer (and eventually viewer) that allows to easily create charts, stats and nice dashboards analyzing the log messages stored in elasticsearch.

ELK One Two Step Install

So let's keep this simple!

First, you need to download and install the latest JDK from the Oracle website. Yes, it MUST be the JDK and NOT the JRE.

Then, you can download and install the latest ELK installer from github.

And you are done!

Advanced Options

During the installation process, you will be asked which components you want to install. By default, all components are selected, but it's possbile to install only one or two components. This is useful if you need to install the components on separate servers or if you want to install only elasticsearch to add a node to a cluster.

Image 1

Usage

You can browse to http://localhost:9200 to check the status of your new elasticsearch instance.

You can browse to http://localhost:5601 to open kibana. Anyway, you will need to send few log messages to logstash before you will be able to "configure the index pattern".

Future Articles

I would be happy to share my experience about the following topics, so let me know if you are interested in the comments section:

  • Use elk with log4net
  • Use elk wih nlog
  • Create an elasticsearch cluster

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionWhat's next after installation? Pin
jarves31-Jul-17 21:19
jarves31-Jul-17 21:19 
SuggestionIn elasticsearch.yml, set network.h Pin
shetc21-Jul-16 9:57
shetc21-Jul-16 9:57 
QuestionELK Pin
Member 197841715-Jul-16 5:46
Member 197841715-Jul-16 5:46 
QuestionHow do I add a test log? Pin
jthanrome27-Jun-16 5:26
jthanrome27-Jun-16 5:26 
QuestionIssues occurred when try to collect logs from logstash to Elasticsearch Pin
James Super12-Jun-16 0:24
James Super12-Jun-16 0:24 
AnswerRe: Issues occurred when try to collect logs from logstash to Elasticsearch Pin
Luigi Grilli12-Jun-16 3:00
Luigi Grilli12-Jun-16 3:00 
GeneralRe: Issues occurred when try to collect logs from logstash to Elasticsearch Pin
James Super12-Jun-16 6:58
James Super12-Jun-16 6:58 
GeneralRe: Issues occurred when try to collect logs from logstash to Elasticsearch Pin
Luigi Grilli12-Jun-16 7:34
Luigi Grilli12-Jun-16 7:34 
GeneralRe: Issues occurred when try to collect logs from logstash to Elasticsearch Pin
James Super13-Jun-16 0:19
James Super13-Jun-16 0:19 
GeneralRe: Issues occurred when try to collect logs from logstash to Elasticsearch Pin
James Super27-Jun-16 15:53
James Super27-Jun-16 15:53 
QuestionThank you; encore please! Pin
Member 1188860331-May-16 2:13
Member 1188860331-May-16 2:13 
QuestionGreat effort and very use-full Pin
Member 1249334029-Apr-16 4:24
Member 1249334029-Apr-16 4:24 
AnswerRe: Great effort and very use-full Pin
Luigi Grilli29-Apr-16 12:39
Luigi Grilli29-Apr-16 12:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.