EventLog Properties

  • Thread starter Thread starter timb
  • Start date Start date
T

timb

Hi,
is it possible to change the default properties of an eventlog (either
an existing eventlog or a custom created log) .

I would like to be able to change the maximum size properties and the
overwrite as needed options.


Thanks in advance
TimB
 
One way to change properties of the event log like file size etc is to
change the registry entries that correspond to the log directly . For
instance, to change the file size of the log, change the MaxSize key under
HKLM\System\CurrentControlSet\Services\EventLog\<<Your Custom Log>>.
I am not sure if there are managed class for doing this. The EventLog class
cannot be used for sure!
 
Back
Top