Skip to content

Instantly share code, notes, and snippets.

@haxorjim
Last active September 17, 2021 16:37
Show Gist options
  • Save haxorjim/921df8f1f8fa138f14e6566536ae1f95 to your computer and use it in GitHub Desktop.
Save haxorjim/921df8f1f8fa138f14e6566536ae1f95 to your computer and use it in GitHub Desktop.
Metricbeat
brew tap elastic/tap
brew install elastic/tap/metricbeat-full
vi /usr/local/etc/metricbeat/metricbeat.yml
#output.logstash:
# hosts: ["elk.local:5044"]
brew services start elastic/tap/metricbeat-full
sudo pacman -S metricbeat
sudo vi /etc/metricbeat/metricbeat.yml
#output.logstash:
# hosts: ["elk.local:5044"]
sudo systemctl enable metricbeat
sudo systemctl start metricbeat
sudo systemctl status metricbeat
curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list
sudo apt update
sudo apt install metricbeat
sudo vi /etc/metricbeat/metricbeat.yml
#output.logstash:
# hosts: ["elk.local:5044"]
sudo systemctl enable metricbeat
sudo systemctl metricbeat start
sudo systemctl status metricbeat
# https://www.elastic.co/downloads/beats/metricbeat
cd 'C:\Program Files\Metricbeat'
notepad metricbeat.yml
#output.logstash:
# hosts: ["elk.local:5044"]
PowerShell.exe -ExecutionPolicy UnRestricted -File .\install-service-metricbeat.ps1
Start-Service metricbeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment