Service auditing for Cloudera Lakehouse Optimizer
On Anywhere Cloud, Cloudera Lakehouse Optimizer records user and system activity and sends audit events through the platform audit gateway with other data services. Use Anywhere Cloud logging and audit export documentation to retain and analyze those events.
Auditing on Anywhere Cloud
On Anywhere Cloud, data services including Cloudera Lakehouse Optimizer push audit events to the cluster audit gateway. The gateway forwards events to the platform auditing backend for your deployment. You can search and review audit activity across services in that backend according to your organization's Anywhere Cloud setup.
Cloudera Lakehouse Optimizer does not require a separate CLO-specific audit store on Anywhere Cloud. Configure cluster audit collection and export in the Anywhere Cloud Console:
- For how the audit service, audit gateway, and audit export relate to telemetry, see Data Service Cluster and Engine Telemetry.
- To configure Audit Export Configuration when you create a data service cluster, see Configuring Audit Exporter Settings.
- To enable or disable audit export during Cloudera Lakehouse Optimizer blueprint deployment, see the Audit Export Configuration step in Configuring Cloudera Lakehouse Optimizer on Anywhere Cloud.
What Cloudera Lakehouse Optimizer audits
Regardless of how events are stored, Cloudera Lakehouse Optimizer emits an audit event for state-changing REST API calls, equivalent CLI operations, and authentication attempts. Categories include:
- Policies: Create, update, delete, view,
subscribe, unsubscribe, on-demand evaluation, and dry-run operations (including
EVALUATE_POLICYand dry-run actions), including failed or denied requests. - Namespaces: Declare, reschedule, pause (for example
PAUSE_NAMESPACE), delete, list, and view operations. - Tables: List, statistics, registry eviction, and
pause or unpause table maintenance (for example
ADD_PAUSED_TABLEand related pause-table APIs). - Tasks: View, list, and event-ingestion trigger operations.
- Configuration: Reconfigure, cache clear, health
check, catalog listing cache refresh (for example
REFRESH_CATALOG_LISTINGS_CACHE), and backup or restore (for exampleCREATE_BACKUPandRESTORE_BACKUP) when those APIs are enabled in your deployment. - API explorer and UI: Operations invoked from the
Cloudera Lakehouse Optimizer landing page API explorer or UI controller,
recorded with
*_UIaction types where applicable. - Authentication: Successful and failed authentication and role resolution for REST and API explorer access, including denied access when a user lacks a Cloudera Lakehouse Optimizer workspace role on Anywhere Cloud.
Requests denied by validation or authorization checks are recorded with a
FAILURE or DENY outcome before the service
returns a response.
Audit event format
Each Cloudera Lakehouse Optimizer audit event is serialized as a JSON object. The following table describes common fields in the payload Cloudera Lakehouse Optimizer emits before the platform audit gateway forwards the event. JSON property names match the service serializer.
| Field | Description |
|---|---|
timestamp |
Time when the audit event is published. |
host |
Host that handled the request. |
serviceName |
Always LAKEHOUSE_OPTIMIZER for Cloudera Lakehouse Optimizer audit events. |
user, clientIp,
role |
Read from the authenticated user session. For login and authentication-failure events, these values are supplied manually. |
action |
Optional. Identifies the REST or UI operation that was attempted
(for example, CREATE_POLICY_DEFINITION or
LOGIN). Omitted from the JSON payload when
unset. |
outcome |
Optional. SUCCESS, FAILURE, or
DENY. Omitted from the JSON payload when
unset. |
message |
Human-readable description of the event. |
resources |
Optional. Resource context for the event, such as policies,
namespaces, tables, catalog, resourceUri, and
taskId when applicable. Omitted from the JSON
payload when unset. |
Audit log files
When dlm.audit.publisher is fs, the filesystem
publisher (FsPublisher) buffers events and writes them as NDJSON lines to
a Hadoop-compatible URI configured with dlm.audit.fs.uri. Audit files
use <basePath>/<prefix>.<sequence>, for example
hdfs:///user/dlm/audit-logs/clo-audit.log.42. Files roll over
based on configured time and event-count thresholds. On startup, Cloudera Lakehouse Optimizer scans existing audit files and resumes writing to
the latest file when appropriate.
On HDFS and local filesystems, default POSIX modes come from dlm.audit.fs.file.permission
and dlm.audit.fs.dir.permission: 640 for audit files
and 750 for the audit base directory (octal).
Cloudera Lakehouse Optimizer does not delete old audit files. Configure external retention such as HDFS quotas, object-store lifecycle policies, or a log-shipping pipeline.
Supported filesystems
This section applies only when the audit publisher is fs
(FsPublisher). It describes where NDJSON audit files can be written
and how the publisher behaves on each storage type. It does not describe how you review compliance audits on Anywhere Cloud production.
With FsPublisher, Cloudera Lakehouse Optimizer supports local
paths, HDFS, and object-store URIs in dlm.audit.fs.uri through the
Hadoop FileSystem API. HDFS supports native append and POSIX file
permissions. Object stores such as Amazon S3 do not support native append or POSIX
permissions; Cloudera Lakehouse Optimizer falls back to read-and-rewrite and
relies on bucket policies for access control. When FsPublisher writes to
object storage, configure bucket versioning, object lock, and restrictive IAM policies
for tamper-evident retention of rolled audit files.
Audit pipeline behavior
If audit initialization fails, Cloudera Lakehouse Optimizer continues to serve requests. Subsequent audit events are dropped, and the service logs a rate-limited warning with the drop count. Monitor the application log for audit pipeline errors regardless of publisher type.
For filesystem publisher settings, see Cloudera Lakehouse Optimizer auditing configuration properties and Configuring auditing for Cloudera Lakehouse Optimizer.
Service auditing on Anywhere Cloud
On Anywhere Cloud, do not configure filesystem-backed audit logs
for Cloudera Lakehouse Optimizer manually. At deploy, ACE already sets dlm.audit.enabled=true and
dlm.audit.awc.enabled=true and uses the AwcAuditPublisher
fully qualified class name explicitly—not only
dlm.audit.publisher=fs plus a flag.
When dlm.audit.awc.enabled=true, even if
dlm.audit.publisher is fs,
AuditPublisherFactory.resolvePublisherKey substitutes
AwcAuditPublisher for FsPublisher. Customers search
compliance events in the platform audit backend, not by tailing
dlm.audit.fs.uri paths such as
s3a://…/audit-logs.
When you deploy Cloudera Lakehouse Optimizer through the Anywhere Cloud Console, you can optionally enable Audit Export Configuration during blueprint deployment. See Configuring Cloudera Lakehouse Optimizer on Anywhere Cloud.
