# Watcher: \[parse\_exception\] could not parse action \[Monitor/webhook\]. unknown action type \[method\]

**URL:** https://discuss.elastic.co/t/watcher-parse-exception-could-not-parse-action-monitor-webhook-unknown-action-type-method/120621
**Category:** Elasticsearch
**Tags:** elastic-stack-alerting
**Created:** [February 20, 2018, 11:20am UTC](https://discuss.elastic.co/t/watcher-parse-exception-could-not-parse-action-monitor-webhook-unknown-action-type-method/120621 "2018-02-20T11:20:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![annk](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@annk](https://discuss.elastic.co/u/annk)
#### Post date: [February 20, 2018, 11:20am UTC](https://discuss.elastic.co/t/watcher-parse-exception-could-not-parse-action-monitor-webhook-unknown-action-type-method/120621/1 "2018-02-20T11:20:25Z")

</div>

"actions": {  
"log\_error": {  
"logging": {  
"text": "Service Down"  
}  
},  
"webhook" : {  
"method" : "POST",  
"url" : "[https://servicenow.com/api/incidents?actionUser=user](https://servicenow.com/api/incidents?actionUser=user)",  
"body" : "{{ctx.watch\_id}}:{{ctx.payload.hits.total}}",  
"auth" : {  
"basic" : {  
"username" : "TEST\_User",  
"password" : "Password"  
}  
}  
}  
},

I keep getting getting _Watcher: [parse\_exception] could not parse action [Monitor/webhook]. unknown action type [method]_ when I try to setup a webhook action.

Any idea why I am getting this error ?

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [February 20, 2018, 1:20pm UTC](https://discuss.elastic.co/t/watcher-parse-exception-could-not-parse-action-monitor-webhook-unknown-action-type-method/120621/2 "2018-02-20T13:20:39Z")

</div>

Hey,

the `webhook` action does not have a name, but needs one - like the `log_error` for the `logging` action you need a name.

--Alex

---

<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: [March 20, 2018, 1:20pm UTC](https://discuss.elastic.co/t/watcher-parse-exception-could-not-parse-action-monitor-webhook-unknown-action-type-method/120621/3 "2018-03-20T13:20:42Z")

</div>

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