Why can't Logman start?
Posted
by Bill Paetzke
on Server Fault
See other posts from Server Fault
or by Bill Paetzke
Published on 2010-06-07T20:55:59Z
Indexed on
2010/06/07
21:02 UTC
Read the original article
Hit count: 447
I'm setting up my first logman counter. But it's not working! There is some file or folder permissions problem. Or maybe I wrote the create-counter statement wrong.
Here's my counter commands:
logman create counter BillTest -si 30 -v nnnnnn -max 200 -o "C:\Temp" -c "\Processor(*)\*" "\Memory(*)\*" "\LogicalDisk(*)\*"
logman start BillTest
The first command works. It says counter creation successful.
The second command fails:
Collection "BillTest" did not start, check the application event log for any errors
Here's the error in the Event Viewer:
The service was unable to open the log file C:\Temp_000001.blg for log BillTest and will be stopped. Check the log folder for existence, spelling, permissions, and ensure that no other logs or applications are writing to this log file. You can reenter the log file name using the configuration program. This log will not be started. The error returned is: Access is denied.
I verified that C:\Temp exists. I'm not a permissions guru, but I did set all the accounts in the security tab of that folder to "full control." Still, the logman start command failed with the same error.
I noticed that it was trying to write to C:\Temp_000001.blg instead of C:\Temp\000001.blg. That might be part of the problem. So, I tried to update my counter to "C:\Temp\" instead of "C:\Temp", but that failed with a path-invalid error. Also, all the examples I saw online used did not put a trailing slash. So, no dice there.
I tried this on my machine (Windows XP) and my dev server (Windows Server 2003). Both failed with the same error.
How can I fix this?
© Server Fault or respective owner