# Filebeat HTTP JSON with epochtime

**URL:** <https://discuss.elastic.co/t/filebeat-http-json-with-epochtime/263318>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 5, 2021, 12:31am UTC](https://discuss.elastic.co/t/filebeat-http-json-with-epochtime/263318 "2021-02-05T00:31:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![seefor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seefor/32/82466_2.png) [@seefor](https://discuss.elastic.co/u/seefor)\
**Post date:** [February 5, 2021, 12:31am UTC](https://discuss.elastic.co/t/filebeat-http-json-with-epochtime/263318/1 "2021-02-05T00:31:33Z")

</div>

Can filebeat be configured to pass epoch time every 15 minutes?

filebeat.inputs:

- type: httpjson  
url: [https://api.ipify.org/?format=json&t0=epochtime-15minutes&t1=epochtimenow](https://api.ipify.org/?format=json&t0=epochtime-15minutes&t1=epochtimenow)

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [February 5, 2021, 4:11pm UTC](https://discuss.elastic.co/t/filebeat-http-json-with-epochtime/263318/2 "2021-02-05T16:11:24Z")

</div>

No, unfortunately, it's not possible.

---

<div class="post-metadata">

**Author:** ![seefor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seefor/32/82466_2.png) [@seefor](https://discuss.elastic.co/u/seefor)\
**Post date:** [February 5, 2021, 5:53pm UTC](https://discuss.elastic.co/t/filebeat-http-json-with-epochtime/263318/3 "2021-02-05T17:53:49Z")

</div>

Thanks

---

<div class="post-metadata">

**Author:** ![Marius\_Iversen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_iversen/32/68988_2.png) [@Marius\_Iversen](https://discuss.elastic.co/u/Marius_Iversen)\
**Post date:** [February 9, 2021, 2:32pm UTC](https://discuss.elastic.co/t/filebeat-http-json-with-epochtime/263318/4 "2021-02-09T14:32:12Z")

</div>

Hello @seefor . The httpjson input will have this functionality in a upcoming release (which release might change over time, just adding that here), adding lots of new features including what you are looking for, the new docs should be available here: [HTTP JSON input | Filebeat Reference [7.11] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/7.11/filebeat-input-httpjson.html)

An example for your usecase, if you just want to run a get request (did not test it, so might need some tweaks):

```
filebeat.inputs:
- type: httpjson
  config_version: 2
  request.url: https://api.ipify.org/?format=json
  request.method: GET
  request.transforms:|
  - set:
        target: url.params.t0
        value: '[[formatDate (now (parseDuration "-15m")) "UnixDate"]]'
    - set:
        target: url.params.t1
        value: '[[formatDate (now) "UnixDate"]]'

```

There is lots of other features as well, easier pagination, object splitting, possibility to keep state (like using the timestamp from the last response in the next request etc).

---

<div class="post-metadata">

**Author:** ![seefor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seefor/32/82466_2.png) [@seefor](https://discuss.elastic.co/u/seefor)\
**Post date:** [February 9, 2021, 7:06pm UTC](https://discuss.elastic.co/t/filebeat-http-json-with-epochtime/263318/5 "2021-02-09T19:06:21Z")

</div>

WOW, this is going to be fun!  
Thank you so much @Marius_Iversen, do you know when that release drop?

> There is lots of other features as well, easier pagination, object splitting, possibility to keep state (like using the timestamp from the last response in the next request etc).

O man you read my mind, I was about to ask that next 🙂

---

<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 9, 2021, 9:07pm UTC](https://discuss.elastic.co/t/filebeat-http-json-with-epochtime/263318/6 "2021-03-09T21:07:10Z")

</div>

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