text stringlengths 0 4.23k |
|---|
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 update an existing counter called perf_log, changing the sample interval to 10, the log format to CSV, and adding versioning to the log file name in the format mmddhhmm, type: |
logman update counter perf_log -si 10 -f csv -v mmddhhmm |
logman update trace |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 |
Updates the properties of an existing event trace data collector. |
Syntax |
logman update 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]> |
Begins collecting data at the specified time. |
-e <M/d/yyyy h:mm:ss[AM|PM]> |
Ends data collection at the specified time. |
-o <path|dsn!log> |
Specifies the output log file or the DSN and log set name in a SQL database. |
-[-]r |
Repeats the data collector daily at the specified begin and end times. |
-[-]a |
Appends an existing log file. |
-[-]ow |
Overwrites an existing log file. |
-[-]v <nnnnnn|mmddhhmm> |
Attaches file versioning information to the end of the log file name. |
-[-]rc <task> |
Runs the command specified each time the log is closed. |
-[-]max <value> |
Maximum log file size in MB or maximum number of records for SQL logs. |
-[-]cnf <[[hh:]mm:]ss> |
When time is specified, creates a new file when the specified time has elapsed. When time is not specified, creates a new file when the maximum size is exceeded. |
-y |
Answers yes to all questions without prompting. |
-ct <perf|system|cycle> |
Specifies the Event Trace Session clock type. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.