Display XML Format of a Custom View

Applies To: Windows 7, Windows Server 2008 R2, Windows Server 8 Beta, Windows Vista

Custom Views are named filters that you can reuse between sessions of Event Viewer. Like other event log filters, a custom view has an XML-based representation. After creating a custom view using the Event Viewer user interface, you can then display and examine the XML that represents the underlying query. This is a convenient way to learn about the XML syntax.

To display the XML format underlying a custom view

  1. Start Event Viewer.

  2. In the console tree, navigate to and select the custom view.

  3. On the Action menu, click Properties.

  4. On the properties dialog, click Edit Filter.

  5. In the Custom View Properties dialog box, click the XML tab. The XML query for the custom view appears in the text box.

Additional Resources

Tags :


Community Content

babak baiat gerdoo 64
More (useful) Information
The underlying query that is often used is not pure XML. It is usually a mix between XML and XPath 1.0. $0 You can read about XPath 1.0 here: http://en.wikipedia.org/wiki/XPath_1.0$0 You can read about filtering using XML + XPath here: http://en.wikipedia.org/wiki/Event_Viewer$0 $0 If you have written custom Event Log filters using XPath, please contribute to the above Wiki page.$0
Tags :

Page view tracker