Configuring the syslog to use TLS streamed over TCP for NSX ALB can only be accomplished through the console because these aren’t exposed via UI. The user interface only allows the specification of UDP. I used self-signed certificates for the AVI controller and AOL, but the process is identical when using CA-signed certificates.
1. Firstly, the certificate for the AVI (controller) needs to be added in the SSL/TLS Certificates. Additionally, the Aria Operations for Logs certificate should be added to a newly created PKI Profile, ensuring that CRL checking is disabled.
SSL/TLS Profile: go to Templates -> Security-> SSL/TLS Certificates
![](https://i0.wp.com/offerpalmedia.com/wp-content/uploads/2024/05/nsx-alb-aria-operations-for-logs-as-a-syslog-over-tls.png?resize=1015%2C501&ssl=1)
PKI Profile: go to Templates -> Security -> PKI Profile
![](https://i0.wp.com/offerpalmedia.com/wp-content/uploads/2024/05/nsx-alb-aria-operations-for-logs-as-a-syslog-over-tls-1.png?resize=1024%2C742&ssl=1)
![](https://i0.wp.com/offerpalmedia.com/wp-content/uploads/2024/05/nsx-alb-aria-operations-for-logs-as-a-syslog-over-tls-2.png?resize=561%2C506&ssl=1)
2. Next, SSH into the controller using the admin account. After entering ‘shell’, you will be prompted to input your credentials again and run below commands:
> configure alertsyslogconfig AOL-syslog
alertsyslogconfig> syslog_servers
alertsyslogconfig:syslog_servers> syslog_server 192.168.79.1
alertsyslogconfig:syslog_servers> syslog_server_port 6514
alertsyslogconfig:syslog_servers> tls_enable
alertsyslogconfig:syslog_servers> no udp
alertsyslogconfig:syslog_servers> ssl_key_and_certificate_ref System-Default-Portal-Cert
alertsyslogconfig:syslog_servers> pkiprofile_ref vrli
alertsyslogconfig:syslog_servers> save
alertsyslogconfig> where
alertsyslogconfig> save
tls_enable – set to true;
no udp – TCP port will be used;
pkiprofile_ref – name of PKI profile created for AOL certificate in step 1;
ssl_key_and_certificate_ref – certificate used for NSX ALB controller selected in step 1;
![](https://i0.wp.com/offerpalmedia.com/wp-content/uploads/2024/05/nsx-alb-aria-operations-for-logs-as-a-syslog-over-tls-3.png?resize=892%2C388&ssl=1)
![](https://i0.wp.com/offerpalmedia.com/wp-content/uploads/2024/05/nsx-alb-aria-operations-for-logs-as-a-syslog-over-tls-4.png?resize=729%2C528&ssl=1)
The syslog should be immediately visible in the NSX ALB UI:
![](https://i0.wp.com/offerpalmedia.com/wp-content/uploads/2024/05/nsx-alb-aria-operations-for-logs-as-a-syslog-over-tls-5.png?resize=1024%2C442&ssl=1)
3. Add notification to Alert Actions: go to Operations -> Alerts -> Alert Actions and edit each action, where you wish to include your recently configured syslog server.
![](https://i0.wp.com/offerpalmedia.com/wp-content/uploads/2024/05/nsx-alb-aria-operations-for-logs-as-a-syslog-over-tls-6.png?resize=1024%2C399&ssl=1)
4. To confirm that everything is functioning correctly, you can check the logs at: /var/lib/avi/log/alert_notifications_debug.log
![](https://i0.wp.com/offerpalmedia.com/wp-content/uploads/2024/05/nsx-alb-aria-operations-for-logs-as-a-syslog-over-tls-7.png?resize=1024%2C73&ssl=1)
5. View at NSX Advanced Load Balancer dashboards in Aria Operations for Logs:
![](https://i0.wp.com/offerpalmedia.com/wp-content/uploads/2024/05/nsx-alb-aria-operations-for-logs-as-a-syslog-over-tls-8.png?resize=1024%2C464&ssl=1)