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