# Trying to set a POST in heartbeat

**URL:** <https://discuss.elastic.co/t/trying-to-set-a-post-in-heartbeat/192961>\
**Category:** Beats\
**Tags:** heartbeat\
**Created:** [July 30, 2019, 6:13pm UTC](https://discuss.elastic.co/t/trying-to-set-a-post-in-heartbeat/192961 "2019-07-30T18:13:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carlos\_Bodini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlos_bodini/32/39758_2.png) [@Carlos\_Bodini](https://discuss.elastic.co/u/Carlos_Bodini)\
**Post date:** [July 30, 2019, 6:13pm UTC](https://discuss.elastic.co/t/trying-to-set-a-post-in-heartbeat/192961/1 "2019-07-30T18:13:07Z")

</div>

hey guys,

i'm trying to set a POST monitor in heartbeat but i'm failing, maybe i'm missing something really obvious....

Here my .yml so, maybe one of you could help me to set it up?

```
heartbeat.monitors:
- type: http

  # List or urls to query
  urls: "http://server_name:4151/pub?topic=Catalog.v2.CMDS.ProcessStandardConfigs.User"
 
  check.request.method: POST 
  check.request.headers:  
  body: "{"CustomerSet": "rc1403234"}" 
    
# Configure task schedule
  schedule: '@every 30s'

  # Total test connection and data exchange timeout
  timeout: 60s

```

thanks!

---

<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:** [August 6, 2019, 7:55pm UTC](https://discuss.elastic.co/t/trying-to-set-a-post-in-heartbeat/192961/2 "2019-08-06T19:55:34Z")

</div>

At first glance this looks correct. How are you ascertaining that the method sent is not, in fact, a `POST` request?

---

<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:** [September 3, 2019, 7:55pm UTC](https://discuss.elastic.co/t/trying-to-set-a-post-in-heartbeat/192961/3 "2019-09-03T19:55:35Z")

</div>

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