Observe Resource Activity with Events and Notifications for Autonomous AI Database on Dedicated Exadata Infrastructure
When Oracle Autonomous AI Database on Dedicated Exadata Infrastructure performs operations on resources, it sends events to the Events service. Using the Events service, you can create rules to capture these events and perform actions such as sending you emails using the Notifications service.
Tip: See Notifications Use Case: Emails for Maintenance Events for a short end-to-end example of using the Events and Notifications services in this way.
For a “try it out” demonstration for setting up Autonomous AI Database event notifications through OCI Notification Service, see Lab 11: OCI Notification Service in Oracle Autonomous AI Database Dedicated for Fleet Administrators Workshop.
This combination of Autonomous AI Database events, the Events service and the Notification service provide a very rich set of options for keeping abreast of resource activity.
Autonomous AI Database resources generate events for more than forty operations. Choose event types based on the resources you manage and the actions you want to take. For example:
- Fleet administrators can monitor critical and warning events for Exadata infrastructure, Autonomous VM Clusters, and Autonomous Container Databases (ACDs). Maintenance scheduled, reminder, begin, and end events can help them plan for and track maintenance.
- Database administrators and developers can monitor critical and warning events for Autonomous AI Databases. You can also select events for the completion of backups, restores, and other operations that their workflows depend on.
- Security administrators can monitor Data Safe audit alerts, audit trail changes, and assessment drift. To receive Data Safe events, create a separate Events rule, as described in the section below.
For a complete list of Autonomous AI Database resource events in Oracle Public Cloud, Exadata Cloud@Customer and Multicloud deployments, see Events for Autonomous AI Database on Dedicated Exadata Infrastructure. For Exadata Cloud@Customer infrastructure events, see Oracle Exadata Database Service on Cloud@Customer Events. This reference also covers other Exadata Database Service resources. Select the event types that apply to your specific deployment.
Note: For critical, warning, and information events, eventType identifies the event category. The data.additionalDetails.eventName field identifies the specific condition, such as an expiring ADMIN password.
Before You Begin
- Identify the compartment in which to create the Events rule. An Events rule matches events emitted by resources in its compartment and any child compartments.
- Create or identify a Notifications topic, Stream, or Function to use as the rule action. Ensure that you have permission to manage Events rules and access the chosen action resource. An administrator can grant the required permissions. See Getting Started with Events.
- If you plan to receive Data Safe audit alerts, register the database as a Data Safe target, enable audit collection, and configure the required alert policies. See Subscribe to Oracle Data Safe Events below. Oracle Data Safe requires audit collection and enabled alert policies to generate alerts.
Create a Rule for Autonomous AI Database Events
- In the OCI Console, go to Observability & Management, select Events Service, and then select Rules.
- Select the compartment that contains the resource you want to monitor, or a parent compartment. Select Create Rule.
- Enter a display name. Under Rule Conditions, select Event Type. For Service Name, select Database, then select one or more event types.
- To narrow the rule to a particular resource, add an Attribute condition. Select Validate rule to check whether an example event matches the rule.
- Under Actions, select Notifications, Streaming, or Functions, then choose the existing destination. To send matching events to multiple destinations, select Add Action.
- Select Create Rule. The rule routes matching events when it is active and enabled.
You can include multiple event types in one rule. For more information, see Overview of Events and Creating an Events Rule.
Tip:
To send a broad set of events to a stream, use the event type filter com.oraclecloud.databaseservice.*. It can match Database service events for other resources in the rule’s compartment and its child compartments. Some event types use a different prefix. For example, an Autonomous Container Database reminder uses com.oraclecloud.dbaas. See Matching Events with Filters and the Autonomous AI Database on Dedicated Exadata Infrastructure.
Send Events to a Notifications Topic
Use Notifications to deliver selected events to subscribers through email, HTTPS endpoints, Slack, PagerDuty, Functions, and other supported protocols. Create a topic and add one or more subscriptions. Then select the topic as the Notifications action in the Events rule.
All Email and HTTPS subscriptions remain pending until the recipient confirms them. For more information, see Creating a Subscription and Overview of Notifications.
Send Events to a Stream or Another Service
Use Streaming when an application needs to read and process event messages. Create a stream, configure its partition count and retention period, and select it as the Streaming action in the Events rule. Stream messages are retained for 24 hours to seven days. See Creating a Stream.
A consumer can read messages from the stream using the Streaming API, an SDK, or a Kafka-compatible client, and forward them to an external monitoring or security system. To retain messages in OCI beyond the stream’s retention period, create a Connector Hub connector with the stream as its source and Object Storage as its target. Connector Hub can also route stream data to Log Analytics, Functions, Notifications, or another stream. See Consuming Messages and Creating a Connector with a Streaming Source.
Tip: To inspect recently delivered messages, open the stream’s Recent messages page. Messages from streams that use private endpoints aren’t displayed in the console. Use a consumer to read them. See Showing Recent Messages in a Stream.
Subscribe to Oracle Data Safe Events
Oracle Data Safe emits events when it generates audit alerts and when Data Safe resources change. For example, Alert Generated (com.oraclecloud.datasafe.generateauditalert) indicates that an audit alert was generated. Alert Generation Throttled (com.oraclecloud.datasafe.throttlealertgeneration) indicates that Data Safe temporarily paused an alert policy after it exceeded 1,000 alerts in a 10-minute interval. See Event Types for Oracle Data Safe for the complete list.
Note: Registering an Autonomous AI Database on Dedicated Exadata Infrastructure with Oracle Data Safe strictly requires an Oracle Data Safe private endpoint.
To receive audit alert events, register the database as a Data Safe target. See Register an Autonomous AI Database or Register an Oracle Cloud@Customer Database. Configure the audit policy or the applicable security policies that records the activity, start audit trail collection, and apply an alert policy to the target. Data Safe generates an Alert Generated event when collected audit data matches an enabled alert policy. See Configure Auditing and Alerts and Alerts Overview.
- In Events Service, create a separate rule in the compartment that contains the Data Safe target, or in a parent compartment. The Data Safe target can be in a different compartment from the Autonomous AI Database.
- Under Rule Conditions, select Event Type and the Data Safe service. Select Alert Generated and, optionally, Alert Generation Throttled. Add audit trail or assessment event types as needed.
- Choose a Notifications topic, stream, or Function as the action. Validate the rule with an example event, then select Create Rule.
Note: An Autonomous AI Database event and a Data Safe audit alert are different event types. To receive Data Safe audit alerts, include Alert Generated from the Data Safe service in an Events rule.
Verify Event Delivery
- For an Autonomous AI Database event, check the action destination after the matching operation or condition occurs. For a Data Safe audit alert, first confirm that Data Safe generated the alert, then check the action destination.
- In a delivered message,
eventTypeidentifies the event, eventTime records when it occurred,eventIDidentifies the message, anddata.resourceIdidentifies the resource associated with the event. Critical and warning Autonomous AI Database events include more details indata.additionalDetails. Data Safe audit alert events include alert and target details in that field. - If a message does not arrive, confirm that the rule is enabled, its event type and compartment match, the action destination is available, and any Notifications subscription is confirmed.
Note: Standard OCI service events, metrics, and logs for Autonomous AI Database on Dedicated Exadata Infrastructure also apply to Multicloud deployments. Oracle Database@AWS provides additional monitoring and management services. See Monitor Oracle AI Database@AWS.