Alerting set upedit

Alerting is automatically enabled in Kibana, but might require some additional configuration.


If you are using an on-premises Elastic Stack deployment:

If you are using an on-premises Elastic Stack deployment with security:

The alerting framework uses queries that require the search.allow_expensive_queries setting to be true. See the scripts documentation.

Production considerations and scaling guidanceedit

When relying on alerting and actions as mission critical services, make sure you follow the Alerting production considerations.

See Scaling guidance for more information on the scalability of Alerting.


To access alerting in a space, a user must have access to one of the following features:

See feature privileges for more information on configuring roles that provide access to these features. Also note that a user will need read privileges for the Actions and Connectors feature to attach actions to a rule or to edit a rule that has an action attached to it.

Restrict actionsedit

For security reasons you may wish to limit the extent to which Kibana can connect to external services. Action settings allows you to disable certain Connectors and allowlist the hostnames that Kibana can connect with.

Space isolationedit

Rules and connectors are isolated to the Kibana space in which they were created. A rule or connector created in one space will not be visible in another.


Rules are authorized using an API key associated with the last user to edit the rule. This API key captures a snapshot of the user’s privileges at the time of the edit. They are subsequently used to run all background tasks associated with the rule, including condition checks like Elasticsearch queries and triggered actions. The following rule actions will re-generate the API key:

  • Creating a rule
  • Updating a rule

When you disable a rule, it retains the associated API key which is re-used when the rule is enabled. If the API key is missing when you enable the rule (for example, in the case of imported rules), it generates a new key that has your security privileges.

You can update an API key manually in Stack Management > Rules and Connectors or in the rule details page by selecting Update API key in the actions menu.

If a rule requires certain privileges, such as index privileges, to run, and a user without those privileges updates the rule, the rule will no longer function. Conversely, if a user with greater or administrator privileges modifies the rule, it will begin running with increased privileges.

Cross-cluster searchedit

If you want to use alerting rules with cross-cluster search, you must configure privileges for CCS and Kibana.