Filebeat
Created by Seokje Park at 2020.02.21
keyword
centralized logging
log shipper
What is Beats ?
Beats are collection of lightweight and open source log shipper
Beats are built on top of a Go framework called libbeat.
It acts as agents installed on the different servers for collecting lgos or metrics
Filebeat : Collects log files
Packetbeat : Collects network data
Metricbeat : Collects server metrics
Once collected, the data is sent to either directly into Elasticsearch or to Logstash.
Quick start
Described on AWS Linux(AMI) basis.
Download and install the public signing key:
Create
elastic.repo
and add the following lines in your /etc/yum.repos.d/ directory:Modify
filebeat.yml
in /etc/filebeat/filebeat.yml:Add the following line
/etc/filebeat/modules.d/system.yml.disabled
: (Optional)This way you send log events in Elasticsearch with a UTC timestamp. Kibana can simply convert from UTC to whatever timezone you browser is in at request time.
Enable logstash module
Setup and start Filebeat
Kibana Management > Index Patterns create index pattern
filebeat-*
In Kibana Discover, change current index pattern to
filebeat-*
and set date filters.Click Refresh. if you see data, you made it. Congratulation!
참고
Last updated