编辑配置文件
[root@web-bj-docker-10 filebeat]# vim filebeat.yml
#添加以下内容
#=========================== Filebeat prospectors =============================
filebeat.prospectors:
# Each - is a prospector. Most options can be set at the prospector level, so
# you can use different prospectors for various configurations.
# Below are the prospector specific configurations.
- input_type: log #默认
paths: #路径
- /mapbar/data/logs/gsmobd.log #收集的日志
document_type: tomcat_gsmobd #日志类型,类似标签,logstash可以按照标签创建不同索引
#正则匹配以什么为开头
multilin