Real-Time Events
Guardrails needs to know when resources change in your OCI tenancy so it can update the CMDB, evaluate controls, and take enforcement actions. OCI uses an Event Poller that queries the OCI Audit Log via the Logging Search API to detect changes.
How It Works
The OCI Event Poller periodically queries the OCI Logging Search API across all subscribed regions in your tenancy. It uses the _Audit_Include_Subcompartment virtual log group to retrieve audit events for the entire tenancy in a single query per region, then routes those events to the correct compartment or tenancy resource.
Key characteristics:
- Multi-region: Polls all subscribed regions in parallel (configurable concurrency, default 5 concurrent regions).
- Server-side filtering: Excludes read-only operations (GET, HEAD), failed requests (HTTP 400+), and known non-modifying operations before events reach Guardrails.
- Client-side filtering: Additional pattern-based filtering via the Excluded Events policy.
- Deduplication: Only processes "operation completed" events, filtering out duplicate in-progress events.
Event Poller
The Event Poller is enabled by default when you connect a tenancy and requires no additional OCI infrastructure. It works immediately using the API key credentials you provided during the connection wizard.
| Event Poller | |
|---|---|
| How it works | Guardrails periodically queries the OCI Logging Search API for recent audit events. |
| Latency | 1–10 minutes (configurable polling interval). |
| OCI infrastructure | None. Guardrails uses the Logging Search API directly. |
| Setup complexity | None. Enabled by default. |
| Recommended for | All environments. |
[!NOTE] Unlike AWS, which offers multiple event delivery mechanisms (polling, global event handlers, regional event handlers), OCI currently uses the Event Poller as the primary event detection mechanism. The poller is efficient because the Logging Search API supports tenancy-wide audit queries.
Guides
| Guide | Description |
|---|---|
| Event Poller | Configure polling frequency, window, and excluded event patterns. |