Hi all, i am trying file configuration logstash like this
input {
http_poller {
urls => {
users => {
method => get
user => "user"
password => "password"
url => "https://example-api.id/api/products?graphql={ code,brand,desc,qty,id,createdAt,updatedAt,money,status,transferservice,balanceservice,purchasecontractd, loctypes { description }, prequisitionds { qty}, categories { desc }, units { desc }, pods { qty} }"
headers => {
"Content-Type" => "application/json"
Authorization => "Bearer token"
}
}
}
request_timeout => 60
schedule => { every => "20s"}
codec => "json"
type => "Http_poller"
}
}
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "example"
}
stdout {
codec => rubydebug
}
}
But i have eror when i run file configuration in Command Prompt
Do you have any solution?