I am trying to configure http_poller for logstash. But I've encountered this error.
location : /etc/logstash/conf.d/logstash_http_poller
input {
http_poller {
-
urls => {*
-
urlname => "https://randomuser.me/api"*
-
}*
headers => { Accept => "application/json" }
-
request_timeout => 60*
-
schedule => {every => "20s"}*
-
codec => "line"*
-
metadata_target => "http_poller_metadata"*
}
}
output{
elasticsearch {
-
hosts => ["http://localhost:9200"]*
-
index = "logstash_http_poller"*
}
stdout {codec => rubydebug}
}
Error.
Can anyone help me with this?