If you are actively troubleshooting a problem and you know the URL where the problem exists, you can trace that specific URL. If you do not know which URL is causing the problem, but you suspect it may be an Active Server Page (ASP) or Microsoft ASP.NET page, you can trace a set of URLs.
Request-based tracing for a specific URL or set of URLs uses the following commands or switches:
logman start | Starts the trace session using Logman.exe as the controller. |
logman stop | Stops the trace session. |
session name | Any name you want to give this trace session. |
-pfprovider file name | Identifies the name of the provider file. This can also be a path to the file. For more information, see How to Create a Provider File for Request-Based Tracing. |
-ets | Tells Logman.exe to start the trace session immediately. |
1. | Configure the TraceUriPrefix Metabase Property for the URL you want to trace.
| ||||
2. | Set the UseUrlFilter flag.
| ||||
3. | Save and close the provider file. | ||||
4. | From a command prompt, type logman startsession name-pfprovider file name-ets and press ENTER. For example: logman start AllAspTrace -pf AllAspUrls -ets | ||||
5. | Event Tracing for Windows prints to the screen details about the trace session you just started, including the name of the session, the file name where the trace data will be collected (session name.etl by default), the providers listed in the provider file, and whether or not the command was successful. | ||||
6. | Allow the trace session to run until you have reproduced the problem or until your sites have processed enough requests to produce a manageable data set. | ||||
7. | From the command prompt, type logman stopsession name-ets and press ENTER. To view the trace data, see How to Process and View Trace Log Files. |
1. | Configure the TraceUriPrefix Metabase Property for the URLs you want to trace.
| ||||||
2. | Set the UseUrlFilter flag.
| ||||||
3. | Save and close the provider file. | ||||||
4. | From a command prompt, type logman startsession name-pfprovider file name-ets and press ENTER. For example: logman start AllAspTrace -pf AllAspUrls -ets | ||||||
5. | Event Tracing for Windows prints to the screen details about the trace session you just started, including the name of the session, the file name where the trace data will be collected (session name.etl by default), the providers listed in the provider file, and whether or not the command was successful. | ||||||
6. | Allow the trace session to run until you have reproduced the problem or until your sites have processed enough requests to produce a manageable data set. | ||||||
7. | From the command prompt, type logman stopsession name-ets and press ENTER. To view the trace data, see How to Process and View Trace Log Files. |