Set up the export of device audit records to a syslog server

  1. Using the same account that you used to install BlackBerry UEM, open a command prompt as an administrator and run the following to upload a device audit syslog CA certificate. The commands cannot contain any line breaks.
    SET BESRoot=C:\Program Files\BlackBerry\UEM
    
    "C:\BlackBerry\BlackBerry UEM <version>\db\Database\tools\keymaster.bat" -keystore "<CA_certificate_path>" load -BESRoot "%BESRoot%" -keystoreType DEVICE_AUDITLOG_SYSLOG_CACERTS -trusted
    • <version> is the version number used in the installation file path (for example, 12.24.0).
    • <CA_certificate_path> is the folder path to the certificate file (.cer), for example, "C:\temp\syslog-ca.cer".
  2. Run the following to configure mutual authentication and upload a device audit syslog client key pair. The commands cannot contain any line breaks.
    SET BESRoot=C:\Program Files\BlackBerry\UEM
    
    "C:\BlackBerry\BlackBerry UEM <version>\db\Database\tools\keymaster.bat" -keystore "<audit_certificate_path>" -password "<certificate_password>" load -BESRoot "%BESRoot%" -keystoreType DEVICE_AUDITLOG_SYSLOG_CLIENT
    • <version> is the version number used in the installation file path (for example, 12.24.0).
    • <audit_certificate_path> is the folder path to the device audit certificate file.
    • <certificate_password> is the certificate password.
  3. Prepare the script in Script to enable the export of device audit records to syslog:
    1. Change the hostname and port number to match your environment. For example:
      SET @v_hostname = 'localhost';
      SET @v_port = '514';  
    2. Set any syslog specific formatting attributes as described in the script.
  4. Execute the script against the UEM database.
  5. Restart the BlackBerry UEM Core service.