SystemMonitor.SetLogViewRange method

Sets the starting date used to retrieve counter values from the log files.

Syntax

SystemMonitor.SetLogViewRange( _
  ByVal StartTime As Date, _
  ByVal StopTime As Date _
)

Parameters

StartTime [in]

Starting date used to retrieve counter values from the log files.

StopTime [in]

Ending date used to retrieve counter values from the log files.

Return value

This method does not return a value.

Remarks

SYSMON retrieves counter values from the log files that falls within the start and stop dates, inclusively.

If you do not specify a start date or if you set the start date to a date value that is outside the range of date values found in the log files, SYSMON changes the value to the earliest date value found in the log files. If the start value is greater than the stop value, SYSMON changes the start value to be the same value as the stop value.

If you do not specify a stop value or you set the stop value to a date value that is later than the last date contained in the log file, SYSMON changes the value to the latest date value found in the log files. If the stop value is less than the stop value, SYSMON changes the stop value to be the same value as the start value.

If you specify a start and stop date, you should specify the dates before setting SystemMonitor.DataSourceType. If you set the dates after setting SystemMonitor.DataSourceType, then only the first counter value is retrieved from the log file.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
DLL
Sysmon.ocx

See also

SystemMonitor

SystemMonitor.GetLogViewRange