Logstash input exec


(FREDERIC) #1

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


(Magnus B├Ąck) #2

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"
  }
}

(system) #3