Last active
September 7, 2020 01:06
-
-
Save Callonski/d71aab68707f028d09813fe013287a5c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################## CONFIGURE FILEBEAT ####################### | |
curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-x.x.x-amd64.deb // Replace x.x.x with version | |
sudo dpkg -i filebeat-x.x.x-amd64.deb // Replace x.x.x with version | |
sudo filebeat keystore create | |
echo "${elastic_pw}" | sudo bin/filebeat keystore add ES_PASSWORD | |
cat <<EOT >> /etc/filebeat/filebeat.yml | |
output.elasticsearch: | |
hosts: ['https://${internal_lb_ip}:9200'] | |
username: "elastic" | |
password: "${ES_PASSWORD}" | |
ssl: | |
certificate_authorities: ['/etc/kibana/elasticsearch-ca.pem'] | |
verification_mode: 'none' | |
setup.kibana: | |
host: "0.0.0.0:8080" | |
username: "elastic" | |
password: "${ES_PASSWORD}" | |
filebeat.inputs: | |
- type: log | |
enabled: true | |
paths: | |
- /var/log/*.log | |
EOT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment