Http_poller and dynamic time variable

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

1 Like

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.

1 Like

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