relecture et simplification de la partie elasticsearch avec liens vers HowtoElasticsearch
This commit is contained in:
parent
e3351e34f9
commit
2adabe839f
47
HowtoELK.md
47
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.
|
Cette documentation décrit l'installation et la configuration de la suite ELK (**ELK** = Elasticsearch + Logstash + Kibana).
|
||||||
|
|
||||||
**ELK** = Elasticsearch + Logstash + Kibana
|
|
||||||
|
|
||||||
# Elasticsearch
|
# 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
|
## Installation
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
# wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | apt-key add -
|
# 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
|
# 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 openjdk-7-jre-headless
|
# apt install elasticsearch openjdk-7-jre
|
||||||
|
# systemctl enable elasticsearch && systemctl start elasticsearch
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
## Configuration de base
|
Pour plus de détails, voir [HowtoElasticsearch#installation]()
|
||||||
|
|
||||||
~~~
|
## Configuration
|
||||||
# vim /etc/elasticsearch/elasticsearch.yml
|
|
||||||
~~~
|
Préciser *node.name* dans le fichier `/etc/elasticsearch/elasticsearch.yml` :
|
||||||
|
|
||||||
~~~{.yaml}
|
~~~{.yaml}
|
||||||
cluster.name: _cluster_name_
|
node.name: bar
|
||||||
node.name: _node_name_
|
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
On vérifie qu'on a bien un Java >= 1.7 activée
|
Pour plus détails, voir [HowtoElasticsearch#configuration]().
|
||||||
|
|
||||||
~~~{.bash}
|
|
||||||
$ java -version
|
|
||||||
~~~
|
|
||||||
|
|
||||||
Plus détails sur la bonne configuration d'Elasticsearch sont sur [HowtoElasticsearch#Configuration]().
|
|
||||||
|
|
||||||
## Installation de quelques plugins
|
## 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/
|
# chown -R elasticsearch:elasticsearch /usr/share/elasticsearch/plugins/
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
## Démarrage
|
Pour plus détails, voir [HowtoElasticsearch#plugins]().
|
||||||
|
|
||||||
~~~
|
|
||||||
# systemctl start elasticsearch
|
|
||||||
~~~
|
|
||||||
|
|
||||||
Pour que le démon soit géré automatiquement par systemd :
|
|
||||||
|
|
||||||
~~~
|
|
||||||
# systemctl enable elasticsearch
|
|
||||||
~~~
|
|
||||||
|
|
||||||
## Utile
|
## Utile
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue