This product is not supported for your selected 
Datadog site. (
).
This page explains how to use and audit automation rules for datastores. With automation rules, you can add workflows to your datastores that automatically trigger when records are created, updated, or deleted.
Use automation rules
Create a new automation rule
To create a new automation rule:
- Navigate to the Datastores page.
- Select a datastore.
- Click Automation Rules, then + New Automation Rule.
- Configure your new automation rule:- Choose if the rule will be triggered when a new entry is added, a value has changed, or an entry is deleted.
- Choose the workflow that will be triggered when the event occurs.
- Name your rule.
 
- Click Save.
Edit an automation rule
To edit an automation rule:
- Navigate to the Datastores page.
- Select a datastore.
- Click Automation Rules, then + New Automation Rule.
- Click the Edit ![]() icon. icon.
- Make your changes.
- Click Save Changes.
Delete an automation rule
To delete an automation rule:
- Navigate to the Datastores page.
- Select a datastore.
- Click Automation Rules, then + New Automation Rule.
- Click the Delete ![]() icon. icon.
- When prompted, confirm deletion.
Audit automation rules
About audit logs
Changes you make to a datastore are evaluated by whether they match any of your configured automation rules. Each time a rule is evaluated, a log of that event is created. You can view these logs to help with troubleshooting.
In the screenshot below, audit logs were created for automation rules run when new entries were added, entries were changed, and entries were deleted. Each run generates three logs: one for the rule match, one for the workflow beginning execution, and one for the workflow execution result.
View audit logs
To audit an automation rule:
- Navigate to the Datastores page.
- Select a datastore.
- Click Automation Rules.
- Click Audit Logs.
- Click the dropdown menu on the left to filter by automation rule.
- Click the dropdown menu on the right to filter results to a specific date range.
- To sort the list, click DATE or RULES.
- To see more information, click a log. Logs for item keys display the datastore entry that triggered the automation rule. Logs for workflow executions display a link to your workflow’s configuration.
Further reading
Additional helpful documentation, links, and articles: