EP3 Fluentd Configuration & Pushing logs from Raspberry Pi to Elasticsearch | Rocket Systems

Опубликовано: 03 Февраль 2021
на канале: Rocket Systems
753
17

In today's 4k ultra luxurious super HD brand new tutorial, we are going to understand how to write a configuration file for Fluentd. Fluentd is our postman service which takes logs data from Raspberry Pi to Elasticsearch. We create a fluentd.config file in which we define an input source and output source. Input source is where we define which log file to monitor. Output source is known as match where we define the URL, port, username, password and other details related to Elasticsearch.

EFK stands for Elasticsearch, fluentd & kibana. This is the one stop solution for all of your logging work. Be it a Raspberry Pi device or any other machine, logs plays an important role in the project. But just imagine if we can visualize logs on dashboard instead of reading a standard log file, how cool it would be. Using EFK stack we can design any type of graphs or charts we want for our logs.

Raspberry Pi has been a very powerful embedded device. Because of its small size and good CPU, we can run almost anything on it. Raspberry Pi's have been installed at many remote client site where physical access to the device is not possible. In this situation it becomes difficult to handle logs and just imagine if you have multiple Pi's installed and how difficult it would be do debug any issue. That's wher EFK comes into the picture. We can install fluentd on Raspberry Pi which can start pushing data to Elasticsearch. We can then use Kibana to design dashboard to visualize our logs.

Watch EFK Stack on Ubuntu:    • EFK Stack | Elastic, Fluentd & Kibana...  

For any queries: [email protected]

Like us on facebook:   / rocketsystems  

Phew, its difficult to write such a long description. Trust me I didn't copy pasted it from any website. :P