Logstash 2.3.4 getting stuck while attempting to install template in elasticsearch

I modified my output plugin as follows:-

output {

  if [env] == "prod" or [env] == "common" {
    stdout { codec => rubydebug }
  }
}

Logstash log said:-
Pipeline main started {:file=>"logstash/agent.rb",:line=>"473", :method=>"start_pipeline"}

Also I started getting data on the stdout.

We are using transport protocol so we are using elasticsearch_java output.