Configuration of Filebeat For Elasticsearch On CentOS 7

Configuration of Filebeat For, This module can help you to analyze the logs of any server in real-time.

There are lots of modules available like Nginx, MySQL, etc for analyzing the log data. This depends on your requirements. so full

How file beats works, This reads the log file which is specified in the configuration files and sends the new logs to libbeat, which starts sending the data to output which you have configured for Filebeat. so full

You can read logs of Apache, Nginx, tomcat and more, Just installed this plugin to analyze the logs full

Check Out: Installation of APM Agent In Elasticsearch For Tomcat Server

Settings For Filebeat

Once Filebeat is installed and now you have to make changes in filebeat.yml file to connect Filebeat to Elasticsearch server running on 9200.

Edit the file vim /etc/filebeat/filebeat.yml

settings for kibana

Now Elasticsearch Settings in the same filebeat.yml file,

elasticsearch output

Check Out: Configuration of Filebeat For Elasticsearch

Now you have to enable the module of Logstash and Elasticsearch.

filebeat modules enable logstash

Make changes in logstash.yml file,

vim /etc/filebeat/modules.d/logstash.yml

changes in logstash

Check Out: How To Install Elasticsearch Using Source Code In Linux

The below command will setup the Filebeat and load the Kibana dashboard.

filebeat setup

filebeat setup

Restart the Filebeat service

systemctl restart filebeat

filebeat service

As you will see, Filebeat connected to Elasticsearch Server. so full

That’s it.

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

Leave a comment