You can install or update the vRealize Log Insight Linux agent as a root or non-root user and you can set configuration parameters during installation. After installation, you can verify the installed version.

Prerequisites

  • Read about installation defaults and how to change them at Command-line Options for vRealize Log Insight Agent Installation on Linux.
  • Log in as root or use sudo to run console commands.
  • The vRealize Log Insight Linux agent needs access to syslog and networking services to function. Install and run the vRealize Log Insight Linux agent on runlevels 3 and 5. If you want the vRealize Log Insight Linux agent to work under other runlevels, configure the system appropriately.

Procedure

  1. You can install or upgrade an agent from the console.
    • To install the vRealize Log Insight Linux agent with default configuration settings, open a console and run the following command.
       rpm -i VMware-Log-Insight-Agent-<version-and-build-number>.rpm	  
    • To upgrade the agent without changing current configuration settings, open a console and run the following command.
       rpm -Uhv VMware-Log-Insight-Agent-<version-and-build-number>.rpm
  2. (Optional) You can override the default configuration values for installation or the current configuration values during an update. You do this by specifying options as part of the install or upgrade command.
    sudo <OPTION=value> rpm -i <version-and-build-number>.rpm
  3. (Optional) Verify the installed version by running the following command.
    rpm -qa | grep Log-Insight-Agent 

Example: Linux Agent Install and Update Examples

  • The following command installs the vRealize Log Insight agent for a Linux RPM distribution. It installs the agent on a separate server, assigns a non-default port number, and creates a vRealize Log Insight agent user.
    sudo SERVERHOST=myagentserver SERVERPORT=1234 LIAGENTUSER=liagent rpm -i VMware-Log-Insight-Agent-44.1234.rpm
  • The following command updates the agent with the given rpm file. Current agent configuration is unchanged.
     rpm -Uhv VMware-Log-Insight-Agent-44.1234.rpm