To prevent log data loss in the event of a disaster, you configure log forwarding in vRealize Log Insight in the first VMware Cloud Foundation instance to a second VMware Cloud Foundation instance.
UI Procedure
- Log in to vRealize Log Insight at https://<vrealize_log_insight_fqdn> with a user assigned the Super admin role.
- On the main navigation bar, click Administration.
In the left pane, under Management, click Log management.
Click the Log forwarding tab.
Click New destination, configure the following settings, configure the remaining settings according to your VMware Cloud Foundation Planning and Preparation Workbook.
Setting
Value
Protocol
Ingestion API
Use SSL
Selected
To verify that the connection settings are correct, click Test.
Click Save.
Repeat this procedure for all additional vRealize Log Insight instances in all additional VMware Cloud Foundation instances.
PowerShell Procedure
Start Windows PowerShell.
Replace the values in the sample code with values from your VMware Cloud Foundation Planning and Preparation Workbook and run the commands in the PowerShell console.
$sddcManagerFqdn = "sfo-vcf01.sfo.rainpole.io" $sddcManagerUser = "administrator@vsphere.local" $sddcManagerPass = "VMw@re1!" $destinationName = "sfo to lax" $destinationFqdn = "lax-vrli01.lax.rainpole.io" $destinationProtocol = "CFAPI" $destinationPort = 9543
Perform the configuration by running the command in the PowerShell console.
Add-vRLILogForwarder -server $sddcManagerFqdn -user $sddcManagerUser -pass $sddcManagerPass -name $destinationName -fqdn $destinationFqdn -protocol $destinationProtocol -port $destinationPort -acceptCert true -sslEnabled true -testConnection true