用了Elasticsearch,一口气上5T

filebeat中怎么输出自定义的字段到elasticsearch

Beats | 作者 hello4395 | 发布于2017年08月03日 | 阅读数:4671

filebeat中怎么输出自定义的字段到elasticsearch
已邀请:

novia - 1&0

赞同来自:

filebeat有个fields的配置,看下是否可以满足你的需求

haohao

赞同来自:

- input_type: log

  # Paths that should be crawled and fetched. Glob based paths.

  paths:

      - /home/web/nginx/logs/access.log

  fields:

       type: access

       business: nginx

  fields_under_root: true
 
type和business就是自定义加的字段

siufenglee

赞同来自:

谢谢,已解决,之前是配置文件的空格问题,导致新加字段未输出

要回复问题请先登录注册