1 out of 1 rated this helpful - Rate this topic

SystemMonitor.Relog method

Applies to: desktop apps only

Relogs the counter data to a new file. You can also use this method to specify a new file type and to reduce the number of samples contained in the log file.

Syntax

SystemMonitor.Relog( _
  ByVal fileName As String, _
  ByVal fileType As SysmonFileType, _
  ByVal filter As Long _
)

Parameters

fileName [in]

File path of the log file. You can specify the path as an absolute, relative, or UNC path. The log file name extension must be either .blg, .tsv, or .csv. If a folder in the path does not exist, SYSMON will create it. If the file exists, the file is overwritten. SYSMON applies the default ACLs from the parent directory.

fileType [in]

Format of the counter data saved to the log file. You can specify either SysmonFileType.sysmonFileBlg, SysmonFileType.sysmonFileCsv, or SysmonFileType.sysmonFileTsv.

filter [in]

Number of samples from the old log files to save in the new log file. Specify 1 to save every sample from the old files to the new files. Specify 2 to save one out of every two samples from the old file. Specify 3 to save one out of every three samples from the old file. And so on.

Return value

This method does not return a value.

Remarks

This method uses the log files contained in the SystemMonitor.LogFiles collection to relog the counter data.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

DLL

Sysmon.ocx

See also

SystemMonitor
SystemMonitor.SaveAs

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ