meta données pour cette page
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| monitoring:elk [14/12/2023 19:35] – [Installation ElasticSearch] mdl | monitoring:elk [14/12/2023 22:17] (Version actuelle) – [Installation ElasticSearch] mdl | ||
|---|---|---|---|
| Ligne 5: | Ligne 5: | ||
| ====== Prérequis ====== | ====== Prérequis ====== | ||
| < | < | ||
| - | apt install nmap wget gpg apt-transport-https | + | apt install nmap wget curl htop gpg apt-transport-https |
| </ | </ | ||
| ===== Installation ElasticSearch ===== | ===== Installation ElasticSearch ===== | ||
| Ligne 35: | Ligne 35: | ||
| \\ | \\ | ||
| - | + | On teste si le service est bien à l' | |
| + | < | ||
| + | export ELASTIC_PASSWORD=" | ||
| + | curl --cacert / | ||
| + | </ | ||
| + | {{: | ||
| + | |||
| + | * création d'un user pour le monitoring | ||
| + | -p = mot de passe \\ | ||
| + | -r = role | ||
| + | < | ||
| + | / | ||
| + | </ | ||
| + | ====== Installation de Kibana ====== | ||
| + | * Installation | ||
| + | < | ||
| + | apt install kibana | ||
| + | </ | ||
| + | {{: | ||
| + | |||
| + | * Génération du token ElasticSearch | ||
| + | < | ||
| + | / | ||
| + | </ | ||
| + | * activation du démarrage automatique du service | ||
| + | < | ||
| + | systemctl daemon-reload | ||
| + | systemctl enable kibana.service | ||
| + | </ | ||
| + | |||
| + | ===== Installation LogStash ===== | ||
| + | * Installation | ||
| + | < | ||
| + | apt install logstash | ||
| + | </ | ||
| + | |||
| + | ===== Installation Agent MetricBeat ===== | ||
| + | Installation de l' | ||
| + | * copie des binaireS dans **Program files** | ||
| + | <code powershell> | ||
| + | New-Item -Type directory -path ' | ||
| + | Copy-Item -Path ' | ||
| + | etricbeat\' | ||
| + | </ | ||
| + | * Création du service | ||
| + | <code powershell> | ||
| + | Set-ExecutionPolicy unrestricted | ||
| + | cd ' | ||
| + | .\install-service-metricbeat.ps1 | ||
| + | </ | ||