logtash 接收多配置文件
2024-10-15 04:22:21
[root@10-19-148-59 etc]# vim front_esb.conf input {
beats {
type => beats
port => 5077
}
}
filter {
if [type] == 'test-front' {
grok {
overwrite => ['message']
}
}
if [type] == 'test-esb' {
grok {
overwrite => ['message']
}
} }
output {
if [type] == 'test-front' {
elasticsearch {
hosts => ["10.19.148.59:9200"]
index => "test-front-%{+YYYY.MM.dd}"
}
}
if [type] == 'test-esb' {
elasticsearch {
hosts => ["10.19.148.59:9200"]
index => "test-esb-%{+YYYY.MM.dd}"
}
}
}
我这里的日志采集用的是filebeat 来采集日志的
最新文章
- 查找数组中重复项的index
- Mac上的欧路词典单词本迁移到有道词典 #node.js
- 高性能网站架构设计之缓存篇(2)- Redis C#客户端
- STC12C5A60S2笔记4(复位)
- date 显示或设置系统时间和日期
- UOJ261 【NOIP2016】天天爱跑步
- 为Activity设置特定权限才能启动
- 再谈CMake与RPATH
- 微信iOS WKWebview 网页开发适配指南
- 仿制的ActivityIndicatorView
- Android之Camera控制拍照
- Linux常用命令2--用户问题、文件的打包压缩
- sql 将datetime类型转化为指定格式的字符串
- Redis 基础(一)
- java自动化-关键字驱动在junit接口自动化的应用
- 巨杉数据库 MySQL兼容项目正式开源
- vscode git设置远程仓库码云
- Android Developers:传感器概述
- Lua date转秒数
- webservice系统学习笔记10-使用jax-ws创建基于tomcat类型的容器的ws服务