Http poller output

I have an API that returns several objects. Currently the output is getting each item and sending it individually.

Is there a way to send the entire JSON from the initial http poller?

I am trying to utilize the http poller to fetch data from a rest call, then in logstash I am referencing it by using a elasticsearch filter (seems janky the way I am doing this...) would an http filter better suite this? Only reason I didn't go down that route yet is because I don't know if the http filter attempts to call the rest api on each event, or if it's cached for a certain period of time.

Thanks,
Raged.

I was able to modify the API call to get the data returned as an object by appending:

_return_as_object=1

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.