打赏

Ubuntu 安装 fluentd

Ubuntu 安装 fluentd

1.添加GPG key

apt-key add /path/to/RPM-GPG-KEY-td-agent

2.添加镜像源

echo "deb http://packages.treasure-data.com/precise/ precise contrib" > /etc/apt/sources.list.d/treasure-data.list

apt-get update

3.安装

apt-get install -y --force-yes td-agent

4.其他方法安装

curl -L http://toolbelt.treasuredata.com/sh/install-ubuntu-precise.sh | sh

https://docs.fluentd.org/installation/install-by-deb  // 官网安装

5.查看状态

$ /etc/init.d/td-agent start
$ /etc/init.d/td-agent stop
$ /etc/init.d/td-agent restart
$ /etc/init.d/td-agent status

6.配置文件

/etc/td-agent/td-agent.conf

7.测试

curl -X POST -d ‘json={"json":"message"}‘ http://localhost:8888/debug.test

tail -n 10 /var/log/td-agent/td-agent.log
posted @ 2020-08-06 17:36  苍山落暮  阅读(664)  评论(0编辑  收藏  举报