From 2adabe839f92f1e4dc62c323b7f9e0b7db65d841 Mon Sep 17 00:00:00 2001 From: gcolpart Date: Tue, 11 Oct 2016 00:17:44 +0200 Subject: [PATCH] relecture et simplification de la partie elasticsearch avec liens vers HowtoElasticsearch --- HowtoELK.md | 47 +++++++++++++---------------------------------- 1 file changed, 13 insertions(+), 34 deletions(-) diff --git a/HowtoELK.md b/HowtoELK.md index 9f066575..b0e9435a 100644 --- a/HowtoELK.md +++ b/HowtoELK.md @@ -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 : - -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