External Logging
You can configure PrivX to forward audit events to external log collectors. The required configurations are provided separately per supported log collector.
For RPM deployments on RHEL 8 and 9, you can also send local syslog messages through systemd-journald and retain rsyslog forwarding. For configuration steps and sensitive-audit considerations, see Logging Through journald.
AWS CloudWatch
To configure forwarding with the Amazon CloudWatch Events integration:
-
Create an AWS user with permission to publish events. For example, use the following permissions policy. You can choose a different value for
Sid:{"Version": "2012-10-17","Statement": [{"Sid": "examplesid","Effect": "Allow","Action": "events:PutEvents","Resource": "*"}]} -
Obtain the user's access key ID and secret access key. You need these values when configuring the collector in PrivX.
-
Create an event rule in CloudWatch for collecting PrivX logs. Use the following event pattern:
{"source": ["com.ssh.privx"]} -
Configure targets for the rule to associate where to send matching events.
-
In the PrivX Web UI:
- Go to Deployment → Cloud Log Collectors and click Add Log Collector.
- Set Service to Amazon CloudWatch Events and configure the other required fields.
- Click Save to apply your changes.
PrivX sends audit events to the configured AWS destination. Matching events are routed to the rule's targets.
Azure Event Hubs
To forward audit events to Azure Event Hubs:
-
In Azure, register PrivX as an application.
-
In Azure Event Hubs, create an event hub for PrivX. Your Access Control must allow the previously-registered PrivX application to access this hub.
-
[Optional] Create consumers to process events from the hub.
-
In the PrivX Web UI:
- Go to Deployment → Cloud Log Collectors and click Add Log Collector.
- Set Service to Azure Event Hubs and configure the other required fields.
- Click Save to apply your changes.
PrivX sends audit events to the event hub. Configured consumers can read and process these events.