fluentd
介绍fluentd
尼古拉斯丶六六
好想养个小奶狗
展开
-
4、fluentd之配置文件的格式
文章目录sourcematchfilterlabelsysteminclude通配符配置文件中的参数类型多个match之间的顺序检查配置文件是否可用source"source": where all the data come fromsource:就是输入源(input),比较常用的有两个插件一个是http,一个是forward(tcp)其它的插件,可以去官网查找# Receive events from 24224/tcp# This is used by log forwarding原创 2020-07-03 10:09:12 · 1849 阅读 · 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.cycletag:test.原创 2020-07-03 08:59:07 · 234 阅读 · 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 · 376 阅读 · 0 评论 -
1、fluentd安装
文章目录1.安装准备工作2.安装3.配置文件1.安装准备工作第一步:ulimit -n65536# 如果显示 1024 需要在/etc/security/limits.conf 下面添加如下:root soft nofile 65536root hard nofile 65536* soft nofile 65536* hard nofile 65536第二步:# 在/etc/sysctl.conf 文件下面添加如下字段net.core.somaxconn = 1024net.原创 2020-07-02 16:26:43 · 1093 阅读 · 0 评论
分享