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 | ||
| configurer_metricbeat_avec_elk [2025/02/18 18:44] – [Sources] superadmin | configurer_metricbeat_avec_elk [2025/02/25 14:02] (Version actuelle) – superadmin | ||
|---|---|---|---|
| Ligne 21: | Ligne 21: | ||
| ==== Installation de Metricbeat ==== | ==== Installation de Metricbeat ==== | ||
| - | === Sous Linux === | + | Voir [[Installation des beats]] |
| - | __Pour installer | + | ==== Configuration de Metricbeat |
| - | < | + | Pour configurer Metricbeat, éditer le fichier '' |
| - | sudo apt-get install apt-transport-https | + | |
| - | echo "deb https:// | + | |
| - | sudo apt-get update && sudo apt-get install metricbeat</ | + | |
| - | __Pour install Metricbeat sous RHEL/CentOS & dérivés :__ | + | La partie '' |
| - | < | + | |
| - | Créer un fichier avec l' | + | < |
| - | < | + | output.elasticsearch: |
| - | name=Elastic repository for 8.x packages | + | # Array of hosts to connect to. |
| - | baseurl=https://artifacts.elastic.co/ | + | hosts: ["127.0.0.1: |
| - | gpgcheck=1 | + | # |
| - | gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch | + | ssl.verification_mode: |
| - | enabled=1 | + | # Performance preset |
| - | autorefresh=1 | + | # " |
| - | type=rpm-md</ | + | |
| - | Installer le paquet Metricbeat : | + | # Protocol - either `http` (default) or `https`. |
| - | < | + | |
| - | __Une fois installé | + | # Authentication credentials - either API key or username/ |
| - | Activer Metricbeat au démarrage | + | #api_key: " |
| - | < | + | |
| + | | ||
| + | |||
| + | | ||
| - | + | * hosts : nœuds Elasticsearch où seront envoyées les données (IP ou FQDN + port) | |
| - | === Sous Windows === | + | * protocol : HTTP ou HTTPS en fonction du niveau de sécurité voulu |
| - | + | * ssl.certificate_autorities : CA utilisée pour signer les certificats SSL (facultatif mais recommandé) | |
| - | ==== Configuration | + | * ssl.verification_mode : Activée par défaut, mettre à None pour désactiver la vérification du certificat SSL (facultatif et NON recommandé) |
| + | * api_key : token pour la connexion sécurisée à l'API Elasticsearch (facultatif et recommandé) | ||
| + | * username : Utilisateur Elasticsearch utilisé pour s' | ||
| + | * password : Mot de passe de l' | ||
| ==== Création d'une vue ==== | ==== Création d'une vue ==== | ||
| ==== Création d'un dashboard ==== | ==== Création d'un dashboard ==== | ||
| - | |||
| - | === Sous-étape 2.1 === | ||
| - | |||
| - | === Sous-étape 2.2 === | ||
| - | |||
| - | ==== Etape 3 ==== | ||
| - | |||
| - | ==== Vérifications ==== | ||
| ===== Sources ===== | ===== Sources ===== | ||