You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fill in the <<defining-alerts-general-details, alert details>>, then select *<ALERT TYPE>*.
10
+
11
+
[float]
12
+
==== Define the conditions
13
+
14
+
Define properties to detect the condition.
15
+
16
+
////
17
+
Optional, include a screenshot
18
+
[role="screenshot"]
19
+
image::user/alerting/images/alert-types-<ALERT TYPE>-conditions.png[Conditions for <ALERT TYPE> alert type]
20
+
////
21
+
22
+
Condition1:: This is a condition the user must define.
23
+
Condition2:: This is another condition the user must define.
24
+
25
+
[float]
26
+
==== Add action variables
27
+
28
+
<<defining-alerts-actions-details, Add an action>> to run when the alert condition is met. The following variables are specific to the <ALERT TYPE> alert. You can also specify <<defining-alerts-actions-variables, variables common to all alerts>>.
29
+
30
+
`context.variableA`:: A short description of the context variable defined by the alert type.
31
+
`context.variableB`:: A short description of the context variable defined by the alert type with an example. Example: `this is what variableB outputs`.
32
+
33
+
////
34
+
Optional, include a step-by-step example for creating this alert
35
+
[float]
36
+
==== Example
37
+
38
+
In this section, you will use the {kib} <<add-sample-data, weblog sample dataset>> to setup and tune the conditions on an <ALERT TYPE> alert. For this example, we want to detect when <DESCRIBE THE CONDITIONS>.
Copy file name to clipboardExpand all lines: docs/user/alerting/action-types/email.asciidoc
+20-39Lines changed: 20 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,9 @@
1
1
[role="xpack"]
2
2
[[email-action-type]]
3
3
=== Email action
4
+
++++
5
+
<titleabbrev>Email</titleabbrev>
6
+
++++
4
7
5
8
The email action type uses the SMTP protocol to send mail message, using an integration of https://nodemailer.com/[Nodemailer]. Email message text is sent as both plain text and html text.
6
9
@@ -10,14 +13,15 @@ NOTE: For emails to have a footer with a link back to {kib}, set the <<server-pu
10
13
[[email-connector-configuration]]
11
14
==== Connector configuration
12
15
13
-
Email connectors have the following configuration properties:
16
+
Email connectors have the following configuration properties.
14
17
15
18
Name:: 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.
16
19
Sender:: The from address for all emails sent with this connector. This can be specified in `user@host-name` format or as `"human name <user@host-name>"` format. See the https://nodemailer.com/message/addresses/[Nodemailer address documentation] for more information.
17
20
Host:: Host name of the service provider. If you are using the <<action-settings, `xpack.actions.allowedHosts`>> setting, make sure this hostname is added to the allowed hosts.
18
21
Port:: The port to connect to on the service provider.
19
22
Secure:: If true, the connection will use TLS when connecting to the service provider. Refer to the https://nodemailer.com/smtp/#tls-options[Nodemailer TLS documentation] for more information. If not true, the connection will initially connect over TCP, then attempt to switch to TLS via the SMTP STARTTLS command.
20
-
User:: Username for login type authentication.
23
+
Require authentication:: If true, a username and password for login type authentication must be provided.
24
+
Username:: Username for login type authentication.
21
25
Password:: Password for login type authentication.
22
26
23
27
[float]
@@ -39,56 +43,33 @@ Password:: Password for login type authentication.
39
43
password: passwordkeystorevalue
40
44
--
41
45
42
-
[[email-connector-config-properties]]
43
-
**`config`** defines the action type specific to the configuration and contains the following properties:
46
+
Config defines information for the action type.
44
47
45
-
[cols="2*<"]
46
-
|===
48
+
`service`:: The name of a https://nodemailer.com/smtp/well-known/[well-known email service provider]. If `service` is provided, `host`, `port`, and `secure` properties are ignored. For more information on the `gmail` service value, see the https://nodemailer.com/usage/using-gmail/[Nodemailer Gmail documentation].
49
+
`from`:: An email address that corresponds to *Sender*.
50
+
`host`:: A string that corresponds to *Host*.
51
+
`port`:: A number that corresponds to *Port*.
52
+
`secure`:: A boolean that corresponds to *Secure*.
53
+
`hasAuth`:: 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`.
47
54
48
-
| `service`
49
-
| The name of a https://nodemailer.com/smtp/well-known/[well-known email service provider]. If `service` is provided, `host`, `port`, and `secure` properties are ignored. For more information on the `gmail` service value, see the (https://nodemailer.com/usage/using-gmail/)[Nodemailer Gmail documentation].
55
+
Secrets defines sensitive information for the action type.
50
56
51
-
| `from`
52
-
| An email address that corresponds to *Sender*.
57
+
`user`:: A string that corresponds to *Username*. Required if `hasAuth` is set to `true`.
58
+
`password`:: A string that corresponds to *Password*. Should be stored in the <<creating-keystore, {kib} keystore>>. Required if `hasAuth` is set to `true`.
53
59
54
-
| `host`
55
-
| A string that corresponds to *Host*.
56
-
57
-
| `port`
58
-
| A number that corresponds to *Port*.
59
-
60
-
| `secure`
61
-
| A boolean that corresponds to *Secure*.
62
-
63
-
| `hasAuth`
64
-
| If `true`, this connector will require values for `user` and `password` inside the secrets configuration. Defaults to `true`.
65
-
66
-
|===
67
-
68
-
**`secrets`** defines sensitive information for the action type and contains the following properties:
69
-
70
-
[cols="2*<"]
71
-
|===
72
-
73
-
| `user`
74
-
| A string that corresponds to *User*. Required if `hasAuth` is set to `true`.
75
-
76
-
| `password`
77
-
| A string that corresponds to *Password*. Should be stored in the <<creating-keystore, {kib} keystore>>. Required if `hasAuth` is set to `true`.
78
-
79
-
|===
80
60
61
+
[float]
81
62
[[email-action-configuration]]
82
63
==== Action configuration
83
64
84
-
Email actions have the following configuration properties:
65
+
Email actions have the following configuration properties.
85
66
86
-
To, CC, BCC:: Each is a list of addresses. Addresses can be specified in `user@host-name` format, or in `name <user@host-name>` format. One of To, CC, or BCC must contain an entry.
67
+
To, CC, BCC:: Each item is a list of addresses. Addresses can be specified in `user@host-name` format, or in `name <user@host-name>` format. One of To, CC, or BCC must contain an entry.
87
68
Subject:: The subject line of the email.
88
69
Message:: The message text of the email. Markdown format is supported.
89
70
90
71
[[configuring-email]]
91
-
==== Configuring email accounts
72
+
==== Configuring email accounts for well-known services
92
73
93
74
The email action can send email using many popular SMTP email services.
Copy file name to clipboardExpand all lines: docs/user/alerting/action-types/index.asciidoc
+13-18Lines changed: 13 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,17 @@
1
1
[role="xpack"]
2
2
[[index-action-type]]
3
3
=== Index action
4
+
++++
5
+
<titleabbrev>Index</titleabbrev>
6
+
++++
4
7
5
8
The index action type will index a document into {es}. See also the {ref}/indices-create-index.html[create index API].
6
9
7
10
[float]
8
11
[[index-connector-configuration]]
9
12
==== Connector configuration
10
13
11
-
Index connectors have the following configuration properties:
14
+
Index connectors have the following configuration properties.
12
15
13
16
Name:: 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.
14
17
Index:: The {es} index to be written to.
@@ -30,32 +33,24 @@ Execution time field:: This field will be automatically set to the time the ale
30
33
executionTimeField: somedate
31
34
--
32
35
33
-
[[index-connector-config-properties]]
34
-
**`config`** defines the action type specific to the configuration and contains the following properties:
35
-
36
-
[cols="2*<"]
37
-
|===
38
-
39
-
|`index`
40
-
| A string that corresponds to *Index*.
41
-
42
-
|`refresh`
43
-
| A boolean that corresponds to *Refresh*. Defaults to `false`.
44
-
45
-
|`executionTimeField`
46
-
| A string that corresponds to *Execution time field*.
47
-
48
-
|===
36
+
Config defines information for the action type.
49
37
38
+
`index`:: A string that corresponds to *Index*.
39
+
`refresh`:: A boolean that corresponds to *Refresh*. Defaults to `false`.
40
+
`executionTimeField`:: A string that corresponds to *Execution time field*.
50
41
51
42
[float]
52
43
[[index-action-configuration]]
53
44
==== Action configuration
54
45
55
-
Index actions have the following properties:
46
+
Index actions have the following properties.
56
47
57
48
Document:: The document to index in JSON format.
58
49
50
+
[float]
51
+
[[index-action-example]]
52
+
==== Example
53
+
59
54
Example of the index document for Index Threshold alert:
The Jira action type uses the https://developer.atlassian.com/cloud/jira/platform/rest/v2/[REST API v2] to create Jira issues.
6
9
7
10
[float]
8
11
[[jira-connector-configuration]]
9
12
==== Connector configuration
10
13
11
-
Jira connectors have the following configuration properties:
14
+
Jira connectors have the following configuration properties.
12
15
13
16
Name:: The name of the connector. The name is used to identify a connector in the **Stack Management** UI connector listing, and in the connector list when configuring an action.
14
17
URL:: Jira instance URL.
@@ -33,37 +36,21 @@ API token (or password):: Jira API authentication token (or password) for HTTP
33
36
apiToken: tokenkeystorevalue
34
37
--
35
38
36
-
[[jira-connector-config-properties]]
37
-
**`config`** defines the action type specific to the configuration and contains the following properties:
39
+
Config defines information for the action type.
38
40
39
-
[cols="2*<"]
40
-
|===
41
+
`apiUrl`:: An address that corresponds to *URL*.
42
+
`projectKey`:: A key that corresponds to *Project Key*.
41
43
42
-
| `apiUrl`
43
-
| An address that corresponds to *URL*.
44
+
Secrets defines sensitive information for the action type.
44
45
45
-
| `projectKey`
46
-
| A key that corresponds to *Project Key*.
47
-
48
-
|===
49
-
50
-
**`secrets`** defines sensitive information for the action type and contains the following properties:
51
-
52
-
[cols="2*<"]
53
-
|===
54
-
55
-
| `email`
56
-
| A string that corresponds to *Email*.
57
-
58
-
| `apiToken`
59
-
| A string that corresponds to *API Token*. Should be stored in the <<creating-keystore, {kib} keystore>>.
60
-
61
-
|===
46
+
`email`:: A string that corresponds to *Email*.
47
+
`apiToken`:: A string that corresponds to *API Token*. Should be stored in the <<creating-keystore, {kib} keystore>>.
62
48
49
+
[float]
63
50
[[jira-action-configuration]]
64
51
==== Action configuration
65
52
66
-
Jira actions have the following configuration properties:
53
+
Jira actions have the following configuration properties.
67
54
68
55
Issue type:: The type of the issue.
69
56
Priority:: The priority of the incident.
@@ -74,6 +61,6 @@ Parent:: The ID or key of the parent issue. Only for `Subtask` issue types.
74
61
Additional comments:: Additional information for the client, such as how to troubleshoot the issue.
75
62
76
63
[[configuring-jira]]
77
-
==== Configuring and testing Jira
64
+
==== Configure Jira
78
65
79
66
Jira offers free https://www.atlassian.com/software/jira/free[Instances], which you can use to test incidents.
0 commit comments