Configuration Filebeat for ClickHouse logs.
# Oracle Java JRE or OpenJDK 8
sudo apt-get install openjdk-8-jre
# Install the Elastic repository and its GPG key
sudo apt-get install curl apt-transport-https
curl -s https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-6.x.list
sudo apt-get update
sudo apt-get install filebeat
- Edit configuration file
- open config file '/etc/filebeat/filebeat.yml'
sudo nano /etc/filebeat/filebeat.yml
- replace its content by filebeat.yml
- set the valid IP to param output.logstash: hosts
- Run filebeat service
sudo service filebeat start