Installing and Configuring ElasticSearch, Logstash and Kibana

emerge -a app-misc/elasticsearch www-apps/kibana-bin app-admin/logstash-bin
The InitScripts that ship with Gentoo don't work, start manually with
/usr/share/elasticsearch/bin/elasticsearch \
	-p /run/elasticsearch/elasticsearch.pid \
	-E default.path.data=/var/lib/elasticsearch/_default/data \
	-E default.path.conf=/etc/elasticsearch
curl http://localhost:9200/ Use this tool? https://www.npmjs.com/package/mongo-elasticsearch

Post Some Data

curl -XPUT http://localhost:9200/$idx/$doc/$key -d '
{
	field0: 'Beer',
	name: 'Duffman',
	address: '1 Duff Drive, Dufftown, USA'
}'

Serach Some Data

curl -XPOST http://localhost:9200/$idx/$doc/_search -d '
{
	"query": {
		"match|regexp|wildcard" {
			"$field": "$val"
		}
	}
}'
* https://www.elastic.co/guide/en/elasticsearch/guide/current/_wildcard_and_regexp_queries.html *

Kibana

Install it and update /etc/kibana/kibana.yml.

server.host: "0.0.0.0"
https://github.com/elastic/elasticsearch-php https://github.com/metabase/metabase/issues/2689 https://discuss.elastic.co/t/unable-to-fetch-mapping-do-you-have-indices-matching-the-pattern/844 https://www.elastic.co/guide/en/elasticsearch/guide/current/relations.html