本文描述如何在虚拟机上安装和配置Fluentd, Elasticsearch, kibana.
Fluentd
$ curl -L https://toolbelt.treasuredata.com/sh/install-redhat-td-agent3.sh | sh
This shell script registers a new rpm repository at /etc/yum.repos.d/td.repo and installs the td-agent rpm package.
sudo systemctl start td-agent.service
sudo systemctl status td-agent.service
Configuration file path:
/etc/td-agent/td-agent.conf
Output path by default:
/var/log/td-agent/td-agent.log
Test
Send message to fluentd:
$ curl -X POST -d 'json={"json":"message"}' http://localhost:8888/debug.test
Check Fluentd log:
$ tail -5f /var/log/td-agent/td-agent.log
2019-04-18 02:51:54 -0400 [info]: #0 starting fluentd worker pid=4211 ppid=4206 worker=0
2019-04-18 02:5