Simple Watcher Webhook

Hi Team

I am using Elastic Hosted and trying to create a simple Watcher Webhook alert and I cannot find an example anywhere of using the kibana interface of a simple Webhook using the UI. Can anyone point me in the direction of this? The documentation refers to more complex Json. I assume I am missing something obvious but there are no examples or samples of using the kibana Watcher webhook UI.

I want to see if I can train some of the team to be able to customise easily but there are not examples and no matter what I try I get the following error.

[instance-0000000002] failed to execute action [inlined/webhook_1] https: Name or service not known at Method) ~[?:?] at$PlatformNameService.lookupAllHostAddr( ~[?:?] at ~[?:?] at$NameServiceAddresses.get( ~[?:?] at ~[?:?] at ~[?:?] at ~[?:?] at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve( ~[httpclient-4.5.8.jar:4.5.8] at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect( ~[httpclient-4.5.8.jar:4.5.8] at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect( ~[httpclient-4.5.8.jar:4.5.8] at org.apache.http.impl.execchain.MainClientExec.establishRoute( ~[httpclient-4.5.8.jar:4.5.8] at org.apache.http.impl.execchain.MainClientExec.execute( ~[httpclient-4.5.8.jar:4.5.8] at org.apache.http.impl.execchain.ProtocolExec.execute( ~[httpclient-4.5.8.jar:4.5.8] at org.apache.http.impl.execchain.RetryExec.execute( ~[httpclient-4.5.8.jar:4.5.8] at org.apache.http.impl.execchain.RedirectExec.execute( ~[httpclient-4.5.8.jar:4.5.8] at org.apache.http.impl.client.InternalHttpClient.doExecute( ~[httpclient-4.5.8.jar:4.5.8] at org.apache.http.impl.client.CloseableHttpClient.execute( ~[httpclient-4.5.8.jar:4.5.8] at org.elasticsearch.xpack.watcher.common.http.HttpClient.lambda$execute$1( ~[?:?] at Method) ~[?:?] at org.elasticsearch.xpack.core.common.socket.SocketAccess.doPrivileged( ~[x-pack-core-7.3.1.jar:7.3.1] at org.elasticsearch.xpack.watcher.common.http.HttpClient.execute( ~[?:?] at org.elasticsearch.xpack.watcher.actions.webhook.ExecutableWebhookAction.execute( ~[?:?] at org.elasticsearch.xpack.core.watcher.actions.ActionWrapper.execute( [x-pack-core-7.3.1.jar:7.3.1] at org.elasticsearch.xpack.watcher.execution.ExecutionService.executeInner( [x-pack-watcher-7.3.1.jar:7.3.1] at org.elasticsearch.xpack.watcher.execution.ExecutionService.execute( [x-pack-watcher-7.3.1.jar:7.3.1] at org.elasticsearch.xpack.watcher.transport.actions.execute.TransportExecuteWatchAction$1.doRun( [x-pack-watcher-7.3.1.jar:7.3.1] at [elasticsearch-7.3.1.jar:7.3.1] at org.elasticsearch.xpack.watcher.execution.ExecutionService$ [x-pack-watcher-7.3.1.jar:7.3.1] at org.elasticsearch.common.util.concurrent.ThreadContext$ [elasticsearch-7.3.1.jar:7.3.1] at java.util.concurrent.ThreadPoolExecutor.runWorker( [?:?] at java.util.concurrent.ThreadPoolExecutor$ [?:?] at [?:?]

Hi Adam, there are a couple possible causes of this error.

  1. DNS lookup could have failed. Can you try using the IP address directly instead of the domain-name-based URL?
  2. The error also looks like the watch webhook you're trying to execute has https specified as the host. Would you mind sharing your webhook configuration, with private details obfuscated? Thanks.


Hi there

Here is my configuration it's a simple zendesk post request. Using basic auth I can make this request with curl so I am assuming I am missing something? Do I need to add anything in xpack?

Hi Hopefully not bugging you but I put the zendesk details in the following reply.

Hey Adam, sorry for the late reply. This is a flaw in our current UI, tracked here: The problem is that the "Host" field exposed by the UI does not accept a URI; it only accepts a host. So in this case, it would only accept "", and it would default to using "http" as the scheme. We need to update the UI with a "Scheme" field so that you can also choose "https".