I am having trouble getting filebeat working on Debian 9 stretch.
There error I get is:
– Unit filebeat.service has finished starting up.
– The start-up result is done.
Aug 27 19:05:46 nis-1 filebeat[10863]: Exiting: Error in initing input: type mismatch accessing ‘filebeat.inputs.0.protocol’ (source:’/etc/filebeat/filebeat.yml’)
Aug 27 19:05:46 nis-1 systemd[1]: filebeat.service: Main process exited, code=exited, status=1/FAILURE
Aug 27 19:05:46 nis-1 systemd[1]: filebeat.service: Unit entered failed state.
These are my inputs:
filebeat.inputs:
Each - is an input. Most options can be set at the input level, so
you can use different inputs for various configurations.
Below are the input specific configurations.
-
type: syslog
Change to true to enable this input configuration.
enabled: true
protocol.udp:
host: “localhost:9000”Paths that should be crawled and fetched. Glob based paths.
paths:
- /var/log/mail.log
- /var/log/mail.info
- /var/log/unifi-backup-cron.log
- /var/log/pfsense-dhcpd-101_336.log
- /var/log/pfsense-to_macserver-101_336.log
- /var/log/user.log
- /var/log/pfsense-101.log
- /var/log/pfsense-openvpn-101_336.log
- /var/log/pfsense-kernel-101_336.log
- /var/log/macserver.log
- /var/log/kern.log
- /var/log/debug
- /var/log/pfsense-filterlog-101_336.log
- /var/log/messages
- /var/log/btmp
- /var/log/auth.log
- /var/log/wtmp
- /var/log/lastlog
- /var/log/named
- /var/log/syslog
- /var/log/rsyslog_debugfmt
- /var/log/pfsense-charon-101_336.log
- /var/log/daemon.log
Any ideas?
This is my first crack at this so be easy on me