由于filbeat是用来与es存储进行对接使用的,所以默认会添加一些数据,这里数据为了方便和es对接,可以修改processors
配置对字段进行自定义,但是@timestamp
、type
字段不能丢弃。
对字段的过滤和增强导出数据参考:https://www.elastic.co/guide/en/beats/filebeat/current/filtering-and-enhancing-data.html
结论:filebeat目前位置不支持只收集原生日志数据(filebeat7.2)。