CRIT No outputs are defined

I am new with logstash, I am using logstash 1.5.4, and I am using filebeats to read files
and foward to logstash pipeline
I already installed filebeat input plugin, and started filebeat using systemctl.
and I started the filebeat process using filebeat -c /etc/filebeat/filebeat_test.yml
In the filebeat configuration yml file, I put logstash output section like this:
output:
logstash:
hosts: ["dev-elkstack2:5044"]
index: filebeat

I also wrote the logstash configuration file like the following, and the pipleline

input {
beats {
port => 5044
}
}
output {
stdout { codec => rubydebug }
}

but when I start the filebeats by
filebeat -c /etc/filebeat/filebeat_test.yml
it says:

beat.go:97: CRIT No outputs are defined. Please define one under the output section.

Could you tell me which part is wrong?

YAML is picky about the indentation of lines. Have you indented them properly according to the examples in the documentation? We can't tell from what you've posted about since leading spaces are stripped unless you format the text block as code (which you always should do for configuration file snippets).

1 Like

Yes, you are right, I didn't pay attention to the indentations.