syslog - 询问流利的系统日志聚合器
问题描述
我已经设置了一个 fluentd 节点来接收任何 syslog 消息并将其发送到 graylog。
但是目前 Graylog 并没有接收到之前 fluentd 接收的所有日志。如果我检查 td-agent.log fluentd 已经收到日志,但似乎并非全部发送到 graylog。
这是我的 td-agent.conf 配置
<source>
@type syslog
port 5140
bind 0.0.0.0
tag system
</source>
<match system**>
@type copy
<store>
@type gelf
host 10.150.2.21
port 5140
flush_interval 5s
</store>
<store>
@type stdout
</store>
</match>
有人可以帮助我吗?
解决方案
检查graylog服务器登录/var/log/graylog-server/server.log
是否有错误,可能字段类型有问题(混合类型:num,ES无法存储的字符串)。如果是这样,请尝试在 EL 中为受影响的字段创建自定义索引映射。
https://docs.graylog.org/en/3.3/pages/configuration/elasticsearch.html#custom-index-mappings
推荐阅读
- cmake - find_package 命令中 HINTS 变量的使用
- json - 将合并后的文件输出到 json 文件中
- ios - 在 iOS 应用程序中为部署目标找到合适的值?
- java - 如何计算通过/失败结果并打印通过和失败的数量
- java - 处理日历以从日历中的当前日期选择日期?硒
- python - 使用嵌套列名将嵌套的 json 展平为 csv
- c# - 是否可以通过鼠标右键触发 ListView 上的 DoubleClicked 事件?
- scala - 如何通过子序列拆分序列?
- android - Android 5.2.2 上的 Ionic 4 App 黑屏
- delphi - DataSnap 没有关闭 SQL Server 连接的