2017-06-27 12:14:35 -04:00
|
|
|
[role="xpack"]
|
2017-04-06 20:34:23 -04:00
|
|
|
[[notification-settings]]
|
2017-06-27 12:14:35 -04:00
|
|
|
=== {watcher} Settings
|
2017-04-06 20:34:23 -04:00
|
|
|
|
2017-06-27 12:14:35 -04:00
|
|
|
You configure `xpack.notification` settings in `elasticsearch.yml` to
|
2017-06-26 13:05:36 -04:00
|
|
|
send set up {watcher} and send notifications via <<email-notification-settings, email>>,
|
2017-06-27 12:14:35 -04:00
|
|
|
<<hipchat-notification-settings, HipChat>>, <<slack-notification-settings,
|
2017-04-06 20:34:23 -04:00
|
|
|
Slack>>, and <<pagerduty-notification-settings, PagerDuty>>.
|
|
|
|
|
|
|
|
[float]
|
|
|
|
[[general-notification-settings]]
|
2017-06-27 12:14:35 -04:00
|
|
|
==== General Watcher Settings
|
2017-04-06 20:34:23 -04:00
|
|
|
`xpack.watcher.enabled`::
|
|
|
|
Set to `false` to disable {watcher}.
|
|
|
|
|
|
|
|
`xpack.http.proxy.host`::
|
|
|
|
Specifies the address of the proxy server to use to connect to HTTP services.
|
|
|
|
|
|
|
|
`xpack.http.proxy.port`::
|
|
|
|
Specifies the port number to use to connect to the proxy server.
|
|
|
|
|
2017-04-06 20:57:33 -04:00
|
|
|
`xpack.http.max_response_size`::
|
|
|
|
Specifies the maximum size a HTTP response is allowed to have, defaults to
|
|
|
|
`10mb`, max values is `50mb`.
|
|
|
|
|
2017-04-06 20:34:23 -04:00
|
|
|
[[ssl-notification-settings]]
|
|
|
|
:ssl-prefix: xpack.http
|
|
|
|
:component: {watcher}
|
|
|
|
:verifies:
|
|
|
|
:server!:
|
|
|
|
|
|
|
|
include::ssl-settings.asciidoc[]
|
|
|
|
|
|
|
|
[float]
|
|
|
|
[[email-notification-settings]]
|
2017-06-27 12:14:35 -04:00
|
|
|
==== Email Notification Settings
|
|
|
|
You can configure the following email notification settings in
|
|
|
|
`elasticsearch.yml`. For more information about sending notifications
|
2017-06-26 13:05:36 -04:00
|
|
|
via email, see {xpack-ref}/actions-email.html#configuring-email-actions[Configuring Email].
|
2017-04-06 20:34:23 -04:00
|
|
|
|
|
|
|
`xpack.notification.email.account`::
|
2017-06-27 12:14:35 -04:00
|
|
|
Specifies account information for sending notifications via email. You
|
2017-04-06 20:34:23 -04:00
|
|
|
can specify the following email account attributes:
|
|
|
|
|
|
|
|
[[email-account-attributes]]
|
2017-06-27 12:14:35 -04:00
|
|
|
`profile`;;
|
2017-06-26 13:05:36 -04:00
|
|
|
The {xpack-ref}/actions-email.html#configuring-email[email profile] to use to build the MIME
|
2017-06-27 12:14:35 -04:00
|
|
|
messages that are sent from the account. Valid values: `standard`, `gmail` and
|
2017-04-06 20:34:23 -04:00
|
|
|
`outlook`. Defaults to `standard`.
|
|
|
|
|
2017-06-27 12:14:35 -04:00
|
|
|
`email_defaults.*`;;
|
|
|
|
An optional set of email attributes to use as defaults
|
2017-06-26 13:05:36 -04:00
|
|
|
for the emails sent from the account. See {xpack-ref}/actions-email.html#email-action-attributes[
|
|
|
|
Email Action Attributes] for the supported attributes.
|
2017-04-06 20:34:23 -04:00
|
|
|
|
2017-06-27 12:14:35 -04:00
|
|
|
`smtp.auth`;;
|
|
|
|
Set to `true` to attempt to authenticate the user using the
|
2017-04-06 20:34:23 -04:00
|
|
|
AUTH command. Defaults to `false`.
|
|
|
|
|
2017-06-27 12:14:35 -04:00
|
|
|
`smtp.host`;;
|
2017-04-06 20:34:23 -04:00
|
|
|
The SMTP server to connect to. Required.
|
|
|
|
|
2017-06-27 12:14:35 -04:00
|
|
|
`smtp.port`;;
|
2017-04-06 20:34:23 -04:00
|
|
|
The SMTP server port to connect to. Defaults to 25.
|
|
|
|
|
2017-06-27 12:14:35 -04:00
|
|
|
`smtp.user`;;
|
2017-04-06 20:34:23 -04:00
|
|
|
The user name for SMTP. Required.
|
|
|
|
|
2017-06-27 12:14:35 -04:00
|
|
|
`smtp.password`;;
|
2017-04-06 20:34:23 -04:00
|
|
|
The password for the specified SMTP user.
|
|
|
|
|
2017-06-27 12:14:35 -04:00
|
|
|
`smtp.starttls.enable`;;
|
|
|
|
Set to `true` to enable the use of the `STARTTLS`
|
|
|
|
command (if supported by the server) to switch the connection to a
|
|
|
|
TLS-protected connection before issuing any login commands. Note that
|
|
|
|
an appropriate trust store must configured so that the client will
|
2017-04-06 20:34:23 -04:00
|
|
|
trust the server's certificate. Defaults to `false`.
|
|
|
|
|
2017-06-27 12:14:35 -04:00
|
|
|
`smtp.*`;;
|
|
|
|
SMTP attributes that enable fine control over the SMTP
|
|
|
|
protocol when sending messages. See
|
2017-05-18 10:51:28 -04:00
|
|
|
https://javaee.github.io/javamail/docs/api/com/sun/mail/smtp/package-summary.html[com.sun.mail.smtp]
|
2017-06-27 12:14:35 -04:00
|
|
|
for the full list of SMTP properties you can set. Note that all timeouts
|
2017-04-06 20:34:23 -04:00
|
|
|
(`writetimeout`, `connection_timeout` and `timeout`) default to 2 minutes.
|
|
|
|
|
|
|
|
`xpack.notification.email.html.sanitization.allow`::
|
|
|
|
Specifies the HTML elements that are allowed in email notifications. For
|
2017-06-27 12:14:35 -04:00
|
|
|
more information, see {xpack-ref}/actions-email.html#email-html-sanitization[Configuring HTML
|
2017-06-26 13:05:36 -04:00
|
|
|
Sanitization Options]. You can specify individual HTML elements
|
2017-04-06 20:34:23 -04:00
|
|
|
and the following HTML feature groups:
|
|
|
|
|
|
|
|
[[html-feature-groups]]
|
2017-06-27 12:14:35 -04:00
|
|
|
`_tables`;;
|
|
|
|
All table related elements: `<table>`, `<th>`, `<tr>`
|
2017-04-06 20:34:23 -04:00
|
|
|
and `<td>`.
|
|
|
|
|
2017-06-27 12:14:35 -04:00
|
|
|
`_blocks`;;
|
2017-04-06 20:34:23 -04:00
|
|
|
The following block elements: `<p>`, `<div>`, `<h1>`,
|
|
|
|
`<h2>`, `<h3>`, `<h4>`, `<h5>`, `<h6>`, `<ul>`, `<ol>`,
|
|
|
|
`<li>`, and `<blockquote>`.
|
|
|
|
|
2017-06-27 12:14:35 -04:00
|
|
|
`_formatting`;;
|
2017-04-06 20:34:23 -04:00
|
|
|
The following inline formatting elements: `<b>`, `<i>`,
|
|
|
|
`<s>`, `<u>`, `<o>`, `<sup>`, `<sub>`, `<ins>`, `<del>`,
|
|
|
|
`<strong>`, `<strike>`, `<tt>`, `<code>`, `<big>`,
|
|
|
|
`<small>`, `<br>`, `<span>`, and `<em>`.
|
|
|
|
|
2017-06-27 12:14:35 -04:00
|
|
|
`_links`;;
|
2017-04-06 20:34:23 -04:00
|
|
|
The `<a>` element with an `href` attribute that points
|
|
|
|
to a URL using the following protocols: `http`, `https`
|
|
|
|
and `mailto`.
|
2017-06-27 12:14:35 -04:00
|
|
|
|
|
|
|
`_styles`;;
|
2017-04-06 20:34:23 -04:00
|
|
|
The `style` attribute on all elements. Note that CSS
|
|
|
|
attributes are also sanitized to prevent XSS attacks.
|
|
|
|
|
|
|
|
`img`;;
|
2017-06-27 12:14:35 -04:00
|
|
|
`img:all`;;
|
2017-04-06 20:34:23 -04:00
|
|
|
All images (external and embedded).
|
|
|
|
|
2017-06-27 12:14:35 -04:00
|
|
|
`img:embedded`;;
|
2017-04-06 20:34:23 -04:00
|
|
|
Only embedded images. Embedded images can only use the
|
|
|
|
`cid:` URL protocol in their `src` attribute.
|
|
|
|
|
|
|
|
`xpack.notification.email.html.sanitization.disallow`::
|
2017-06-27 12:14:35 -04:00
|
|
|
Specifies the HTML elements that are NOT allowed in email notifications.
|
|
|
|
You can specify individual HTML elements and <<html-feature-groups,
|
2017-04-06 20:34:23 -04:00
|
|
|
HTML feature groups>>.
|
|
|
|
|
2017-06-27 12:14:35 -04:00
|
|
|
`xpack.notification.email.html.sanitization.enabled` ::
|
|
|
|
Set to `false` to completely disable HTML sanitation. Not recommended.
|
2017-04-06 20:34:23 -04:00
|
|
|
Defaults to `true`.
|
|
|
|
|
|
|
|
[float]
|
|
|
|
[[hipchat-notification-settings]]
|
2017-06-27 12:14:35 -04:00
|
|
|
==== HipChat Notification Settings
|
|
|
|
You can configure the following HipChat notification settings in
|
|
|
|
`elasticsearch.yml`. For more information about sending notifications
|
2017-06-26 13:05:36 -04:00
|
|
|
via HipChat, see {xpack-ref}/actions-hipchat.html#configuring-hipchat-actions[Configuring HipChat].
|
2017-04-06 20:34:23 -04:00
|
|
|
|
|
|
|
`xpack.notification.hipchat` ::
|
|
|
|
Specifies account information for sending notifications
|
|
|
|
via HipChat. You can specify the following HipChat account attributes:
|
|
|
|
|
|
|
|
[[hipchat-account-attributes]]
|
2017-06-27 12:14:35 -04:00
|
|
|
`profile`;;
|
|
|
|
The HipChat account profile to use: `integration`,
|
2017-04-06 20:34:23 -04:00
|
|
|
`user`, or `v1`. Required.
|
|
|
|
|
2017-06-27 12:14:35 -04:00
|
|
|
`auth_token`;;
|
|
|
|
The authentication token to use to access
|
2017-04-06 20:34:23 -04:00
|
|
|
the HipChat API. Required.
|
|
|
|
|
2017-06-27 12:14:35 -04:00
|
|
|
`host`;;
|
2017-04-06 20:34:23 -04:00
|
|
|
The HipChat server hostname. Defaults to `api.hipchat.com`.
|
2017-06-27 12:14:35 -04:00
|
|
|
|
|
|
|
`port`;;
|
2017-04-06 20:34:23 -04:00
|
|
|
The HipChat server port number. Defaults to 443.
|
|
|
|
|
2017-06-27 12:14:35 -04:00
|
|
|
`room`;;
|
|
|
|
The room you want to send messages to. Must be specified
|
|
|
|
if the `profile` is set to `integration`. Not valid for
|
2017-04-06 20:34:23 -04:00
|
|
|
the `user` or `vi` profiles.
|
2017-06-27 12:14:35 -04:00
|
|
|
|
|
|
|
`user`;;
|
|
|
|
The HipChat user account to use to send messages.
|
2017-04-06 20:34:23 -04:00
|
|
|
Specified as an email address. Must be specified if the
|
2017-06-27 12:14:35 -04:00
|
|
|
`profile` is set to `user`. Not valid for the `integration`
|
2017-04-06 20:34:23 -04:00
|
|
|
or `v1` profiles.
|
|
|
|
|
2017-06-27 12:14:35 -04:00
|
|
|
`message.format`;;
|
|
|
|
The format of the message: `text` or `html`.
|
2017-04-06 20:34:23 -04:00
|
|
|
Defaults to `html`.
|
|
|
|
|
2017-06-27 12:14:35 -04:00
|
|
|
`message.color`;;
|
|
|
|
The background color of the notification in the room.
|
2017-04-06 20:34:23 -04:00
|
|
|
Defaults to `yellow`.
|
2017-06-27 12:14:35 -04:00
|
|
|
`message.notify`;;
|
2017-04-06 20:34:23 -04:00
|
|
|
Indicates whether people in the room should be
|
|
|
|
actively notified. Defaults to `false`.
|
|
|
|
|
|
|
|
|
|
|
|
[float]
|
|
|
|
[[slack-notification-settings]]
|
2017-06-27 12:14:35 -04:00
|
|
|
==== Slack Notification Settings
|
2017-04-06 20:34:23 -04:00
|
|
|
You can configure the following Slack notification settings in
|
|
|
|
`elasticsearch.yml`. For more information about sending notifications
|
2017-06-26 13:05:36 -04:00
|
|
|
via Slack, see {xpack-ref}/actions-slack.html#configuring-slack-actions[Configuring Slack].
|
2017-04-06 20:34:23 -04:00
|
|
|
|
|
|
|
`xpack.notification.slack` ::
|
|
|
|
Specifies account information for sending notifications
|
|
|
|
via Slack. You can specify the following Slack account attributes:
|
|
|
|
|
|
|
|
[[slack-account-attributes]]
|
|
|
|
|
|
|
|
`url`;;
|
|
|
|
The Incoming Webhook URL to use to post
|
|
|
|
messages to Slack. Required.
|
|
|
|
|
|
|
|
`message_defaults.from`;;
|
|
|
|
The sender name to display in the
|
|
|
|
Slack message. Defaults to the watch ID.
|
|
|
|
|
|
|
|
`message_defaults.to`;;
|
|
|
|
The default Slack channels or groups you
|
|
|
|
want to send messages to.
|
|
|
|
|
|
|
|
`message_defaults.icon`;;
|
|
|
|
The icon to display in the Slack messages.
|
|
|
|
Overrides the incoming webhook's configured
|
|
|
|
icon. Accepts a public URL to an image.
|
|
|
|
|
|
|
|
`message_defaults.text`;;
|
|
|
|
The default message content.
|
|
|
|
|
|
|
|
`message_defaults.attachment`;;
|
|
|
|
Default message attachments. Slack message attachments
|
|
|
|
enable you to create more richly-formatted messages.
|
|
|
|
Specified as an array as defined in the
|
|
|
|
https://api.slack.com/docs/attachments[
|
|
|
|
Slack attachments documentation].
|
|
|
|
|
|
|
|
|
|
|
|
[float]
|
|
|
|
[[jira-notification-settings]]
|
2017-06-27 12:14:35 -04:00
|
|
|
==== Jira Notification Settings
|
2017-04-06 20:34:23 -04:00
|
|
|
You can configure the following Jira notification settings in
|
|
|
|
`elasticsearch.yml`. For more information about using notifications
|
2017-06-26 13:05:36 -04:00
|
|
|
to create issues in Jira, see {xpack-ref}/actions-jira.html#configuring-jira-actions[Configuring Jira].
|
2017-04-06 20:34:23 -04:00
|
|
|
|
|
|
|
`xpack.notification.jira` ::
|
|
|
|
Specifies account information for using notifications to create
|
|
|
|
issues in Jira. You can specify the following Jira account attributes:
|
|
|
|
|
|
|
|
[[jira-account-attributes]]
|
|
|
|
|
2017-06-27 12:14:35 -04:00
|
|
|
`url`;;
|
2017-04-06 20:34:23 -04:00
|
|
|
The URL of the Jira Software server. Required.
|
|
|
|
|
|
|
|
`user`;;
|
|
|
|
The name of the user to connect to the Jira Software server. Required.
|
|
|
|
|
|
|
|
`password`;;
|
|
|
|
The password of the user to connect to the Jira Software server. Required.
|
|
|
|
|
|
|
|
`issue_defaults`;;
|
|
|
|
Default fields values for the issue created in Jira. See
|
2017-06-26 13:05:36 -04:00
|
|
|
{xpack-ref}/actions-jira.html#jira-action-attributes[Jira Action Attributes] for more information.
|
2017-04-06 20:34:23 -04:00
|
|
|
Optional.
|
|
|
|
|
|
|
|
|
|
|
|
[float]
|
|
|
|
[[pagerduty-notification-settings]]
|
2017-06-27 12:14:35 -04:00
|
|
|
==== PagerDuty Notification Settings
|
|
|
|
You can configure the following PagerDuty notification settings in
|
|
|
|
`elasticsearch.yml`. For more information about sending notifications
|
2017-06-26 13:05:36 -04:00
|
|
|
via PagerDuty, see {xpack-ref}/actions-pagerduty.html#configuring-pagerduty-actions[Configuring PagerDuty].
|
2017-04-06 20:34:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
[[pagerduty-account-attributes]]
|
|
|
|
`xpack.notification.pagerduty`::
|
|
|
|
Specifies account information for sending notifications
|
|
|
|
via PagerDuty. You can specify the following PagerDuty account attributes:
|
|
|
|
|
|
|
|
`name`;;
|
|
|
|
A name for the PagerDuty account associated with the API key you
|
|
|
|
are using to access PagerDuty. Required.
|
2017-06-27 12:14:35 -04:00
|
|
|
|
2017-04-06 20:34:23 -04:00
|
|
|
`service_api_key`;;
|
|
|
|
The https://developer.pagerduty.com/documentation/rest/authentication[
|
|
|
|
PagerDuty API key] to use to access PagerDuty. Required.
|
|
|
|
|
2017-06-27 12:14:35 -04:00
|
|
|
|
2017-04-06 20:34:23 -04:00
|
|
|
`event_defaults`;;
|
2017-06-26 13:05:36 -04:00
|
|
|
Default values for {xpack-ref}/actions-pagerduty.html#pagerduty-event-trigger-incident-attributes[
|
|
|
|
PagerDuty event attributes]. Optional.
|
2017-04-06 20:34:23 -04:00
|
|
|
|
|
|
|
`description`::
|
|
|
|
A string that contains the default description for PagerDuty events.
|
|
|
|
If no default is configured, each PagerDuty action must specify a
|
|
|
|
`description`.
|
2017-06-27 12:14:35 -04:00
|
|
|
|
|
|
|
`incident_key`::
|
2017-04-06 20:34:23 -04:00
|
|
|
A string that contains the default incident key to use when sending
|
|
|
|
PagerDuty events.
|
2017-06-27 12:14:35 -04:00
|
|
|
|
2017-04-06 20:34:23 -04:00
|
|
|
`client`::
|
|
|
|
A string that specifies the default monitoring client.
|
|
|
|
|
|
|
|
`client_url`::
|
2017-06-27 12:14:35 -04:00
|
|
|
The URL of the default monitoring client.
|
|
|
|
|
2017-04-06 20:34:23 -04:00
|
|
|
`event_type`::
|
|
|
|
The default event type. Valid values: `trigger`,`resolve`, `acknowledge`.
|
2017-06-27 12:14:35 -04:00
|
|
|
|
2017-04-06 20:34:23 -04:00
|
|
|
`attach_payload`::
|
2017-06-27 12:14:35 -04:00
|
|
|
Whether or not to provide the watch payload as context for
|
2017-04-06 20:34:23 -04:00
|
|
|
the event by default. Valid values: `true`, `false`.
|