Hi all, i have config logstash like this
input {
http_poller {
urls => {
users => {
method => GET
user => "user@gmail.com"
password => "password"
url => "https://api.id/api/report/product"
headers => {
"Content-Type" => "application/json"
Authorization => "bearer token"
}
}
}
request_timeout => 60
schedule => { every => "20s"}
codec => "json"
type => "Http_poller"
}
}
filter {
split {
field => "[result][data][products]"
}
split {
field => "[result][data][products][loctypes]"
}
}
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "products"
}
stdout {
codec => rubydebug
}
}
and the result in discover kibana like this
Any one can help me?