You can configure vCenter Operations Manager 5.7.1 or later to trigger actions related to Log Insight.

When you enable launch in context for Log Insight, a Log Insight resource is created under the HTTP Post adapter in vCenter Operations Manager. The resource identifier contains the IP address of the Log Insight instance, and is used by vCenter Operations Manager to open Log Insight.

The launch in context options that are related to Log Insight appear in the Actions drop-down menu of the vSphere user interface. You can use these menu items to open Log Insight, and search for log events from an object in vCenter Operations Manager.

The available launch in context action depends on the object that you select in vCenter Operations Manager inventory. The time range of the queries is limited to 60 minutes before you click a launch in context option.

Objects in vCenter Operations Manager vSphere UI and their Corresponding Launch in Context Options and Actions

Object selected in vCenter Operations Manager

Launch in Context Option in the Actions Drop-Down Menu

Action in vCenter Operations Manager

Action in Log Insight

World

Open vCenter Log Insight

Opens Log Insight.

Log Insight displays the Interactive Analytics tab.

vCenter Server

Open vCenter Log Insight

Opens Log Insight.

Log Insight displays the Interactive Analytics tab.

Datacenter

Search for logs in vCenter Log Insight

Opens Log Insight and passes the resource names of all host systems under the selected Datacenter object.

Log Insight displays the Interactive Analytics tab and performs a query to find log events that contain names of hosts within the data center.

Cluster

Search for logs in vCenter Log Insight

Opens Log Insight and passes the resource names of all host systems under the selected Cluster object.

Log Insight displays the Interactive Analytics tab and performs a query to find log events that contain names of hosts within the cluster.

Host System

Search for logs in vCenter Log Insight

Opens Log Insight and passes the resource name of the selected Host object.

Log Insight displays the Interactive Analytics tab and performs a query to find log events that contain the name of the selected Host system.

Virtual Machine

Search for logs in vCenter Log Insight

Opens Log Insight and passes the IP address of the selected virtual machine and the resource name of the related host system.

Log Insight displays the Interactive Analytics tab and performs a query to find log events that contain the IP address of the virtual machine, and the name of the host where the virtual machine resides.

On the Alerts tab, if you select an alert and select Search for logs in Log Insight from the in-context menu, the time range of the query is limited to one hour before the alert is triggered. For example, if an alert was triggered at 2:00 PM, the query in Log Insight displays all log messages that occurred between 1:00 PM and 2:00 PM. This helps you identify events that might have triggered the alert.

You can open Log Insight from metric charts in vCenter Operations Manager. The time range of the query thatLog Insight runs matches the time range of the metric chart.

Note

The time that you see in Log Insight and vCenter Operations Manager metric charts might differ if the time setting of the virtual appliances is different.

The launch in context icon Open the application that is related to the selected element appears on several pages of the Custom user interface, but you can launch Log Insight only from the pages that display Log Insight notification events:

The Alerts Overview page.

The Alert Summary page of a Log Insight notification alert.

The Alerts widgets on your dashboards, when a Log Insight notification alert is selected.

When you select a Log Insight notification event in the Custom user interface, you can choose between two launch in context actions.

Launch in Context Options and Actions in vCenter Operations Manager Custom UI

Launch in Context Option in vCenter Operations Manager

Action in vCenter Operations Manager

Action in Log Insight

Open vCenter Log Insight

Opens Log Insight.

Log Insight displays the Dashboards tab and loads the vSphere Overview dashboard.

Search for Logs in vCenter Log Insight

Opens Log Insight and passes the ID of the query that triggered the notification event.

Log Insight displays the Interactive Analytics tab and performs the query that triggered the notification event.

When you select an alert that has not originated from Log Insight, the launch in context menu contains the Search for VM and Host Logs in vCenter Log Insight menu item. If you select this menu item, vCenter Operations Manager opens Log Insight and passes the identifiers of the object that triggered the alert. Log Insight uses the resource identifiers to perform a search in the available log events.