Utility filebeat a metricbeat sbírají informace z logů a systémových metrik a zasílají je do elasticu.
Instalace podle návodu (https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-installation-configuration.html) funguje dobře. Agent se nainstaluje jako služba a potom se spouští automaticky po startu.
Do /etc/metricbeat se přidá odkaz, kam posílat data.
# ---------------------------- Elasticsearch Output ---------------------------- output.elasticsearch: # Array of hosts to connect to. hosts: ["beat.inited.cz:443"] # Protocol - either `http` (default) or `https`. protocol: "https" # Authentication credentials - either API key or username/password. #api_key: "id:api_key" username: "beat" password: "U9eCG7N3cn7VSm9" compression_level: 5 name: as4.inited.cz
Nastavení modulů:
Ověřit: metricbeat -e
Spustit: systemctl start metricbeat
Spustit po startu: systemctl enable metricbeat
Nastavit default editor pro git: git config --global core.editor "vim"
Konfigurace vim - soubor .vimrc
set nocompatible set tabstop=2 shiftwidth=2 expandtab set mouse-=a
Nastavení na OSX: