text
stringlengths
0
4.23k
When time is specified, create a new file when the specified time has elapsed. When time is not specified, create a new file when the maximum size is exceeded.
-y
Answers yes to all questions without prompting.
-cf <filename>
Specifies the file listing performance counters to collect. The file should contain one performance counter name per line.
-c <path [path [ ]]>
Specifies performance counter(s) to collect.
-sc <value>
Specifies the maximum number of samples to collect with a performance counter data collector.
/?
Displays context-sensitive help.
<computer name>
<value>
<name>
<bin|bincirc|csv|tsv|sql>
csv
<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>
<path [path [ ]]>
<value>
Remarks
Examples
To create a counter called perf_log using the % Processor time counter from the Processor(_Total) counter category, type:
logman create counter perf_log -c \Processor(_Total)\% Processor time
To create a counter called perf_log using the % Processor time counter from the Processor(_Total) counter category, creating a log file with a maximum size of 10 MB, and collecting data for 1 minute and 0 seconds, type:
logman create counter perf_log -c \Processor(_Total)\% Processor time -max 10 -rf 01:00
logman create trace
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Create an event trace data collector.
Syntax
logman create trace <[-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.
-ets
Sends commands to Event Trace Sessions directly without saving or scheduling.
[-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 an * 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] [...]]>
Changes to manual start or stop instead of a scheduled begin or end time.
-rf <[[hh:]mm:]ss>
Runs the data collector for the specified period of time.
-b <M/d/yyyy h:mm:ss[AM|PM]>