This demo is based on hammertime.
This repo is basically a collection of different softwares and tools which help you get started with elasticsearch. We inlcude two submodules (Kibana and Sense), two configuration files (elasticsearch.yml, dashboard.json) and some examples.
Kibana is an open source (Apache Licensed), browser based analytics and search interface data sets stored in elasticsearch [source]. Said differently, Kibana helps you make sense of your data.
Sense is a JSON-aware tool that allows you to communicate with elasticsearch from your browser and it provides many features such as autocomplete and syntax checking.
- Java (for elasticsearch)
- Python (for Kibana three)
git clone --recursive https://github.com/comperiosearch/elasticsearch-uio-demo.git
- Change directory to
elasticsearch-uio-demo
Now you can either run the script prepare.sh
(Windows: prepare.bat
) or manually do the following:
- Download https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.3.zip
- Extract elasticsearch-0.90.3.zip in the same directory where you cloned this repo
- Replace the configuration file elasticsearch.yml in elasticsearch-0.90.3/config/ with the file provided in this repo
- Install Elastic HQ plugin, as follows:
elasticsearch.0.90.3/bin/plugin -install royrusso/elasticsearch-HQ
Now you are ready to go!
To run elasticsearch simply do:
elasticsearch/bin/elasticsearch
Linux users: if you want to keep the elasticsearch process in the
foreground, do:
elasticsearch/bin/elasticsearch -f
Windows users: .\elasticsearch-0.90.3\bin\elasticsearch
In you fave browser, open: localhost:9200
Did you see something like:
{
"ok" : true,
"status" : 200,
"name" : "Styx and Stone",
"version" : {
"number" : "0.90.3",
"build_hash" : "5c38d6076448b899d758f29443329571e2522410",
"build_timestamp" : "2013-08-06T13:18:31Z",
"build_snapshot" : false,
"lucene_version" : "4.4"
},
"tagline" : "You Know, for Search"
}
It works!
Now you can try the queries in examples.
Open sense/index.html in your browser, and done.
- Change direcotry to
kibana
python -m SimpleHTTPServer
- Open localhost:8000
- Load the dashboard provided in this repo
- HQ
bin/plugin -install royrusso/elasticsearch-HQ
, open: http://localhost:9200/_plugin/HQ/ - inquisitor
bin/plugin -install polyfractal/elasticsearch-inquisitor
, open: http://localhost:9200/_plugin/inquisitor - head
bin/plugin -install mobz/elasticsearch-head
, open: http://localhost:9200/_plugin/head