In this blog, I will describe a new feature of VMware Log Intelligence which allows you to forward logs to OnPrem vRealize Log Insight
You will be asking why would you want to do this. This is not applicable to each and every environment.
There are a couple of use cases which I can think. There might be other scenarios as well.
- VMware Cloud on AWS logs
- VMware Log Intelligence is the only logging solution which gives you Audit and NSX Logs from VMware Cloud on AWS. If you have OnPrem vRealize Log Insight which is your centralized logging server than you can forward VMware Cloud on AWS logs from Log Intelligence
- OnPrem vRealize Log Insight Server for long term archival and compliance restrictions
Steps
1 - Cloud Proxy Appliance
We will need to have a Cloud Proxy deployed in your OnPrem VC which will be talking to the vRealize Log Insight server. In my Introduction and Getting Start blog, I have mentioned the procedure how to deploy Data Collector (renamed to Cloud Proxy) in case you are not aware of the same http://bit.ly/2MhvsX9
2 - Configure Log Forwarding in Log Intelligence
Authenticate to Log Intelligence and Expand Manage and click Log Forwarding which will open Log Forwarding Page which lists the existing forwarding rules and allows you to configure new one as well
Click New Configuration. This will open Configuration Page and ask for the details of the log forwarding rule
Input
|
Description
|
Name
|
Display Name of the rule
|
Cloud Proxy
|
A collector which will be used to forward logs to vRealize log insight
|
Endpoint Type
|
There are 3 options as of today.
Default, vRealize Log Insight and Splunk
As we are going to forward to vRealize log insight we will select the same
|
Endpoint URL
|
https://< loginsightserver IP or hostname >/api/v1/events/ingest/test-agent
|
Tags (Optional)
|
If you would like to add tags for the logs being forwarded you can add that as well
|
Headers (Optional)
|
vRealize log insight doesn’t require any headers however if your endpoint needs then you can use the same for e.g. If you are forwarding to Splunk then you will need to authorization header
|
Query
|
As an example, we want to forward logs/events which shows the successful authentication event on the VMware Cloud VC
text contains vim.event.UserLoginSessionEvent
|
Click Save once you have filled all the information
Wait for a couple of mins and ensure Events Posted numbers starts to increase. This would be logs have started forwarding
3 - Verify in vRealize Log Insight
Now you can log in to your vRealize log insight to search the forwarded logs. As an example, I will use the tag which we added in our log forwarding configuration rule in the query
environment contains vmwarecloud
This way you can forward specific logs from Log Intelligence to your OnPrem vRealize Log Insight. Depending on your use case you can create multiple log forwarding rules.