No outputs are defined error is shown

I am using filebeat for the first time and i could see an error while starting the filebeat.

Error is as follows
[root@astropdl filebeat]# service filebeat start
Starting filebeat: Error Initialising publisher: No outputs are defined. Please define one under the output section.
2016/03/30 09:24:05.689672 beat.go:140: CRIT No outputs are defined. Please define one under the output section.

But i have commented out the output for elasticsearch and enabled it for logstash as mentioned below.

logstash:
# The Logstash hosts
hosts: ["10.209.26.147:5044"]

I found the error and fixed it.