22
0
Fork 0

relecture et simplification de la partie elasticsearch avec liens vers HowtoElasticsearch

This commit is contained in:
gcolpart 2016-10-11 00:17:44 +02:00
parent e3351e34f9
commit 2adabe839f
1 changed files with 13 additions and 34 deletions

View File

@ -1,43 +1,32 @@
---
title: Howto ELK (installation de la suite)
title: Howto suite ELK
categories: nosql pack
---
Cette documentation décrit l'installation et la configuration d'une stack ELK sur un serveur installé en Debian 8.
**ELK** = Elasticsearch + Logstash + Kibana
Cette documentation décrit l'installation et la configuration de la suite ELK (**ELK** = Elasticsearch + Logstash + Kibana).
# Elasticsearch
Documentation officielle : <https://www.elastic.co/guide/en/elasticsearch/reference/2.4/index.html>
Elasticsearch est un serveur de base de donnée qui dispose d'une interface REST HTTP. C'est écrit en Java.
## Installation
~~~
# wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | apt-key add -
# echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" | tee -a /etc/apt/sources.list.d/elastic.list
# apt install elasticsearch openjdk-7-jre openjdk-7-jre-headless
# echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" >> /etc/apt/sources.list.d/elastic.list
# apt install elasticsearch openjdk-7-jre
# systemctl enable elasticsearch && systemctl start elasticsearch
~~~
## Configuration de base
Pour plus de détails, voir [HowtoElasticsearch#installation]()
~~~
# vim /etc/elasticsearch/elasticsearch.yml
~~~
## Configuration
Préciser *node.name* dans le fichier `/etc/elasticsearch/elasticsearch.yml` :
~~~{.yaml}
cluster.name: _cluster_name_
node.name: _node_name_
node.name: bar
~~~
On vérifie qu'on a bien un Java >= 1.7 activée
~~~{.bash}
$ java -version
~~~
Plus détails sur la bonne configuration d'Elasticsearch sont sur [HowtoElasticsearch#Configuration]().
Pour plus détails, voir [HowtoElasticsearch#configuration]().
## Installation de quelques plugins
@ -47,17 +36,7 @@ Plus détails sur la bonne configuration d'Elasticsearch sont sur [HowtoElastics
# chown -R elasticsearch:elasticsearch /usr/share/elasticsearch/plugins/
~~~
## Démarrage
~~~
# systemctl start elasticsearch
~~~
Pour que le démon soit géré automatiquement par systemd :
~~~
# systemctl enable elasticsearch
~~~
Pour plus détails, voir [HowtoElasticsearch#plugins]().
## Utile