In
this I will talk about how to perform log analytics using Elasticsearch,
Logstash and Kibana. To start with, we will see how to install these softwares
on Windows.
Prerequisites:
- · elasticsearch-1.4.4
- · kibana-4.0.1-windows
- · logstash-1.5.0.rc2
Install Elasticsearch on Windows
Elasticsearch
is a search engine tool/platform which allows us to save the documents to be
search in certain format and provides APIs to do full text search capabilities.
In the recent times, because of its features like Open Source, Scalability,
ease of use, it has become very popular among developer community.
Install
Elastic Search is every easy, here are the steps for the same
For
this demo, we are going to use “elasticsearch-1.4.4”.
Unzip and extract the content to the suitable directory.
This
will start the Elasticsearch service at http://localhost:9200.
Install Logstash on Windows
Logstash
is useful utility when it comes to playing with Logs. It gives you in built-in
features to read from various file formats and perform some operations with it.
One of the best feature it has is, you can read the logs in certain format
(e.g. Apache Logs, SysLogs etc.) and put them into Elastic search.
Unzip
the downloaded “logstash-1.5.0.rc2”
in any folder.
To
enable use of Logstash from any directory, add the path to system variable
using environment variables.
>set
LOGSTASH_HOME=D:\ELK\logstash-1.5.0.rc2
>set
PATH=%PATH%;D:\ELK\logstash-1.5.0.rc2\bin
And
that's it, logstash is ready to use
Install Kibana 4 on Windows
Kibana
is a JavaScript library which allows us to create beautiful dashboard reports
using elasticsearch data.
Here
we are going to use “kibana-4.0.1-windows”
as it is compatible with current release of elasticsearch that we are using.
Prior
to Kibana 4, we need to have a web server running but with Kibana 4, we get it
embeded.
Unzip
the “kibana-4.0.1-windows” file at any location.
Kibana
configuration is very easy, simply edit config/kibana.yml to add the
elasticsearch url and done.
Open
config/kibana.yml and update property elasticsearch_url: "http://localhost:9200".
To
start Kibana, execute
A
server would get started and you could see the GUI at http://localhost:5601/
No comments:
Post a Comment