# Timestamp operation in http\_poller input

**URL:** https://discuss.elastic.co/t/timestamp-operation-in-http-poller-input/65033
**Category:** Logstash
**Created:** [November 4, 2016, 5:24pm UTC](https://discuss.elastic.co/t/timestamp-operation-in-http-poller-input/65033 "2016-11-04T17:24:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![eclionast](https://avatars.discourse-cdn.com/v4/letter/e/ecb155/32.png) [@eclionast](https://discuss.elastic.co/u/eclionast)
#### Post date: [November 4, 2016, 5:24pm UTC](https://discuss.elastic.co/t/timestamp-operation-in-http-poller-input/65033/1 "2016-11-04T17:24:11Z")

</div>

Hello,

We are trying to pull timed data from a server with logstash's http\_poller input plugin with an interval of one hour.  
The server need a header named "start" which should be the time when the request is sent minus one hour (so we do't have recurrent data).

here is our input's config

`input { http_poller { urls => { url_source = { method => get url => "http://localhost:8080" headers => { start => "the timestamp should be here" } } } interval => 3600 } }`

Is there a way to get the current timestamp and substract one hour so we can add it in the headers ?  
Or should we implement some logic on the server side ?

Thanks you very much.

Best,

Eclionast

---

<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: [July 6, 2017, 4:31am UTC](https://discuss.elastic.co/t/timestamp-operation-in-http-poller-input/65033/2 "2017-07-06T04:31:00Z")

</div>


