Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of #, ,, ]

try like this and check the response.

input{stdin{}}output{stdout{}}

If this works,
use localhost in place of 127.0.0.1