Security rules define events and their execution conditions. A rule can contain one or more queries. You can create a security rule either from scratch or by using an existing rule.
Manually create a new rule
The first way is creating a rule from scratch. To do this:
-
Sign in to Logz.io.
-
Go to SIEM > Rules.
-
Select + New rule.
-
Fill out the rule details as follows:
-
Give the rule a required name.
-
Define a query for the rule. You can do it directly in the Create a rule window and then preview it in OpenSearch Dashboards. Alternatively, you can define the query in OpenSearch Dashboards and copy it across.
-
Define what fields the query needs to be grouped by.
-
Define what accounts the query needs to apply to.
-
Repeat the previous three steps for another query, if required.
-
Define the trigger conditions for the rule.
-
If required, add a notification description to the rule. For example, a course of actions required when the rule is executed.
-
If required, add tags to the rule.
-
If required, add a notification endpoint in the Recipients list. This can be an email address or a webhook. See Adding notification and SOAR endpoints for more on this.
-
-
Select Save.
Clone and modify an existing rule
The other way is creating a rule from an existing rule. In this case, the rule builder will be pre-populated with data from the existing rule, such as the query string. To do this:
-
Sign in to Logz.io.
-
Go to SIEM.
-
Scroll down to the Events section.
-
Click the Investigate tab next to the event that you want to base the new rule on.
-
Select Create rule.
-
Fill out the rule details as follows:
-
Give the rule a required name.
-
Define a query for the rule. You can do it directly in the Create a rule window and then preview it in OpenSearch Dashboards. Alternatively, you can define the query in OpenSearch Dashboards and copy it across.
-
Define what fields the query needs to be grouped by.
-
Define what accounts the query needs to apply to.
-
Repeat the previous three steps for another query, if required.
-
Define the trigger conditions for the rule.
-
If required, add a notification description to the rule. For example, a course of actions required when the rule is executed.
-
If required, add tags to the rule.
-
If required, add a notification endpoint in the Recipients list. This can be an email address or a webhook. See Adding notification and SOAR endpoints for more on this.
-
-
Select Save.