Tim
Where do get this from "default of the past 21 days" ?
Your log(s) have been set to 21 days by you! It is not the default
according to this Extract from Help.
Setting options for logging events
Application and system logging start automatically when you start the
computer. Logging stops when an event log becomes full and cannot
overwrite itself, either because it has been set for manual clearing
or because the first event in the log is not old enough. You use
Group Policy to set up security logging.
To define logging parameters for each kind of log, in the Event View
console tree, right-click the type of log, and then click
Properties. On the General tab, you can set the maximum size of the
log and specify whether the events are overwritten or stored for a
certain period of time. The default logging policy is to overwrite
logs as needed, provided events are at least seven days old. You can
customize this policy for different logs.
The Event log wrapping options include the following.
UseTo
Overwrite events as needed. Have new events continue to be written
when the log is full. Each new event replaces the oldest event in
the log. This option is a good choice for low-maintenance systems.
Overwrite events older than [x] daysRetain the log for the number of
days you specify before overwriting events. The default is seven
days. This option is the best choice if you want to archive log
files weekly. This strategy minimizes the chance of losing important
log entries and at the same time keeps log sizes reasonable.
Do not overwrite eventsClear the log manually rather than
automatically. Select this option only if you cannot afford to miss
an event (for example, for the security log at a site where security
is extremely important).
Notes
When a log is full and no more events can be logged, you can free
the log by clearing it. Reducing the amount of time you keep an
event also frees the log if it allows the next record to be
overwritten. Each log file has an initial maximum size of 512 KB. You can
increase the maximum log size to the capacity of the disk and
memory, or you can decrease the maximum log size. Before decreasing
a log's size, you must clear the log.
Source: Event Viewer Help.
My own choice is "Overwrite events as needed" A maximum size of 512
kb is overlarge so a lower setting may be desirable if the user is
short on disk space. However, you cannot win much disk space even
allowing that there are three logs.
--
Hope this helps.
Gerry
~~~~
FCA
Stourport, England
Enquire, plan and execute
~~~~~~~~~~~~~~~~~~~
Tim said:
Hi Mike,
Cute? I like that! Simpler? Even better! - what
could be more simple than pasting:
echo Booted at: %TIME% on %DATE% >> C:\WINDOWS\BOOTUP.LOG
into a batch file and running it at boot-time to get a file with
entries like this in it:
Booted at: 3:30:06.82 on 01-04-09
Booted at: 5:20:56.40 on 04-04-09
Whereas you can open up Event Viewer and "estimate" the boot-times
from where the current events have a break in continuity. And this
is only for a default of the past 21 days whereas, this way, an
unlimited and accurate list of times is kept. Also, the registry
holds the last booted up time only. I really think folks are quite
hopeless if anyone thinks this is too complex for them. They should
try and stretch themselves just a little bit.
Hi Paul,
No, there's no record of boot-up times in a log - I
think there
should be - but, it's not hard to start one. Create a simple
batch file with the following line in it: (Batch file is a text
file with the extension .bat)
echo Booted at: %TIME% on %DATE% >> C:\WINDOWS\BOOTUP.LOG
...then put a shortcut to this file in your startup folder and set
it to "run minimized" This will make a bootup.log file in your
Windows folder containing entries for each time it was run.
Alternatively (if you know what you're doing), put the line in a
batch file and set it as a startup script using the Group Policy
Editor (Computer Config. > Windows Settings
Scripts > Startup and press browse and browse for your batch
file). --
Cheers, Tim Meddick, Peckham, London.
Very cute... but looking in the Event Logs is a much simpler way.