text
stringlengths
0
4.23k
<value>
<name>
<user [password]>
*
<[start] [stop] [[start] [stop] [...]]>
<[[hh:]mm:]ss>
<M/d/yyyy h:mm:ss[AM|PM]>
<M/d/yyyy h:mm:ss[AM|PM]>
<[[hh:]mm:]ss>
<path|dsn!log>
<nnnnnn|mmddhhmm>
<task>
<value>
<[[hh:]mm:]ss>
<filename>
<threshold [threshold [...]]>
<name>
<task>
<argument>
Remarks
Examples
To create a new alert called, new_alert, which fires when the performance counter % Processor time in the Processor(_Total) counter group exceeds the counter value of 50, type:
logman create alert new_alert -th \Processor(_Total)\% Processor time>50
Note
The defined threshold value is based on the value collected by the counter, so in this example, the value of 50 equates to 50% Processor time.
logman create api
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Creates an API tracing data collector.
Syntax
logman create api <[-n] <name>> [options]
Parameters
Parameter
Description
-s <computer name>
Performs the command on the specified remote computer.
-config <value>
Specifies the settings file containing command options.
[-n] <name>
Name of the target object.
-f <bin|bincirc>
Specifies the log format for the data collector.
-[-]u <user [password]>
Specifies the user to Run As. Entering a * for the password produces a prompt for the password. The password is not displayed when you type it at the password prompt.
-m <[start] [stop] [[start] [stop] [...]]>
Changed to manual start or stop instead of a scheduled begin or end time.
-rf <[[hh:]mm:]ss>
Run the data collector for the specified period of time.
-b <M/d/yyyy h:mm:ss[AM|PM]>
Begin collecting data at the specified time.
-e <M/d/yyyy h:mm:ss[AM|PM]>
End data collection at the specified time.
-si <[[hh:]mm:]ss>
Specifies the sample interval for performance counter data collectors.
-o <path|dsn!log>
Specifies the output log file or the DSN and log set name in a SQL database.
-[-]r
Repeat the data collector daily at the specified begin and end times.
-[-]a
Append an existing log file.
-[-]ow
Overwrite an existing log file.