We help IT Professionals succeed at work.
Get Started

Set retention for Applications and Services logs in Windows 2008/2012 using the registry

189 Views
Last Modified: 2016-04-06
I need to set the retention for one of the logs in the Applications and Services Logs section of Event Viewer for ALL my servers.  This means I need to do it via a preferences registry setting in group policy.

When I made the retention setting for the Windows logs, I was able to add a Value named Retention in the key for the log, for example:  HKLM\System\CurrentControlSet\Services\EventLog\Application --> Retention = 0 (REG_DWORD).  (Yes, I know I could have done this through Administrative Tools, I chose to do it through the registry.)

I know the location of the Applications and Services Logs in the registry:  HKLM\Software\Microsoft\Windows\CurrentVersion\WINEVT\Channels --> <name of the log>.  What I am trying to find out is the name of the value to add.  Will "Retention" work here, as it does for the Windows logs?  Or is there a different Value for these logs?  Any help will be much appreciated.
Comment
Watch Question
Senior Security and Infrastructure Engineer
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE