[role="xpack"] [[notification-settings]] === {watcher} Settings in Elasticsearch ++++ {watcher} Settings ++++ You configure {watcher} settings to set up {watcher} and send notifications via <>, <>, <>, and <>. All of these settings can be added to the `elasticsearch.yml` configuration file, with the exception of the secure settings, which you add to the {es} keystore. For more information about creating and updating the {es} keystore, see <>. [float] [[general-notification-settings]] ==== General Watcher Settings `xpack.watcher.enabled`:: Set to `false` to disable {watcher} on the node. `xpack.watcher.encrypt_sensitive_data`:: Set to `true` to encrypt sensitive data. If this setting is enabled, you must also specify the `xpack.watcher.encryption_key` setting. For more information, see {xpack-ref}/encrypting-data.html[Encrypting sensitive data in {watcher}]. `xpack.watcher.encryption_key` (<>):: Specifies the path to a file that contains a key for encrypting sensitive data. If `xpack.watcher.encrypt_sensitive_data` is set to `true`, this setting is required. For more information, see {xpack-ref}/encrypting-data.html[Encrypting sensitive data in {watcher}]. `xpack.watcher.history.cleaner_service.enabled`:: added[6.3.0,Default changed to `true`.] + Set to `true` (default) to enable the cleaner service. If this setting is `true`, the `xpack.monitoring.enabled` setting must also be set to `true` with a local exporter enabled. The cleaner service removes previous versions of {watcher} indices (for example, `.watcher-history*`) when it determines that they are old. The duration of {watcher} indices is determined by the `xpack.monitoring.history.duration` setting, which defaults to 7 days. For more information about that setting, see <>. `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. `xpack.http.default_connection_timeout`:: The maximum period to wait until abortion of the request, when a connection is being initiated. `xpack.http.default_read_timeout`:: The maximum period of inactivity between two data packets, before the request is aborted. `xpack.http.max_response_size`:: Specifies the maximum size a HTTP response is allowed to have, defaults to `10mb`, the maximum configurable value is `50mb`. [[ssl-notification-settings]] :ssl-prefix: xpack.http :component: {watcher} :verifies: :server!: include::ssl-settings.asciidoc[] [float] [[email-notification-settings]] ==== Email Notification Settings You can configure the following email notification settings in `elasticsearch.yml`. For more information about sending notifications via email, see {xpack-ref}/actions-email.html#configuring-email-actions[Configuring Email]. `xpack.notification.email.account`:: Specifies account information for sending notifications via email. You can specify the following email account attributes: [[email-account-attributes]] `profile`;; The {xpack-ref}/actions-email.html#configuring-email[email profile] to use to build the MIME messages that are sent from the account. Valid values: `standard`, `gmail` and `outlook`. Defaults to `standard`. `email_defaults.*`;; An optional set of email attributes to use as defaults for the emails sent from the account. See {xpack-ref}/actions-email.html#email-action-attributes[ Email Action Attributes] for the supported attributes. `smtp.auth`;; Set to `true` to attempt to authenticate the user using the AUTH command. Defaults to `false`. `smtp.host`;; The SMTP server to connect to. Required. `smtp.port`;; The SMTP server port to connect to. Defaults to 25. `smtp.user`;; The user name for SMTP. Required. `smtp.password`;; The password for the specified SMTP user. `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 trust the server's certificate. Defaults to `false`. `smtp.*`;; SMTP attributes that enable fine control over the SMTP protocol when sending messages. See https://javaee.github.io/javamail/docs/api/com/sun/mail/smtp/package-summary.html[com.sun.mail.smtp] for the full list of SMTP properties you can set. Note that all timeouts (`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 more information, see {xpack-ref}/actions-email.html#email-html-sanitization[Configuring HTML Sanitization Options]. You can specify individual HTML elements and the following HTML feature groups: [[html-feature-groups]] `_tables`;; All table related elements: ``, `` and `
`, `
`. `_blocks`;; The following block elements: `

`, `

`, `

`, `

`, `

`, `

`, `

`, `
`, `