# Heartbeat (webservice response)

**URL:** <https://discuss.elastic.co/t/heartbeat-webservice-response/249271>\
**Category:** Beats\
**Tags:** heartbeat\
**Created:** [September 20, 2020, 6:22pm UTC](https://discuss.elastic.co/t/heartbeat-webservice-response/249271 "2020-09-20T18:22:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mustafa.husny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mustafa.husny/32/77154_2.png) [@mustafa.husny](https://discuss.elastic.co/u/mustafa.husny)\
**Post date:** [September 20, 2020, 6:22pm UTC](https://discuss.elastic.co/t/heartbeat-webservice-response/249271/1 "2020-09-20T18:22:18Z")

</div>

First my ELK stack version is 7.6.2  
My approach is save the heartbeat logs and search in the body.content filed for status code , so i made the following config

- type: http  
#SOAP/HTTP  
id: my-webservice  
name: my-webservice  
urls: ["x.x.x.x"]  
check.request.method: POST  
check.request.headers:  
soapaction: 'Get'  
content-type: 'text/xml; charset=utf-8'  
check.request.body: 'soap request'  
response.include\_body: always  
response.include\_body\_max\_bytes: 2048  
processors:
  - decode\_json\_fields:  
fields: ["http.response.body.content"]  
schedule: '@every 5s'

now i can check the xml for the response and want to validate for my service response not the web status (not status 200 my service response like 35) in defined tag

how can i do this final step

---

<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:** [October 18, 2020, 6:22pm UTC](https://discuss.elastic.co/t/heartbeat-webservice-response/249271/2 "2020-10-18T18:22:25Z")

</div>

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