What's the rule on spacing? Below are two different spacing scenarios and the related errors for logstash as an output.
#----------------------------- Logstash output --------------------------------
# Zero space in front of "output.logstash:", 2 spaces in front of all #subsequent settings
> output.logstash:
> enabled: true
> hosts: ["x.x.x.x:1234"]
> worker: 32
> compression_level: 3
> escape_html: true
> pipelining: 5
> max_retries: -1
> bulk_max_size: 8192
Command
sudo auditbeat setup --template -E output.logstash.enabled=false
Error
Exiting: error loading config file: yaml: line 137: did not find expected key
#----------------------------- Logstash output --------------------------------
# 1 space in front of "output.logstash:", 3 spaces in front of all # #subsequent settings
> output.logstash:
> enabled: true
> hosts: ["x.x.x.x:1234"]
> worker: 32
> compression_level: 3
> escape_html: true
> pipelining: 5
> max_retries: -1
> bulk_max_size: 8192
Command
sudo auditbeat setup --template -E output.logstash.enabled=false
Error
Exiting: error initializing publisher: No outputs are defined. Please define one under the output section.