Filebeat Exercise
curl -O https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.listsudo apt-get update && sudo apt-get install filebeatsudo nano /etc/filebeat/filebeat.yml- input_type: log paths: - /var/log/*.log output.elasticsearch: hosts: ["localhost:9200"] template.enabled: true template.path: "/etc/filebeat/filebeat.template.json" template.overwrite: false index: "filebeat"sudo service filebeat start && sudo service filebeat statuscurl 'localhost:9200/_cat/indices?format=json'curl 'localhost:9200/filebeat/_search?pretty=true'
Last updated