Hi ,
i want to receive data through HTTP requests using logstash.
my file.conf look like this :
input {
http_poller {
urls => {
url => "http://api.v4.boosterbc.net/suggest/cities?term=hamma&lang=fr "
}
request_timeout => 60
schedule => { every => "20s"}
codec => "line"
}
A comment: the response of the API you're targeting is JSON.
You can use codec => json to convert it into a valid structured JSON document (and it will be indexed as such).
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.