# Logstash http poller input not able to dynamically update the current date

**URL:** https://discuss.elastic.co/t/logstash-http-poller-input-not-able-to-dynamically-update-the-current-date/353890
**Category:** Logstash
**Created:** [February 22, 2024, 1:40pm UTC](https://discuss.elastic.co/t/logstash-http-poller-input-not-able-to-dynamically-update-the-current-date/353890 "2024-02-22T13:40:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![rajatbhardwaj1393](https://avatars.discourse-cdn.com/v4/letter/r/b3f665/32.png) [@rajatbhardwaj1393](https://discuss.elastic.co/u/rajatbhardwaj1393)
#### Post date: [February 22, 2024, 1:40pm UTC](https://discuss.elastic.co/t/logstash-http-poller-input-not-able-to-dynamically-update-the-current-date/353890/1 "2024-02-22T13:40:42Z")

</div>

trying to update dynamically date in post request in http\_poller. Its not updating.

Using below code  
"range": {  
"ProjectHistories.ProjectHistoryModified": {  
"gte": "%{+yyyy-MM-dd'T'00:00:00}",  
"lte": "%{+yyyy-MM-dd'T'23:59:59}"  
}

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [February 22, 2024, 1:48pm UTC](https://discuss.elastic.co/t/logstash-http-poller-input-not-able-to-dynamically-update-the-current-date/353890/2 "2024-02-22T13:48:05Z")

</div>

> [@rajatbhardwaj1393](#):
>
> trying to update dynamically date in post request in http\_poller. Its not updating.

I don't think this is supported, once the http poller input is started it will not change.

---

<div class="post-metadata">

### Author: ![rajatbhardwaj1393](https://avatars.discourse-cdn.com/v4/letter/r/b3f665/32.png) [@rajatbhardwaj1393](https://discuss.elastic.co/u/rajatbhardwaj1393)
#### Post date: [February 22, 2024, 1:56pm UTC](https://discuss.elastic.co/t/logstash-http-poller-input-not-able-to-dynamically-update-the-current-date/353890/3 "2024-02-22T13:56:02Z")

</div>

so what can be the possible solution to do it

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 21, 2024, 1:56pm UTC](https://discuss.elastic.co/t/logstash-http-poller-input-not-able-to-dynamically-update-the-current-date/353890/4 "2024-03-21T13:56:09Z")

</div>

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