Moving event log files for EWF

  • Thread starter Richard Jenkins
  • Start date
R

Richard Jenkins

What is the recommended practice for Event Log files when using EWF in XPE
SP1? Is it recommended to move the event log files to an un-protected
partition when using EWF (RAM or disk based?) I would think that the
constant writing to the event log files would cause an overflow in the EWF
overlay over time. Anyone have any experience with this?
 
D

Doug Hoeffel

Yes. I use the RAM-based EWF to protect the boot C: partition. I move the
event log files to the D: partition via the registry as follows:

REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Application]
"File"="D:\\AppEvent.evt"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Security]
"File"="D:\\SecEvent.evt"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\System]
"File"="D:\\SysEvent.evt"

Also, if you don't move the event log files to another partition and you do
a lot of writes and you run out of memory you WILL blue screen for sure.

HTH... Doug
 
R

Richard Jenkins

Thanks Doug -
This is what I suspected, but the MS documentation does not mention this.
They discuss the swap file, but not the event logs.

Ever had a problem with writes to the registry causing overflow in time?
Perhaps a commit once every
24 hrs is needed for this.

Has anyone run XPE with EWF without a reboot for extented periods of time?


-Richard


Doug Hoeffel said:
Yes. I use the RAM-based EWF to protect the boot C: partition. I move the
event log files to the D: partition via the registry as follows:

REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Application]
"File"="D:\\AppEvent.evt"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Security]
"File"="D:\\SecEvent.evt"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\System]
"File"="D:\\SysEvent.evt"

Also, if you don't move the event log files to another partition and you do
a lot of writes and you run out of memory you WILL blue screen for sure.

HTH... Doug

Richard Jenkins said:
What is the recommended practice for Event Log files when using EWF in XPE
SP1? Is it recommended to move the event log files to an un-protected
partition when using EWF (RAM or disk based?) I would think that the
constant writing to the event log files would cause an overflow in the EWF
overlay over time. Anyone have any experience with this?
 
R

Richard Jenkins

Doug,
I have never heard of creating a registry hive on another drive. I've
been doing NT4 Embedded for several years, but this is a new one on me. How
did you do this? If you can just point me were I can find out about this
trick, I would be grateful.

-Richard Jenkins

Doug Hoeffel said:
Richard:

I have run automated (24x7) tests on my product for days without issues with
the RAM-based EWF. I haven't actually tracked how many registry writes
occur though. I created a unique hive on another partition for the registry
settings that I need so that they are persistent between reboots. As for
the OS itself, I'm sure there is some writing to the registry in normal
operation. If you are updating the same registry key/value over time, I
don't think this consumes RAM over time as the same sector on disk is being
used. I seem to recall some discussion on this a very long time ago. Maybe
one of the MS EWF guys can comment on this again. Thus, I don't think you
would need to schedule a commit every 24 hours or so. Of course, the only
way to be sure is to run your product 24x7 and see what breaks.

HTH... Doug
Richard Jenkins said:
Thanks Doug -
This is what I suspected, but the MS documentation does not mention this.
They discuss the swap file, but not the event logs.

Ever had a problem with writes to the registry causing overflow in time?
Perhaps a commit once every
24 hrs is needed for this.

Has anyone run XPE with EWF without a reboot for extented periods of time?


-Richard


move
the
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Application]
"File"="D:\\AppEvent.evt"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Security]
"File"="D:\\SecEvent.evt"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\System]
"File"="D:\\SysEvent.evt"

Also, if you don't move the event log files to another partition and
you
do
a lot of writes and you run out of memory you WILL blue screen for sure.

HTH... Doug

What is the recommended practice for Event Log files when using EWF
in
XPE
SP1? Is it recommended to move the event log files to an un-protected
partition when using EWF (RAM or disk based?) I would think that the
constant writing to the event log files would cause an overflow in
the
EWF
overlay over time. Anyone have any experience with this?
 
D

Doug Hoeffel

Richard:

The registry is just a file. I created a reg hive file via regedt32.
Select the keys that you want then export as type reg hive. You can then
move this file to another drive not protected by EWF. Then I use the
RegLoadKey API to load it from this other drive, then RegOpenKeyEx to read
it etc. You can do this manually via regedt32... you will see Load and
Unload hive options.

Of course, you can't do this with the computer name, ip address etc. In
this case I came up with a commit/reboot scheme.

HTH... Doug
Richard Jenkins said:
Doug,
I have never heard of creating a registry hive on another drive. I've
been doing NT4 Embedded for several years, but this is a new one on me. How
did you do this? If you can just point me were I can find out about this
trick, I would be grateful.

-Richard Jenkins

Doug Hoeffel said:
Richard:

I have run automated (24x7) tests on my product for days without issues with
the RAM-based EWF. I haven't actually tracked how many registry writes
occur though. I created a unique hive on another partition for the registry
settings that I need so that they are persistent between reboots. As for
the OS itself, I'm sure there is some writing to the registry in normal
operation. If you are updating the same registry key/value over time, I
don't think this consumes RAM over time as the same sector on disk is being
used. I seem to recall some discussion on this a very long time ago. Maybe
one of the MS EWF guys can comment on this again. Thus, I don't think you
would need to schedule a commit every 24 hours or so. Of course, the only
way to be sure is to run your product 24x7 and see what breaks.

HTH... Doug
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Application]
"File"="D:\\AppEvent.evt"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Security]
"File"="D:\\SecEvent.evt"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\System]
"File"="D:\\SysEvent.evt"

Also, if you don't move the event log files to another partition and you
do
a lot of writes and you run out of memory you WILL blue screen for sure.

HTH... Doug

What is the recommended practice for Event Log files when using
EWF
 

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