perfmon: logman -a option
HiI hope I am posting this question in right forum.. if it isn't, please help with providing path to correct forum or move it there.Question:I created a perfmon counter log using command:logman create countertest_perfMon1 -cf "test-counters.txt" -si 00:00:15-f bincirc -max 500-aI then started it using:logman start test_perfMon1it started and data collection happened as expected. I then stopped and verified the captured data. everything looks good.next, I then restarted the counter using following commandlogman start test_perfMon1thinking that it will append to existing log file (-a option says same in logman help) however, when I checked, it overwrote the existing log file (my log file was c:\perfLog\Admin\test_perfMon1.blg).I am doing something wrong here.. or doesn't -a append to exisitng log file?thanks in advance for your help!UC
November 25th, 2009 9:40pm

Hi Uc, Thank you for posting in windows server forums.-a option will update the existing log, i have cross verified from the below article http://technet.microsoft.com/en-us/library/cc788068(WS.10).aspxcan you paste your complete command ?
Free Windows Admin Tool Kit Click here and download it now
November 26th, 2009 12:45pm

ok, I also read the same article to verify it but it didn't work as its mentioned :)Here are commands that I used: logman create counter test_counter -cf "c:\temp\counters.txt" -si 00:00:15 -f bincirc -max 500 -a --v I see that, when I stop the log and then restart it, all it does is overwrite the existing log at c:\users\admin folder. when I use following command to create the log (without -a): logman create counter test_counter -cf "c:\temp\counters.txt" -si 00:00:15 -f bincirc -max 500 --v it actually throws this error when I stop/start the log: Error:Cannot create a file when that file already exists.this error comes because it finds existing log file at c:\users\admin and for some reason, not going to overwrite it. when you rename the log file and start the log, it creates a new log file with same name that it created on first start. so, for some weird reason, its refusing to overwrite or append to the log in this case.so, to me it seems that -a is doing exactly what -ow is doing. anything that im doing wrong? I am using Server 2008 R2 Version 6.1.7600cheers..uc
November 26th, 2009 10:54pm

can someone take a look at it and shed some lights on the issue with logman.exe please?my opinion about it is.. either I am not using right syntax of logman.exe or it has a bug with -a option--- uc
Free Windows Admin Tool Kit Click here and download it now
December 16th, 2009 7:18pm

I'm too facing this issue. Though help says -a appends to log file but instead it overwrites the existing log file.Can someone explain why is this so? As per global security standards, we essentially need to preserve Old logs, right?
January 21st, 2010 7:40am

Hi All,I have raised this issue with microsoft team , we should be getting the reply by a week.
Free Windows Admin Tool Kit Click here and download it now
January 21st, 2010 9:06am

great, thanks Sainath for your help! looking forward to get a reply soon.cheers..uc
January 23rd, 2010 10:24pm

Hi All, I have raised this issue with microsoft team , we should be getting the reply by a week. Are we going to get a reply? Its been almost four months since last reply but nothing heard so far. Can someone look into it?cheers..uc
Free Windows Admin Tool Kit Click here and download it now
May 20th, 2010 10:21am

Hi there, I have raised it to microsoft, hopefully they will either include in hotfix or in SP release.
June 11th, 2010 1:53pm

Hi I was facing the same issue with overwrite option (-ow). Everytime I restart my data collector, it was creating a new blg file. After few close study, I came to know that the user does not have permission to modify the existing blg file. I gave the permission manually to modify the file. Now its overwritting the existing blg file. This may help you out in resolving your issue. Please have a try.
Free Windows Admin Tool Kit Click here and download it now
July 12th, 2010 5:37pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics