Unzip the tar.gz package and navigate to the newly created folder, as shown in the following code snippet:
$>tar -xzf metricbeat-7.0.0-linux-x86_64.tar.gz
$>cd metricbeat
To install using dep/rpm, execute the appropriate commands in the Terminal as follows:
deb:
curl -L -O https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-7.0.0-amd64.deb
sudo dpkg -i metricbeat-7.0.0-amd64.deb
rpm:
curl -L -O https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-7.0.0-x86_64.rpm
sudo rpm -vi metricbeat-7.0.0-x86_64.rpm
Metricbeat will be installed in the /usr/share/metricbeat directory. The configuration files will be present in /etc/metricbeat. The init script will be present in /etc/init.d/metricbeat. The log files will be present within the /var/log/metricbeat directory.