Code sample for outputting Logstash debug information to standard output

How to enable logstash debug to stdout?
I’m struggling to set up logstash for an AWS EC2 elasticsearch cluster.
The log event’s field is usually in string form, since most logger statements are strings.

logstash debug to stdout

    output {
      stdout { codec => json }

Frequently Asked Questions