[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 来采集日志的

最新文章

  1. 查找数组中重复项的index
  2. Mac上的欧路词典单词本迁移到有道词典 #node.js
  3. 高性能网站架构设计之缓存篇(2)- Redis C#客户端
  4. STC12C5A60S2笔记4(复位)
  5. date 显示或设置系统时间和日期
  6. UOJ261 【NOIP2016】天天爱跑步
  7. 为Activity设置特定权限才能启动
  8. 再谈CMake与RPATH
  9. 微信iOS WKWebview 网页开发适配指南
  10. 仿制的ActivityIndicatorView
  11. Android之Camera控制拍照
  12. Linux常用命令2--用户问题、文件的打包压缩
  13. sql 将datetime类型转化为指定格式的字符串
  14. Redis 基础(一)
  15. java自动化-关键字驱动在junit接口自动化的应用
  16. 巨杉数据库 MySQL兼容项目正式开源
  17. vscode git设置远程仓库码云
  18. Android Developers:传感器概述
  19. Lua date转秒数
  20. webservice系统学习笔记10-使用jax-ws创建基于tomcat类型的容器的ws服务

热门文章

  1. HDU 3001 Travelling (三进制状态压缩 DP)
  2. scpclient使用报错fchmod无法找到问题解决
  3. SqlDataAdapter概述
  4. numpy 傅立叶得到幅值和频率
  5. stardict dict url
  6. Flash 矢量图和位图性能对比 导出为位图/缓存为位图 export as bitmap / cache as bitmap
  7. mysql数据导出为excel文件
  8. 用Redis的zset防御Session Flood
  9. HBase Go客户端Row构造注意事项
  10. <转>SQL 左外连接,右外连接,全连接,内连接