I've successfully setup logstash-forwarder without much issue on windows, but when I try to setup filebeat I get this key error. I've set the key according to:
https://www.elastic.co/guide/en/beats/filebeat/current/_logtash_forwarder_to_filebeat_migration.html
Exact Error:
outputs.go:104: ERR failed to initialize logstash plugin as output: key file not configured
beat.go:97: CRIT key file not configured
I've also tried to add "certificate-key:" as well. Same issue. Also, the supplied "filebeat.yml" in the zip package has an invalid control character at Line: 1, Column: 1. You can configure that file until the cows come home but it won't work properly.
This is the error using that file produces:
YAML config parsing failed on ./filebeat.yml: yaml: control characters are not allowed. Exiting
I hate YAML so much you don't even know... Give me curlies any day...
This is my config.
filebeat:
prospectors:
-
paths:
- c:\logstash\Output\*.log
type: log
fields:
sourcename: vdidaily
ignore_older: 24h
registry_file: C:\ProgramData\Filebeat\registry
output:
logstash:
enabled: true
hosts:
- 10.170.8.124:5000
index: logstash
tls:
certificate: c:\logstashcrt\Test2\logstash-forwarder.crt
certificate-ssl: c:\logstashcrt\Test2\logstash-forwarder.key
certificate-authorities:
- c:\logstashcrt\Test2\logstash-forwarder.crt
timeout: 40