You can use these examples when building your queries on the Interactive Analytics tab of Log Insight.

Important

Log Insight indexes complete, alphanumeric, hyphen, and underscore characters.

To query for all heartbeat events reported by the ESX/ESXi hostd process:

1

In the search text box, type heartbeat*.

2

Define a filter.

a

Select appname from the first drop-down menu.

b

Select contains from the second drop-down menu.

c

Type hostd in the value text box.

3

Define the time range.

a

In the Time Range drop-down menu select Custom.

b

In the first text box, enter yesterday's date and 9am.

c

In the second text box, enter yesterday's date and 10am.

4

Click the Search button.

Assume that you have several hosts that have a host with the following name: w1-stvc-205-prod3, and another host that is called w1-stvc-206-prod5.

To find all logs for both hosts, create the following query.

1

1. Leave the search text box empty.

2

Define the filter.

a

Select hostname from the field drop-down menu.

b

Select starts with from the operator drop-down menu.

c

Type w1-stvc in the value text box.

Alternatively, you can use the contains operator, but then you must use a glob in the search value. In this example, you must type w1-stvc-* in the value text box.

3

Click the Search button.

To query for all errors reported by vCenter Server tasks, events, and alarms:

1

In the search text box, type error.

2

Define a filter.

a

Select vc_event_type from the first drop-down menu.

b

Select the exists operator from the second drop-down menu.

3

Click the Search button.

To query for SCSI latency over one second as reported by ESX/ESXi:

1

In the search text box, type scsi latency "performance has".

2

Define a filter.

a

Select vmw_vob_component from the first drop-down menu.

b

Select the contains operator from the second drop-down menu.

c

Type scsiCorrelator in the text box.

3

Define a second filter.

a

Select vmw_latency_in_micros from the first drop-down menu.

b

Select the > operator from the second drop-down menu.

c

Type 1000000 in the text box.

4

Click the Search button.