

Open up /etc/filebeat/filebeat.yml and edit the following: filebeat.inputs:Ībove, just setting my path to nginx access logs, some extra fields, including that it shoulds seed kibana with example visualizations and the output configuration of elasticsearch. Let's configure our main configuration in filebeat, to specify our location where the data should be shipped to (in this case elasticsearch) and I will also like to set some extra fields that will apply to this specific server.
FILEBEAT ELASTIC SEARCH INSTALL
Install Filebeat and enable the service on boot: $ apt install filebeat -y Update the repositories: $ apt update & apt upgrade -y Get the repository definition: $ echo "deb stable main" | tee -a /etc/apt//elastic-6.x.list Get the public signing key: $ wget -qO - | sudo apt-key add. Install the dependencies: $ apt install wget apt-transport-https -y

To check the version of your elasticsearch cluster: $ curl # i have es running locally I will be using version 6.7 as that will be the same version that I am running on my Elasticsearch. Filebeat Overviewįilebeat runs as agents, monitors your logs and ships them in response of events, or whenever the logfile receives data.īelow is a overview (credit: ) how Filebeat works Installing Filebeat Filbeat monitors the logfiles from the given configuration and ships the to the locations that is specified. Filebeat by Elastic is a lightweight log shipper, that ships your logs to Elastic products such as Elasticsearch and Logstash.
