# Beat to index HTTP output

**URL:** <https://discuss.elastic.co/t/beat-to-index-http-output/179375>\
**Category:** Beats\
**Created:** [May 2, 2019, 1:50pm UTC](https://discuss.elastic.co/t/beat-to-index-http-output/179375 "2019-05-02T13:50:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![coudenysj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/coudenysj/32/23108_2.png) [@coudenysj](https://discuss.elastic.co/u/coudenysj)\
**Post date:** [May 2, 2019, 1:50pm UTC](https://discuss.elastic.co/t/beat-to-index-http-output/179375/1 "2019-05-02T13:50:14Z")

</div>

Hi all,

I was wondering if there is a beat which can periodically call a HTTP endpoint which outputs JSON, and index that data straight into Elasticsearch?

This is useful for PHP opcache information, for instance (which must be fetched over the HTTP layer).

Regards,  
Jachim

---

<div class="post-metadata">

**Author:** ![aloulo47](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@aloulo47](https://discuss.elastic.co/u/aloulo47)\
**Post date:** [May 2, 2019, 2:21pm UTC](https://discuss.elastic.co/t/beat-to-index-http-output/179375/2 "2019-05-02T14:21:56Z")

</div>

I think heartbeat can help you

---

<div class="post-metadata">

**Author:** ![coudenysj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/coudenysj/32/23108_2.png) [@coudenysj](https://discuss.elastic.co/u/coudenysj)\
**Post date:** [May 2, 2019, 2:32pm UTC](https://discuss.elastic.co/t/beat-to-index-http-output/179375/3 "2019-05-02T14:32:29Z")

</div>

Thanks for the suggestion, but I don't think it is specific enough.

I think I will create my own beat (with [https://github.com/kozlice/phpfpmbeat](https://github.com/kozlice/phpfpmbeat) as an example).

---

<div class="post-metadata">

**Author:** ![aloulo47](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@aloulo47](https://discuss.elastic.co/u/aloulo47)\
**Post date:** [May 2, 2019, 2:35pm UTC](https://discuss.elastic.co/t/beat-to-index-http-output/179375/4 "2019-05-02T14:35:18Z")

</div>

yeah you can create your own beat with your own logic is not difficult to do i have already created a beat for a specific use case good luck than

---

<div class="post-metadata">

**Author:** ![martinr\_ubi](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@martinr\_ubi](https://discuss.elastic.co/u/martinr_ubi)\
**Post date:** [May 2, 2019, 8:59pm UTC](https://discuss.elastic.co/t/beat-to-index-http-output/179375/5 "2019-05-02T20:59:29Z")

</div>

@coudenysj  
this is a native feature of metricbeat.  
both polling a http endpoint and being a http endpoint that you can push into.

[https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-http.html](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-http.html)

I use it myself to poll the endpoints of some application and ship that into es. The /metrics of flume comes to mind as an example I use. as there is no flume module.

---

<div class="post-metadata">

**Author:** ![coudenysj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/coudenysj/32/23108_2.png) [@coudenysj](https://discuss.elastic.co/u/coudenysj)\
**Post date:** [May 6, 2019, 8:09am UTC](https://discuss.elastic.co/t/beat-to-index-http-output/179375/6 "2019-05-06T08:09:01Z")

</div>

@martinr_ubi awesome! Thanks, I'll take a look at 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:** [June 3, 2019, 10:09am UTC](https://discuss.elastic.co/t/beat-to-index-http-output/179375/7 "2019-06-03T10:09:08Z")

</div>

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