# Does Heartbeat have feature like Logstash pipeline?

**URL:** <https://discuss.elastic.co/t/does-heartbeat-have-feature-like-logstash-pipeline/292793>\
**Category:** Beats\
**Tags:** heartbeat\
**Created:** [December 23, 2021, 9:57am UTC](https://discuss.elastic.co/t/does-heartbeat-have-feature-like-logstash-pipeline/292793 "2021-12-23T09:57:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ray\_Lin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ray_lin/32/81145_2.png) [@Ray\_Lin](https://discuss.elastic.co/u/Ray_Lin)\
**Post date:** [December 23, 2021, 9:57am UTC](https://discuss.elastic.co/t/does-heartbeat-have-feature-like-logstash-pipeline/292793/1 "2021-12-23T09:57:07Z")

</div>

Hi,  
I am trying to monitor a healthcheck url but it has to first call a token API to get the token then pass the token value to the next healthcheck API which I actually want to monitor.

In the past, I'm using Logstash http-poller to call a token API to get a new token then pass the token to the next pipeline's http-poller to call the healthcheck API with the token in the header.

As I known about heartbeat. There's not any feature like I mentioned above. So how to manage this kind of token expiration problem when monitor URL which has to request with token?

---

<div class="post-metadata">

**Author:** ![AquaX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aquax/32/92006_2.png) [@AquaX](https://discuss.elastic.co/u/AquaX)\
**Post date:** [December 23, 2021, 3:06pm UTC](https://discuss.elastic.co/t/does-heartbeat-have-feature-like-logstash-pipeline/292793/2 "2021-12-23T15:06:33Z")

</div>

The filebeat [HTTPJSON](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-httpjson.html#_auth_oauth2_enabled) input has the ability to use an OAuth2 token.  
Would that work for you?

---

<div class="post-metadata">

**Author:** ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)\
**Post date:** [December 24, 2021, 3:00pm UTC](https://discuss.elastic.co/t/does-heartbeat-have-feature-like-logstash-pipeline/292793/3 "2021-12-24T15:00:58Z")

</div>

I don't know what do you need exactly, but there was development around the HTTPJSON recently: [Salesforce auth support](https://github.com/elastic/beats/pull/29087).

---

<div class="post-metadata">

**Author:** ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)\
**Post date:** [January 12, 2022, 8:30pm UTC](https://discuss.elastic.co/t/does-heartbeat-have-feature-like-logstash-pipeline/292793/4 "2022-01-12T20:30:19Z")

</div>

Heartbeat doesn't really support that yet, but we'd like to with API journeys eventually! See the following issue: [Multi Step API Journeys · Issue #137 · elastic/synthetics · GitHub](https://github.com/elastic/synthetics/issues/137)

---

<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:** [February 9, 2022, 10:30pm UTC](https://discuss.elastic.co/t/does-heartbeat-have-feature-like-logstash-pipeline/292793/5 "2022-02-09T22:30:55Z")

</div>

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