How to use curl command to input data into logstash

Hi All,

I have a curl command which works fine but I have trouble using that curl command in the json format. Please guide on how to correct this script to output the data.

input {
exec {
command => "curl -X 'POST'
-H 'accept: application/json'
-H 'x-API-Key: #####'
-H 'x-API-Id: #####'
-d '' -vvv"

      codec => "json"
      schedule => {every =>"10s"}


output {
stdout {codec => rubydebug}


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.