Loading

Create a failed docs rule

Serverless Stack 9.1.0

Note

The Editor role or higher is required to create a failed docs rule using custom threshold rule. To learn more, refer to Assign user roles and privileges.

Create a failed docs rule using the custom threshold rule to alert when the number of failed documents in your data stream reaches or exceeds a given value.

Create failed docs rule using the custom threshold rule type

When creating a failed docs rule, the process depends on your deployment type and your space's solution view. You can check your solution view by selecting the Spaces icon.

Select the appropriate tab for your setup, then follow the instructions to create a failed docs rule:

  1. From the main menu, open the Data Set Quality page from ManagementStack Management, or use the global search field.
  2. Find the data set you want to create a rule for in the table, and select Open from the Actions column.
  3. Select AlertsCreate custom threshold rule.
  4. Select Add aggregation/field.
  5. For your new aggregation, set Aggregation type to Count and KQL Filter to _index : ".fs*".
  6. Select Equation, and set the equation to (B / A) * 100.
  7. Set Is above to the desired threshold. For example, 1.5.
  8. Set the Label to Failed docs.
  9. Select Next to go to the Details step.
  10. Set the Rule name to Data set quality and add failed_docs to the Tags.
  11. Select Create rule.
  1. Select Manage rules and connectors.
  2. Select Create rule, then Custom threshold.
  3. Select Data view, then Create a data view.
  4. Find your data stream under All sources.
  5. Name your data view.
  6. Add your index pattern with ::failures appended. For example, logs-synth.2-default::data,logs-synth.2-default::failures.
  7. Select Save data view to Kibana.
  8. Select Add aggregation/field.
  9. For your new aggregation, set Aggregation type to Count and KQL Filter to _index : ".fs*".
  10. Select Equation, and set the equation to (B / A) * 100.
  11. Set Is above to the desired threshold. For example, 1.5.
  12. Set the Label to Failed docs.
  13. Select Next to go to the Details menu.
  14. Set the Rule name to Data set quality and add failed_docs to the Tags.
  15. Select Create rule.

You can extend your rules with actions that interact with third-party systems, write to logs or indices, or send user notifications. You can add an action to a rule at any time. You can create rules without adding actions, and you can also define multiple actions for a single rule.

To add actions to rules, you must first create a connector for that service (for example, an email or external incident management system), which you can then use for different rules, each with their own action frequency.