VCSA Log Insight Agent Install & Configuration

If you don’t already have Log Insight deployed in your environment,  stop reading this immediately and go deploy it! I’ll be here when you get back.

A 25 OSI pack is even included with your vCenter license, see this FAQ. Log Insight is a simple install, and I won’t cover that here. As there is already a ton of great content online. e.g. Check out this post by VirtuBytes.  What I will cover is how to deploy the Log Insight agent on vCenter Server Appliance(VCSA).  VCSA is now THE defacto standard platform for vCenter.  All of my customers are running in production with great success.

Log Insight includes the vSphere Content Pack OOTB, however to populate dashboards that require vCenter related logs(e.g. DRS) we need to install the Log Insight agent.

BEFORE.  You can see I have no DRS related information in the vSphere – DRS Dashboard

DRS-1.png

Before we begin, quick note on my lab.  I’m running vSphere 6.5U1 and Log Insight v4.5

Also ensure you have the necessary firewall ports open.  See the Ports Required for Sources Sending Data section of the official documentation

  1. Login to Log Insight
  2. In the top right click on the 3 bar ‘burger icon’ and select Administration

    DRS-2

  3. In the left menu under Management, click Agents

    DRS-3

  4. In the right pane, scroll down until you see Download Log Agent Version 4.5.0, and click the link to download

    DRS-4

  5. Starting vSphere v6.5, the VCSA is running on VMware’s own Photon OS. The agent installation we need is Linux RPM.  See the Download Agent Installation Files section of the official documentation

    DRS-5

  6. I’m going to use Secure Copy to transfer the RPM to the VCSA.  We will need to enable SSH if it is not already.  Connect to https://VCSA-FQDN:5480 and login as root

    DRS-6

  7. In the Navigator pane, select Access then Edit

    DRS-7

  8. Enable SSH Login and Bash Shell then click OK

    DRS-8

  9. Next upload the RPM to the VCSA. I’m using pscp in my lab, but if you prefer a UI I’d recommend WinSCP.
    Here is the pscp command to copy the RPM to /tmp on the VCSA

    pscp.exe "e:\Operations\Log Insight 4.5\VMware-Log-Insight-Agent-4.5.0-5626690.noarch_192.168.110.24.rpm" root@vcsa-01a.corp.local:/tmp
  10. Launch a SSH session to the VCSA and login as root.  I’m using putty
    putty root@vcsa-01a.corp.local
  11. Type shell to launch a BASH shell
  12. I upload the RPM to /tmp so i need to type cd /tmp
  13. Next type the following to install the agent
    rpm -i VMware-Log-Insight-Agent-4.5.0-5626690.noarch_192.168.110.24.rpm

    Note, there is no need to specify the Log Insight server FQDN as this is included by default.  You can verify this by typing the following if you wish

    grep -A1 server /etc/liagent.ini
  14. Lets go back to Log Insight
  15. We should still be in the Agent section, if not follow steps 2 & 3 above
  16. Click the refresh button, and you should now see your VCSA listed

    DRS-9

  17. The final thing we need to do is associate the appropriate template with the agent.  Think of this like a profile,  we need to tell Log Insight what log files to parse. e.g. /var/log/vmware/vpxd/*.log.  The OOTB vSphere Content Pack includes the necessary templates for vCenter.  When you install additional content packs,  e.g. vRealize Automation this will include the necessary templates
  18. Click the down arrow next to All Agents, and scroll down and select vSphere 6.0 – vCenter (Linux) Complete.  Yes I know I’m using v6.5, but this will suffice until the templates are updated

    .DRS-10.png

  19. Scroll down and click Copy Template 
  20. Give the group a name and click Copy 

    DRS-11

  21. Need to apply a filter to apply the group, in my case I’m going to specify the hostname

    DRS-12

  22. Scroll down to the bottom and click Save New Group
  23. We need to verify the vSphere DRS dashboard is now being populated.  In my lab I loaded up one host with a bunch of VM’s so DRS would kick in and vMotion some VM’s
  24. Click Dashboards 

    DRS-13
    then scroll down until you see VMware – vSphere in the left pane, expand this and click on vSphere – DRS 

    DRS-14.png

  25. Voila!  Should now see this dashboard being populated.

    DRS-17.png

 

 

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s