Webhook connector and action


Webhook connector and actionedit

The Webhook connector uses axios to send a POST or PUT request to a web service.

Connector configurationedit

Webhook connectors have the following configuration properties.

The name of the connector. The name is used to identify a connector in the management UI connector listing, or in the connector list when configuring an action.
The request URL. If you are using the xpack.actions.allowedHosts setting, make sure the hostname is added to the allowed hosts.
HTTP request method, either post(default) or put.
A set of key-value pairs sent as headers with the request
Require authentication
If true, a username and password for login type authentication must be provided.
Username for HTTP basic authentication.
Password for HTTP basic authentication.

Connector networking configurationedit

Use the Action configuration settings to customize connector networking configurations, such as proxies, certificates, or TLS settings. You can set configurations that apply to all your connectors or use xpack.actions.customHostSettings to set per-host configurations.

Preconfigured connector typeedit

   name: preconfigured-webhook-connector-type
   actionTypeId: .webhook
     url: https://test.host
     method: post
       testheader: testvalue
     user: testuser
     password: passwordkeystorevalue

Config defines information for the connector type.

A URL string that corresponds to URL.
A string that corresponds to Method.
A record<string, string> that corresponds to Headers.
A boolean that corresponds to Requires authentication. If true, this connector will require values for user and password inside the secrets configuration. Defaults to true.

Secrets defines sensitive information for the connector type.

A string that corresponds to User. Required if hasAuth is set to true.
A string that corresponds to Password. Should be stored in the Kibana keystore. Required if hasAuth is set to true.

Define connector in Stack Managementedit

Define Webhook connector properties.

Webhook connector

Test Webhook action parameters.

Webhook params test

Action configurationedit

Webhook actions have the following properties.


A JSON payload sent to the request URL. For example:

  "short_description": "{{context.rule.name}}",
  "description": "{{context.rule.description}}",

Mustache template variables (the text enclosed in double braces, for example, context.rule.name) have their values escaped, so that the final JSON will be valid (escaping double quote characters). For more information on Mustache template variables, refer to Action type and details.