xMatters connector and action

edit

xMatters connector and action

edit

The xMatters connector uses the xMatters Workflow for Elastic to send actionable alerts to on-call xMatters resources.

Create connectors in Kibana

edit

You can create connectors in Stack Management > Connectors or as needed when you’re creating a rule. You must choose between basic and URL authentication for the requests.

xMatters connector with basic authentication
xMatters connector with url authentication
Connector configuration
edit

xMatters connectors have the following configuration properties:

Name
The name of the connector.
Authentication Type
The type of authentication used in the request made to xMatters.
URL
The request URL for the Elastic Alerts trigger in xMatters. If you are using the xpack.actions.allowedHosts setting, make sure the hostname is added to the allowed hosts.
Username
Username for HTTP Basic Authentication.
Password
Password for HTTP Basic Authentication.

Create preconfigured connectors

edit

If you are running Kibana on-prem, you can define connectors by adding xpack.actions.preconfigured settings to your kibana.yml file. For example:

Connector using Basic Authentication

xpack.actions.preconfigured:
  my-xmatters:
    name: preconfigured-xmatters-connector-type
    actionTypeId: .xmatters
    config:
      configUrl: https://test.host
      usesBasic: true
    secrets:
      user: testuser
      password: passwordkeystorevalue

Connector using URL Authentication

xpack.actions.preconfigured:
  my-xmatters:
    name: preconfigured-xmatters-connector-type
    actionTypeId: .xmatters
    config:
      usesBasic: false
    secrets:
      secretsUrl: https://test.host?apiKey=1234-abcd

Config defines information for the connector type:

configUrl
A URL string that corresponds to URL. Only used if usesBasic is true.
usesBasic
A boolean that corresponds to Authentication Type. 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:

user
A string that corresponds to User. Required if usesBasic is set to true.
password
A string that corresponds to Password. Should be stored in the Kibana keystore. Required if usesBasic is set to true.
secretsUrl
A URL string that corresponds to URL. Only used if usesBasic is false, indicating the API key is included in the URL.

Test connectors

edit

You can test connectors with the run connector API or as you’re creating or editing the connector in Kibana. For example:

xMatters params test

xMatters rules have the following properties:

Severity
Severity of the rule.
Tags
Comma-separated list of tags for the rule as provided by the user in Elastic.

Connector networking configuration

edit

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.

Configure xMatters

edit

By integrating with xMatters, you can:

  1. Leverage schedules, rotations, escalations, and device preferences to quickly engage the right resources.
  2. Allow resolvers to take immediate action with customizable notification responses, including incident creation.
  3. Reduce manual tasks so teams can streamline their resources and focus.
Prerequisites
edit

To use the Elastic xMatters connector either install the Elastic workflow template, or add the Elastic Alerts trigger to one of your existing xMatters flows. Once the workflow or trigger is in your xMatters instance, configure Elastic to send alerts to xMatters.

  1. In xMatters, double-click the Elastic trigger to open the settings menu.
  2. Choose the authentication method and set your authenticating user.
  3. Copy the initiation URL.
  4. In Elastic, open the xMatters connector.
  5. Set the authentication method, then paste the initiation URL.

Note: If you use basic authentication, specify the Web / App Login ID in the user credentials for the connector. This value can be found in the Edit Profile modal in xMatters for each user. For detailed configuration instructions, see xMatters online help