# Heartbeat should support context passing

**URL:** <https://discuss.elastic.co/t/heartbeat-should-support-context-passing/77241>\
**Category:** Beats\
**Tags:** heartbeat\
**Created:** [March 3, 2017, 1:29am UTC](https://discuss.elastic.co/t/heartbeat-should-support-context-passing/77241 "2017-03-03T01:29:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anjia0532](https://avatars.discourse-cdn.com/v4/letter/a/2bfe46/32.png) [@anjia0532](https://discuss.elastic.co/u/anjia0532)\
**Post date:** [March 3, 2017, 1:29am UTC](https://discuss.elastic.co/t/heartbeat-should-support-context-passing/77241/1 "2017-03-03T01:29:07Z")

</div>

I want to monitor the web service

1. login

2. do somethings with cookies/params (login response)

I don't know how to do it.

zabbix it's easy do that

---

<div class="post-metadata">

**Author:** ![anjia0532](https://avatars.discourse-cdn.com/v4/letter/a/2bfe46/32.png) [@anjia0532](https://discuss.elastic.co/u/anjia0532)\
**Post date:** [March 3, 2017, 1:32am UTC](https://discuss.elastic.co/t/heartbeat-should-support-context-passing/77241/2 "2017-03-03T01:32:07Z")

</div>

use [processors](https://www.elastic.co/guide/en/beats/heartbeat/current/configuration-processors.html) ?

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [March 3, 2017, 4:58pm UTC](https://discuss.elastic.co/t/heartbeat-should-support-context-passing/77241/3 "2017-03-03T16:58:47Z")

</div>

> 1. login

You can `Username`, `Password` for use with HTTP-Authentication or send your own HTTP headers with authentication details.

> 1. cookies

Cookies are not supported yet (feel free to open an [enhancement request](https://github.com/elastic/beats/issues))

> 1. login response

one can pass custom parameters in a request + do some plain validation of the response. What exactly is it you want to configure and validate?

---

<div class="post-metadata">

**Author:** ![anjia0532](https://avatars.discourse-cdn.com/v4/letter/a/2bfe46/32.png) [@anjia0532](https://discuss.elastic.co/u/anjia0532)\
**Post date:** [March 4, 2017, 3:18am UTC](https://discuss.elastic.co/t/heartbeat-should-support-context-passing/77241/4 "2017-03-04T03:18:40Z")

</div>

@steffens thanks

i want to monitor process

req-\>a-\>resp(rep param `param_a`)-\>req(with `param_a`)-\>b-\>.....

not only monitor separate url

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [March 11, 2017, 6:03pm UTC](https://discuss.elastic.co/t/heartbeat-should-support-context-passing/77241/5 "2017-03-11T18:03:17Z")

</div>

this sounds like you want use heartbeat to script some common behavior? But then how do you want to pass/process parameters? do HTTP PUSH, process json... I don't get the full context from your description, but looks somewhat out of scope right now.

---

<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:** [April 8, 2017, 6:03pm UTC](https://discuss.elastic.co/t/heartbeat-should-support-context-passing/77241/6 "2017-04-08T18:03:39Z")

</div>

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