This guide will explain how to enable the Real-Time Unified Audit (UA) Logs feature on a Linux system using the ThreatLocker CLI tool (threatlockerctl).
Prerequisites
Before enabling the Real-Time Unified Audit log file, confirm the following:
- The ThreatLocker agent is installed on the Linux machine.
- You have
sudoor root privileges. - You have terminal access to the Linux machine.
- The machine has network connectivity to ThreatLocker services.
Procedure
- Open a Terminal
Sign in to the Linux machine and open a terminal session.
- Verify the CLI Option Is Available
Run the following command:
sudo threatlockerctl --help
Review the available options and confirm that the following option is listed:
--real-time-ua {enable|disable} [all]
If this option is not listed, verify that the ThreatLocker agent is installed and up to date.
- Enable Real-Time Unified Audit Logging
Run the following command:
sudo threatlockerctl --real-time-ua enable all
The optional parameter ‘all’ will enable baseline logs in the Real Time Unified Audit; by default, these logs are not saved.
- Authenticate
When prompted, enter the sudo password for the Linux machine.
- Confirm Successful Enablement
After the command runs successfully, the expected response is:
Server response: 0 Success
Log Location
Once Real-Time Unified Audit logging is enabled, logs are written to the following location:
/var/log/threatlocker-ua/realtimeua.log
How to Disable Real-Time Unified Audit Logs
To disable Real-Time Unified Audit Logs, run:
sudo threatlockerctl --real-time-ua disable all
Troubleshooting
If Real-Time Unified Audit Logs do not enable successfully, check the following:
- Confirm the ThreatLocker Agent Is Installed
Verify that the ThreatLocker agent is installed on the Linux machine before running the command.
- Verify Permissions
The command requires elevated privileges. Run the command with sudo or as root.
- Confirm the CLI Option Exists
Run:
sudo threatlockerctl --help
Confirm that the following option appears in the help output:
--real-time-ua {enable|disable} [all]
- Check Network Connectivity
Ensure the Linux machine can communicate with ThreatLocker services.
Help Center