Skip to content

Latest commit

 

History

History
82 lines (58 loc) · 3.03 KB

README.md

File metadata and controls

82 lines (58 loc) · 3.03 KB

This Project Tries to Document Getting Started with Elasticserch and Kibana on OSX

It's easier to manage and configure these apps with a custom installation as opposed to using homebrew.

Download these to a drectory called 'apps' where you can keep all unmanaged applications.

Unzip the downloaded files (this will be the home folders of the respective apps)

Starting a local node of Elasticsearch

Issue this command from elasticsearch root folder in terminal: ./bin/elasticsearch f Issue this command from terminal to shutdown elasticsearch:

curl -XPOST 'http://localhost:9200/_cluster/nodes/_local/_shutdown'

Starting and Quiting Kibana

Issue this command from the kibana home folder: ./kibana-4.5.0-darwin-x64/bin/kibana

Kibana resides on localhost:5601 (open it in your favourite browser)

Shutting down Kibana Issue ctrl + c in the terminal it was launched in.

NOTE: The start up command for Kibana depends on the version of Kibana downloaded.

Monitoring Elasticsearch with Kopf

Kopf is a free alternative to Marvel. In order to help with the monitoring of Elasticsearch

With this command from within Elasticsearch's home folder: ./bin/plugin install lmenezes/elasticsearch-kopf/{2.0/v2.1.1} open http://localhost:9200/_plugin/kopf

Timelion
  • Install Timelion from within Kibana with: ./apps/kibana-4.5.0-darwin-x64/bin/kibana plugin -i kibana/timelion

NOTES: Elastic search indices must only have lower case names.

Useful Links

Kibana
Logstash
Elasticsearch Useful Commands
Cluster Health

curl -GET 'http://localhost:9200/_cluster/health'

Add an Index

create and index called blogs curl -XPUT 'http://localhost:9200/blogs/'

Delete Indices

curl -XDELETE 'http://localhost:9200/logstash*/' The example above deletes the logstash with the wild card *

Notes

_type = object _id = unique identifier