fluentd
介绍fluentd
尼古拉斯丶六六
好想养个小奶狗
展开
-
4、fluentd之配置文件的格式
文章目录sourcematchfilterlabelsysteminclude通配符配置文件中的参数类型多个match之间的顺序检查配置文件是否可用 source "source": where all the data come from source:就是输入源(input),比较常用的有两个插件一个是http,一个是forward(tcp) 其它的插件,可以去官网查找 # Receive events from 24224/tcp # This is used by log forwarding原创 2020-07-03 10:09:12 · 1572 阅读 · 0 评论 -
3、fluentd事件生命周期
文章目录1.什么是事件2.事件结构3.事件处理流程 1.什么是事件 一条日志信息就是一个事件 例如:curl -i -X POST -d ‘json={“action”:“login”,“user”:2}’ http://localhost:8888/test.cycle,这就可以理解为事件 2.事件结构 事件:curl -i -X POST -d 'json={"action":"login","user":2}' http://localhost:8888/test.cycle tag:test.原创 2020-07-03 08:59:07 · 216 阅读 · 0 评论 -
2、fluentd简单案例入门
文章目录第一个小案例第二个小案例第三个小案例 第一个小案例 第一步:编写/etc/td-agent/td-agent.conf文件,内容如下 <source> @type http port 8888 bind 0.0.0.0 </source> <match test.cycle> @type stdout </match> 配置文件的名词解释 source:使用http插件,在8888端口启动一个web服务用于收集日志 match:匹配原创 2020-07-02 16:50:18 · 350 阅读 · 0 评论 -
1、fluentd安装
文章目录1.安装准备工作2.安装3.配置文件 1.安装准备工作 第一步: ulimit -n 65536 # 如果显示 1024 需要在/etc/security/limits.conf 下面添加如下: root soft nofile 65536 root hard nofile 65536 * soft nofile 65536 * hard nofile 65536 第二步: # 在/etc/sysctl.conf 文件下面添加如下字段 net.core.somaxconn = 1024 net.原创 2020-07-02 16:26:43 · 1006 阅读 · 0 评论