While starting Filebeat getting below error
Error:
Starting filebeat: Exiting: error unpacking config data: can not convert 'string' into 'object' accessing 'output.logstash' (source:'/etc/filebeat/filebeat.yml') accessing 'output' (source:'/etc/filebeat/filebeat.yml')
Please find the config of filebeat.yml
filebeat.inputs:
- type: log
enabled: true
paths:- /tomcat/tomcat0/logs/catalina.out
- /tomcat/tomcat1/logs/catalina.out
- /tomcat/tomcat2/logs/catalina.out
multiline.pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}'
multiline.negate: true
multiline.match: after
output.logstash:
hosts:["192.168.1.172:7606"]