# Http\_poller - URL - VAR

**URL:** <https://discuss.elastic.co/t/http-poller-url-var/368123>\
**Category:** Logstash\
**Created:** [October 2, 2024, 11:14am UTC](https://discuss.elastic.co/t/http-poller-url-var/368123 "2024-10-02T11:14:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![francieliton\_araujo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/francieliton_araujo/32/47771_2.png) [@francieliton\_araujo](https://discuss.elastic.co/u/francieliton_araujo)\
**Post date:** [October 2, 2024, 11:14am UTC](https://discuss.elastic.co/t/http-poller-url-var/368123/1 "2024-10-02T11:14:23Z")

</div>

Can you help me, I'm making a request using HTTP however due to the API limitation I need to insert a date and this date needs to vary.  
I need the date to always be updated to the current date minus 1 hour.

url =\> "[https://teste/teste/events?modifyDate=2000-12-12T12:00:00.123Z&orderByLoggedDateDesc=true&maxRecords=1000&eventType=INCIDENT&eventStatus=OPEN&disableExceptionOnMaxRecords=true&fields=csgShortCode,eventRef,modifyDate,dateLogged,eventStatus,assignedServDept[name],assignedServDept[shortCode],formattedReference,loggingServDept[name],loggingServDept[shortCode],loggingUser[name],loggingUser[shortCode],affectedUserName,assignedUser[name],assignedUser[shortCode],itemA[name],category[name],userStatus[name],resolutionDue,originalAssignedServDeptSC,webCustomPropertiesDescription](https://teste/teste/events?modifyDate=2000-12-12T12:00:00.123Z&orderByLoggedDateDesc=true&maxRecords=1000&eventType=INCIDENT&eventStatus=OPEN&disableExceptionOnMaxRecords=true&fields=csgShortCode,eventRef,modifyDate,dateLogged,eventStatus,assignedServDept%5Bname%5D,assignedServDept%5BshortCode%5D,formattedReference,loggingServDept%5Bname%5D,loggingServDept%5BshortCode%5D,loggingUser%5Bname%5D,loggingUser%5BshortCode%5D,affectedUserName,assignedUser%5Bname%5D,assignedUser%5BshortCode%5D,itemA%5Bname%5D,category%5Bname%5D,userStatus%5Bname%5D,resolutionDue,originalAssignedServDeptSC,webCustomPropertiesDescription)"

2000-12-12T12:00:00.123Z this data needs to be updated with each new query

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [October 2, 2024, 2:29pm UTC](https://discuss.elastic.co/t/http-poller-url-var/368123/2 "2024-10-02T14:29:24Z")

</div>

You cannot easily modify the request parameters of an input. For more details see [here](https://discuss.elastic.co/t/get-service-now-com-data/244320).

If you are OK with restarting logstash each time you could use preset an environment variable with the date and reference that in the input.
