You can create rules that automatically turn events and external alerts sent to Elastic Security into detection alerts. These alerts are displayed on the Detections page.
For more information about the differences between events, external alerts, and detection alerts, see the Elastic Glossary.
The API has these endpoints:
<kibana host>:<port>/api/detection_engine/rules- Detection rules CRUD functions
<kibana host>:<port>/api/detection_engine/index- Signal index operations (used to store detection alerts)
<kibana host>:<port>/api/detection_engine/tags- Aggregates and returns rule tags
<kibana host>:<port>/api/detection_engine/rules/_import- Imports rules from an
<kibana host>:<port>/api/detection_engine/rules/_export- Exports rules to an
<kibana host>:<port>/api/detection_engine/privileges- Returns the user’s Kibana space and signal index permissions, and whether the user is authenticated
<kibana host>:<port>/api/detection_engine/signals- Aggregates, queries, and returns alerts, and updates their statuses
<kibana host>:<port>/api/detection_engine/rules/prepackaged- Loads and retrieves the status of Elastic prebuilt rules
You can view and download a Detections API Postman collection here.
Kibana role requirementsedit
To create and run rules, the user role for the Kibana space must have:
Allprivileges for the
Saved Objects Managementfeatures (see Feature access based on user privileges).
writeprivileges for the
.siem-signals-*index (the system index used for storing detection alerts created from rules).
See Detections prerequisites and requirements for a complete list of requirements.