You can use these examples when building your queries in the Explore Logs page of vRealize Log Insight.
Query for all heartbeat events reported by the ESX/ESXi hostd process yesterday between 9-10am
Important:
vRealize Log Insight indexes complete, alphanumeric, hyphen, and underscore characters.
To query for all heartbeat events reported by the ESX/ESXi hostd process:
- In the search text box, type heartbeat*.
- Define a filter.
- Select appname from the first drop-down menu.
- Select contains from the second drop-down menu.
- Type hostd in the value text box.
- Define the time range.
- In the Time Range drop-down menu select Custom.
- In the first text box, enter yesterday's date and 9am.
- In the second text box, enter yesterday's date and 10am.
- Click the Search button.
Search for a Group of Hosts that Have a Common String in Their Names
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.
- Leave the search text box empty.
- Define the filter.
- Select hostname from the field drop-down menu.
- Select starts with from the operator drop-down menu.
- 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.
- Click the Search button.
Query for all errors reported by vCenter Server tasks, events, and alarms
To query for all errors reported by vCenter Server tasks, events, and alarms:
- In the search text box, type error.
- Define a filter.
- Select vc_event_type from the first drop-down menu.
- Select the exists operator from the second drop-down menu.
- Click the Search button.
Query for SCSI latency over one second as reported by ESX/ESXi
To query for SCSI latency over one second as reported by ESX/ESXi:
- In the search text box, type scsi latency "performance has".
- Define a filter.
- Select vmw_vob_component from the first drop-down menu.
- Select the contains operator from the second drop-down menu.
- Type scsiCorrelator in the text box.
- Define a second filter.
- Select vmw_latency_in_micros from the first drop-down menu.
- Select the > operator from the second drop-down menu.
- Type 1000000 in the text box.
- Click the Search button.
Query for events in an index partition
To query for events in an index partition:
- Leave the search text box empty.
- Define the following filter.
- Select _index from the first drop-down menu.
- Select the is operator from the second drop-down menu.
- Enter the partition name in the text box. You can use one of the autocomplete suggestions.
- Click the Search button.