To view or change properties of a log or alert

Using the Windows interface 

1.

Open Performance

2.

Double-click Performance Logs and Alerts.

3.

Click Counter Logs, Trace Logs, or Alerts.

4.

In the details pane, double-click the name of the log or alert.

5.

View or change the log properties as needed.

Tool to modifyProperties to defineTab to use

Alerts

Comment, counters, alert thresholds, and update interval

General

Alerts

Actions to take when an event occurs: run a program, send a message, start a counter log, update the event log

Action

Counter logs

Counter log counters and update interval

General

Counter logs

Counter log file comment, file type, file size limits, path and name, automatic naming parameters

Log Files

Counter logs

Manual or automated start and stop methods and schedule

Schedule

Trace logs

Trace log providers and events to log

General

Trace logs

Trace log comment, file size limits, path and name, automatic naming parameters

Log Files

Trace logs

Trace log buffer size, limits, and transfer interval

Advanced

Note

To open Performance, click Start, click Control Panel, click Performance and Maintenance, click Administrative Tools, and then double-click Performance

To start or stop a log or alert, right-click its name in the details pane, and click Start or Stop as appropriate. This overrides any scheduled start and stop settings, resetting the start and stop mode to manual.

Using a command line 

1.

Open Command Prompt

2.

Type the appropriate command below:

ActionCommand

To update counter log counters and the update interval.

logman update collection_name -c {path [path...]} | -cf {filename} -si [[hh:]mm:]ss

To update a counter log collection, file type, file size limits, path and name, and automatic naming parameters.

logman update collection_name -f {bin | bincirc | csv | tsv | SQL} -max value -o path -v {nnnnn | mmddhhmm}

To update manual to automated start and stop methods and schedule.

logman update collection_name -b M/d/yyyy h:mm:ss [AM | PM] -e M/d/yyyy h:mm:ss [AM | PM] -r

To update trace log providers and events to log.

logman update collection_name -p provider

To update a trace log collection, file type, file size limits, path name, and automatic naming parameters.

logman update collection_name -f {bin | bincirc} -max value -o path -v {nnnnn | mmddhhmm}

To update a trace log's buffer size, limits, and transfer interval.

logman update collection_name -bs {value} -nb {min max} -ft [[hh:]mm:]ss

ValueDescription

update collection_name

Updates the collection query named collection_name. For counter collections, modifications to the query will stop, and then restart the collections.

-c {path [path...]} | -cf {filename}

Specifies the performance counter path to log (path), or specifies the pathname of the log file that lists these counters (-cf filename). To list multiple counter paths, separate the command line by a space, or use the -cf option to list counter paths in an input file, one per line. Use this format [\\computer]\object[instance]\counter] for each counter path where:

Computer is the optional computer name or the IP address of a remote computer. If a computer name is not supplied, the local computer will be used by default.

Object is the performance counter object (process or memory).

Instance (if any) is the performance object (process).

Counter is the performance counter for the object (processor time).

-si [[hh:]mm:]ss

Specifies the update interval for counter collection in hours, minutes, and seconds.

-f bin | bincirc | csv | tsv | SQL

Specifies the file format used for collecting performance counter and trace data. You can use binary (bin), circular binary (circbin), comma (csv) and tab (tsv) separated, or SQL database (SQL) formats when collecting performance counters. If a file format is not specified, it defaults to binary. Binary (bin) and circular binary (circbin) are the only types supported for trace collections.

-max {value}

Specifies the maximum size of the collected log file in megabytes. If the log file exceeds the maximum size, the collection will stop. For a SQL database, the maximum size is the number of records to be written.

-o path

Specifies the pathname of the output file that collects performance counter or trace data. By default, the collection log file name is the collection query name suffixed by either .blg for performance counters, or .etl for trace data.

-v {nnnnn | mmddhhmm}

Attaches the version control information to the end of the output file and path name. Use numeric nnnnn format, or date format mmddhhmm (month, day, 24-hour, minute) for version control.

-b M/d/yyyy h:mm:ss[AM | PM]

Specifies the begin-time for collections in a 24-hour format. You can also specify begin-time for collections in a 12-hour format by adding AM or PM in the command line. By default, the current day and time is used unless otherwise specified.

-e M/d/yyyy h:mm:ss[AM | PM]

Specifies the end-time for collections in a 24-hour format. You can also specify end-time for collections in a 12-hour format by adding AM or PM in the command line. By default, the current day and time is used unless otherwise specified.

-r -[-]r

Repeats the collection every day at the time periods specified by the -b and -e options. This is valid only for begin- and end-times specified on the same day, month, and year.

-[-]r turns off the repeat option.

-p {provider [flags [level]]}

Specifies the name of the provider.

-bs {value}

Specifies the buffer size in n kilobytes for the trace log.

-nb {min max}

Specifies the minimum and maximum number of buffers for the trace log.

-ft [[hh:]mm:]ss

Specifies whether the buffer will be flushed, and the interval at which the buffer will be flushed.

Note

To open command prompt, click Start, point to All Programs, point to Accessories, and then click Command Prompt

To view the complete syntax for this command, at a command prompt, type:

logman /?

Related Topics

Logman

Define counters and thresholds for an alert

Define actions for an alert

Define trace log buffers

Select trace log providers and events

Define start or stop parameters for a log or alert

Set file parameters for a log

Add counters to a log

Remove counters from a log or alert



© 2014 Microsoft Corporation. All rights reserved. Contact Us |Terms of Use |Trademarks |Privacy & Cookies