Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError"

Hi @hitesh_kumar,

Could you please try with below format in your output plugin?

output {
  elasticsearch { hosts => ["localhost:9200"] }
  stdout { codec => rubydebug }
}   

As its showing error in your o/p plugin.

Regards,
Harsh Bajaj