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:

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 worksGuardrails periodically queries the OCI Logging Search API for recent audit events.
Latency1–10 minutes (configurable polling interval).
OCI infrastructureNone. Guardrails uses the Logging Search API directly.
Setup complexityNone. Enabled by default.
Recommended forAll 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

GuideDescription
Event PollerConfigure polling frequency, window, and excluded event patterns.