Exiting: No modules or prospectors enabled and configuration reloading disabled. What files do you want me to watch?
yml中的配置如下
filebeat.inputs: # filebeat input输入
- type: stdin # 标准输入
enabled: true # 启用标准输入
setup.template.settings:
index.number_of_shards: 3 # 指定下载数
output.console: # 控制台输出
pretty: true # 启用美化功能
enable: true
已检查yml的格式和type前面的小横线-都是正确的,解决办法:
filebeat是6.2.1的版本,启动yml必须指定配置prospectors ,将filebeat.inputs 改为filebeat.prospectors
完整配置如下:
filebeat.prospectors:
- type: stdin # 标准输入
enabled: true # 启用标准输入
setup.template.settings:
index.number_of_shards: 3 # 指定下载数
output.console: # 控制台输出
pretty: true # 启用美化功能
enable: true