Hi Is there a way to implement a setting similar to Python requests "stream=True" setting in the Logstash http_poller plugin. I am trying to pull streaming data from Shodan using logstash and get "no upstream" errors.
I understand this happens when the "stream" type setting is not enabled which tells it to wait until the content is obtained (i believe thats how python requests stream=True works)
Here is my Logstash config
input {
http_poller {
urls => {
test1 => {
method => get
url => "https://stream.shodan.io/shodan/banners?key=API_KEY&t=json"
headers => {
"Accept-Encoding" => "gzip, deflate"
"Accept" => "*/*"
"Connection" => "keep-alive"
}
}
}
schedule => {"every" => "1s"}
codec => json
metadata_target => "http_poller_metadata"
}
}
output {
stdout => {codec =>rubydebug}
}