Http_poller and dynamic time variable

(Larry G Wapnitsky ) #1

I have need to pull from an API where the time variables (start and end) need to be specified for a specific range in UTC format.

What is the proper way to pull these from the system, as they are not environmental variables? Is it possible to embed a ruby script into the poller section so that these variables can be generated?

Example of the api call:

https://api.cloudflare.com/client/v4/zones/SITEKEY/logs/received?start=2019-04-18T13:30:00Z&end=2019-04-18T13:35:00Z

#2

You cannot do that with an http_poller input. However, you could use http_poller just for its scheduler (or exec, or something else that has a scheduler option), then use an http filter to make the request.

(system) closed #3

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