The Event Viewer is an application that enables you to browse and manage event logs. Event logs are special files that record significant events on your computer, such as when a user logs on to the computer or when a program encounters an error. In Windows Vista and Windows Server 2008, Event Viewer has been totally re-designed and now offers a much wider administrative capabilities. Read more about the new Vista Event Viewer in my “Working with Vista’s new Event Viewer” and “Assigning Custom Tasks to Events in Vista” articles.
One of the features of the new Event Viewer is the ability to create custom filters and to save them into custom views for later viewing. When viewing an event log, you can filter the events being displayed. Like in previous Windows versions, event filtering is temporary by design, meaning you filter for something, then when you close Event Viewer, the filter is no longer applied. You can also remove an applied filter. However, unlike previous OSs, if you create a useful filter that you want to reuse, you can save it as a custom view.
Filter displayed events
To filter displayed events:
- Open Computer Management by right-clicking the Computer icon on the start menu (or on the Desktop if you have it enabled) and select Manage. Navigate to the Event Viewer. Note: If you did not disable UAC (read my “Disable User Account Control in Windows Vista” article) then you will be prompted to consent to the action you’re about to perform. Click Continue. Note: You can also open the Event Viewer by typing Event Viewer in the Search box and pressing Enter, or typing eventvwr.msc in the Run command.
- In the console tree, select the event log you want to filter.
- On the Action menu, click Filter Current Log, or right-click the log and select Filter Current Log.
- To filter events based on the date when they occurred, select the time period from the Logged drop-down list. Note: You can also choose Custom range and specify the earliest date and time from which you want events and the latest date and time from which you want events. Click OK.
- Select the check boxes next to the event levels that you want the filter to display.
- Select the check boxes next to the event sources that you want your filter to display in the Event source drop-down list
- In Event IDs, type the event IDs that you want your filter to display, for example, type 6005. Note: If you want to filter based on separate multiple event IDs, you can enter them separated by commas. If you want to include a range of IDs, for example 10000 through 10010, you can type 10000-10010. If you want the filter to display events with all IDs except certain ones, type the IDs of those exceptions, preceded by a minus sign. For instance, to include all Event IDs between 4624 and 4634 except for 4630, type 4624-4634,-4630.
- In Task Category, select the check boxes next to the task categories in the drop-down list that you want your filter to display.
- In the Keywords drop-down list, select the check boxes next to the keywords that you want your filter to display.
- In User, enter the name of the user accounts you want your filter to display. To enter multiple user accounts, separate them with a comma (,).
- In Computer(s), enter the name of computers that you want the filter to display. This field refers to the source computer of the event. Enter multiple computers by separating them with a comma (,).
- Click OK to apply the filter.
Save filter as a custom view
After working hard to set your filter right, in Vista you can now save it as a Custom View so that you can use it again without having to recreate it.
To save a filter to reuse later:
- Start Event Viewer.
- Follow the steps in Filter Displayed Events.
- On the Action menu, click Save Filter As Custom View.
- In the Name box type the name that you want to use to access the custom view in the future. You can also type a description of the custom view in Description. In the console tree, select the location where you want the saved filter to be stored. To allow all users of the computer to access the view, ensure that the All Users check box is selected. To only allow the currently logged on user to access the view, ensure that the All Users check box is not selected. Click OK.
- Next, look at the Custom Views list, note that your saved filter is located in that list.
Vista’s new Event Viewer comes as a big improvement over previous versions. One of the main advantages of the new Event Viewer is the ability to create custom filters and to save them for later use, which makes using Event Viewer much easier for busy administrators.
- Can I quickly view other computer’s Event Logs?
- Working with Vista’s new Event Viewer
- Assigning Custom Tasks to Events in Vista
Got a question? Post it on our Windows Vista Forums!