However I need to run this same request over an array of ids. I can loop over them with a ruby filter but I can't find a way to make the http request and put the results in a new array of the same length. Is this possible?
mutate {
split => {"ids" => ","}
}
ruby {
event.get('ids').each do |item|
## make get request to 'http://my.api.com/api/v1/item' with auth header
## and put the response in a new array
}
One new event will be created for each id, and you will be able to apply on him the filter http.
The downside of this solution is that you will have a lot more events than initialy, and if you have a lot of data passing through, it may be problematic in term of storage.
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.