Custom Event Logs

G

Guest

[XP Pro, SP1] I am using a custom event log for recording application
events. When the log is first created, it gets default properties of
size=512KB and "Overwrite after 7 days". This creates a problem in some
installations where the log size needs to be MB's or the overwrite option
needs to be "as needed." I can access the log properties and make changes on
the form, but the changes are not saved. This happens even when logged in as
Administrator. This only applies to custom logs; standard logs can be
changed at will. Strangely, I have one computer [maybe SP2] where I can get
the changes to stick! What's different between these machines? Why aren't
the changes saved?

And other related questions:
Can I change these parameters within the application?
Why can't a user (even Administrator) delete a custom event log? (It has to
be done within an application.)
 
G

Guest

C#.NET
EventLog.CreateEventSource(<sourcename>, <logname>, <machine>);

It defaults to the Application log if <logname> is a null string, and
creates a custom log if it isn't. I couldn't find any means of modifying the
create process.
 
G

Guest

PARTIAL ANSWER FOUND!!
After you modify the size of a custom log and save the change,
you can then modify the overwrite characteristics and have
them saved. Aha!

The other ("related") questions remain, but are far less critical.

--John
------------
Wesley Vogel said:
What are you using to create the custom event log?

http://support.microsoft.com/search/default.aspx?catalog=LCID=1033&query=custom+event+log&x=14&y=14

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
John W. said:
[XP Pro, SP1] I am using a custom event log for recording application
events. When the log is first created, it gets default properties of
size=512KB and "Overwrite after 7 days". This creates a problem in some
installations where the log size needs to be MB's or the overwrite option
needs to be "as needed." I can access the log properties and make
changes on the form, but the changes are not saved. This happens even
when logged in as Administrator. This only applies to custom logs;
standard logs can be changed at will. Strangely, I have one computer
[maybe SP2] where I can get the changes to stick! What's different
between these machines? Why aren't the changes saved?

And other related questions:
Can I change these parameters within the application?
Why can't a user (even Administrator) delete a custom event log? (It has
to be done within an application.)
 
W

Wesley Vogel

Glad to hear it.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
John W. said:
PARTIAL ANSWER FOUND!!
After you modify the size of a custom log and save the change,
you can then modify the overwrite characteristics and have
them saved. Aha!

The other ("related") questions remain, but are far less critical.

--John
------------
Wesley Vogel said:
What are you using to create the custom event log?

http://support.microsoft.com/search/default.aspx?catalog=LCID=1033&query=custom+event+log&x=14&y=14

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
John W. said:
[XP Pro, SP1] I am using a custom event log for recording application
events. When the log is first created, it gets default properties of
size=512KB and "Overwrite after 7 days". This creates a problem in some
installations where the log size needs to be MB's or the overwrite
option needs to be "as needed." I can access the log properties and
make changes on the form, but the changes are not saved. This happens
even when logged in as Administrator. This only applies to custom logs;
standard logs can be changed at will. Strangely, I have one computer
[maybe SP2] where I can get the changes to stick! What's different
between these machines? Why aren't the changes saved?

And other related questions:
Can I change these parameters within the application?
Why can't a user (even Administrator) delete a custom event log? (It
has to be done within an application.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top