From: boe on
Hello,

I'd like to know an easy way to clear all logs in 2008 R2 - not just the
application logs or DNS logs or DFS logs but ALL logs at the same time
(without reformatting the server :) )

From: Meinolf Weber [MVP-DS] on
Hello boe,

You can run a script that searches for .log for example and delete then all
of them. B U T sometimes logfiles are used when a program is started or accessed,
so i wouldn't do this.

What is the reason for deleting all logfiles?

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm


> Hello,
>
> I'd like to know an easy way to clear all logs in 2008 R2 - not just
> the application logs or DNS logs or DFS logs but ALL logs at the same
> time (without reformatting the server :) )
>


From: boe on
Thanks.

When I set up a server, I tend to do it in phases - e.g. Install the OS,
look for errors in the new log group at the top, then in the standards.
The new log group at the top has many sub categories. I like to resolve
any issues, clear the logs - reboot - then check again and if it is clean
move on to the next step -e.g. install a new domain using DCPromo - again
check the logs - resolve - reboot. It would be nice if I could clear ALL
categories or at least the group at the top which is made up of several
categories. I hate having to check the time each time I move on to a new
phase so I have to make sure I'm not looking at an old issue. Going
through all the new sub categories including miscrosoft, windows... -e.g.
DHCP server, DNS... while great in some ways, makes checking my logs during
initial server set up a pain. I'd love to run a script that clears all
of them or be able to right click on the new grouping at the top and clear
that which would clear the errors in the subcategories.

I ran into a wretched example last night where the hyper-v virtual network
card was not recognized, then it was but didn't work exclamation point.
I spent about 5 hours trying to figure it out, creating new virtual machines
and so many other things - finally I decided to reformat EVERYTHING since it
wasn't in production but that set me back a large amount of time because I
was so careful about the install this time looking for every single flag
just to prevent it from happening again.




"Meinolf Weber [MVP-DS]" <meiweb@(nospam)gmx.de> wrote in message
news:6cb2911def4a8cc9b944116e08f(a)msnews.microsoft.com...
> Hello boe,
>
> You can run a script that searches for .log for example and delete then
> all of them. B U T sometimes logfiles are used when a program is started
> or accessed, so i wouldn't do this.
>
> What is the reason for deleting all logfiles?
>
> Best regards
>
> Meinolf Weber
> Disclaimer: This posting is provided "AS IS" with no warranties, and
> confers no rights.
> ** Please do NOT email, only reply to Newsgroups
> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>
>> Hello,
>>
>> I'd like to know an easy way to clear all logs in 2008 R2 - not just
>> the application logs or DNS logs or DFS logs but ALL logs at the same
>> time (without reformatting the server :) )
>>
>
>
From: Dave Patrick on
You can probably script it.

http://technet.microsoft.com/en-us/library/ee176696.aspx


--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"boe" wrote:
> Hello,
>
> I'd like to know an easy way to clear all logs in 2008 R2 - not just the
> application logs or DNS logs or DFS logs but ALL logs at the same time
> (without reformatting the server :) )
>
From: boe on
Hopefully someone will sell the script or post it as a freeware fix.

"Dave Patrick" <DSPatrick(a)nospam.gmail.com> wrote in message
news:O7xRzdczKHA.928(a)TK2MSFTNGP05.phx.gbl...
> You can probably script it.
>
> http://technet.microsoft.com/en-us/library/ee176696.aspx
>
>
> --
>
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
> http://www.microsoft.com/protect
>
> "boe" wrote:
>> Hello,
>>
>> I'd like to know an easy way to clear all logs in 2008 R2 - not just the
>> application logs or DNS logs or DFS logs but ALL logs at the same time
>> (without reformatting the server :) )