Logstash input exec

Hi all,
i have an input config which launch the exec plugin,
the program launched generates json data output , how can I put them in a index on ES?

thank you, sorry for my English

You should be able to use the json codec to have the command output parsed as JSON and the usual elasticsearch output to send the events to ES.

input {
  exec {
    command => "..."
    codec => "json"