{"id":264,"date":"2016-08-14T14:23:22","date_gmt":"2016-08-14T14:23:22","guid":{"rendered":"http:\/\/eventlogxp.com\/blog\/?p=264"},"modified":"2016-08-14T14:23:22","modified_gmt":"2016-08-14T14:23:22","slug":"filtering-all-the-way","status":"publish","type":"post","link":"https:\/\/eventlogxp.com\/blog\/filtering-all-the-way\/","title":{"rendered":"Filtering all the way"},"content":{"rendered":"<p>You probably read in the documentation that Event Log Explorer provides 5 ways to filter events. In this article, I will try to explain when you should use one or the other way of filtering.<\/p>\n<p>First, we can arrange filters on applying time:<\/p>\n<ol>\n<li>Pre-load filter. This filter applies to the event log before loading. Only the required events will be loaded.<\/li>\n<li>On-load filter. This filter applies to the event log at the loading stage. While loading, Event Log Explorer will check if an event fits the condition and filters event out.<\/li>\n<li>After-load. This filter applies to the event log after loading.<\/li>\n<\/ol>\n<p><strong>Pre-load filter<\/strong> is implemented as an XML structured query. Select View-&gt;XML Query from the main menu to set this filter. Like Windows Event Viewer you can use a full form of XML Query, but you can also use a short XPath expression. You can find more information about XML Queries at <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/dd996910(v=vs.85).aspx\">https:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/dd996910(v=vs.85).aspx<\/a><\/p>\n<p>Pros: Works fast and relies on Windows Event Log service. Minimizes network traffic and memory consumption.<\/p>\n<p>Cons: It&#8217;s easy to make mistakes when creating complex filters.<\/p>\n<p>When to use: Use it mainly to create a base filter to filter inessential events out.<\/p>\n<p>Example:<\/p>\n<blockquote><p>*[System[(Level=1\u00a0 or Level=2 or Level=3)]]<\/p><\/blockquote>\n<p><a href=\"http:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2016\/08\/XML-filter.png\" rel=\"attachment wp-att-265\" data-rel=\"lightbox-gallery-8UgGI6XX\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-265\" src=\"http:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2016\/08\/XML-filter-300x241.png\" alt=\"XML filter\" width=\"300\" height=\"241\" srcset=\"https:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2016\/08\/XML-filter-300x241.png 300w, https:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2016\/08\/XML-filter.png 522w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>This filter displays only Warning, Error and Critical events.<\/p>\n<p><strong>On-load filter<\/strong> is implemented as log loading options feature. Use View-&gt;Log Loading Options to access Log Loading Options dialog. Alternatively you can enable default log loading options in Preferences.<\/p>\n<p>Pros: Works fast, minimizes memory consumption.<\/p>\n<p>Cons: Doesn&#8217;t filter by descriptions.<\/p>\n<p>When to use: Like XML filter, you can use On-load filter as a base filter. I would recommend use this filter events by age. If you need to display a number of the latest events, On-load filter is the only option for you.<\/p>\n<p>Example:<\/p>\n<p><a href=\"http:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2016\/08\/log-loading-filter.png\" rel=\"attachment wp-att-266\" data-rel=\"lightbox-gallery-8UgGI6XX\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-266\" src=\"http:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2016\/08\/log-loading-filter-287x300.png\" alt=\"log loading filter\" width=\"287\" height=\"300\" srcset=\"https:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2016\/08\/log-loading-filter-287x300.png 287w, https:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2016\/08\/log-loading-filter.png 390w\" sizes=\"(max-width: 287px) 100vw, 287px\" \/><\/a><\/p>\n<p>This filter displays events with Event ID between 4680 and 4689 registered within the last 7 days.<\/p>\n<p><strong>After-load<\/strong> filters are implemented as a general filter, linked filter and quick filters.<\/p>\n<p>Select View-&gt;Filter to set a general filter or Advanced-&gt;Linked Event Filter to set a linked filter. You should use linked filters only for events that has one common field in event description. You can read more about linked filter usages in this <a href=\"http:\/\/eventlogxp.com\/blog\/tracking-down-who-removed-files\/\">article<\/a>.<\/p>\n<p>When using after-load filters, Event Log Explorer loads event first and then applies the filter. This gives you ability to reapply or remove filters to the originally loaded list of events. E.g. if you loaded a list from another computer and then this computer goes offline, you can still work with the log and filter events.<\/p>\n<p>Pros: You can filter by virtually any criteria, including event description. You can reuse filters and manage filter library.<\/p>\n<p>Cons: It doesn&#8217;t work as fast as pre-load or on-load filters because it loads all events first and then filters them. Consumes more memory than On-load filter.<\/p>\n<p>When to use: You should use this filter whenever you are unable to use other filters (e.g. when you filter by descriptions) or when you need to apply different filters to the same event log.<\/p>\n<p>Example:<\/p>\n<p><a href=\"http:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2016\/08\/general-filter.png\" rel=\"attachment wp-att-267\" data-rel=\"lightbox-gallery-8UgGI6XX\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-267\" src=\"http:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2016\/08\/general-filter-300x267.png\" alt=\"general filter\" width=\"300\" height=\"267\" srcset=\"https:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2016\/08\/general-filter-300x267.png 300w, https:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2016\/08\/general-filter-660x587.png 660w, https:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2016\/08\/general-filter.png 705w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>This filter displays events with ID=4689 (process termination) for process name=chrome.exe<\/p>\n<p><strong>Quick filter<\/strong> is a special kind of after-load filter to refine events by a single criterion you can see on the screen. Just click right mouse button on a cell in the list view and use this cell as a template. After applying quick filter, you can continue applying quick filters \u2013 they will be applying altogether.<\/p>\n<p>Pros: Easy to use and quick to apply. Non-persistent.<\/p>\n<p>Cons: You can create only simple filters. Non-persistent.<\/p>\n<p>As you can see, I attributed &#8220;Non-persistent&#8221; to both pros and cons. After each refresh of event log view or applying general or linked filters, Event Log Explorer resets quick filters. Sometimes it&#8217;s good because quick filters are commonly used to display specific data just for a short time, but sometimes users may want to keep filtered data between refreshes or event between Event Log Explorer sessions.<\/p>\n<p>When to use: We recommend using quick filters when you browse events, find an interesting event and you want to check the other occurrences of this event.<\/p>\n<p><a href=\"http:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2016\/08\/quickfilter.png\" rel=\"attachment wp-att-268\" data-rel=\"lightbox-gallery-8UgGI6XX\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-268\" src=\"http:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2016\/08\/quickfilter-300x119.png\" alt=\"quick filter\" width=\"300\" height=\"119\" srcset=\"https:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2016\/08\/quickfilter-300x119.png 300w, https:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2016\/08\/quickfilter-660x262.png 660w, https:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2016\/08\/quickfilter.png 757w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>This filter displays events with EventID = 1001<\/p>\n<h3>Combining filters<\/h3>\n<p>All these filters work independently, so you can combine them. E.g. you can filter out informational events using XML query (\u00a0\u00a0 <em>*[System[(Level\u00a0 != 0 and Level\u00a0 != 4)\u00a0 ]]\u00a0\u00a0 <\/em>). Then you can set on-load filter by a specific event source, e.g. Microsoft Antimalware. Then using general filter you can filter by event description, specifying path to a file as a filter criterion. And finally, you apply quick filters using event date to view how many events of such a kind was recorded in the log.<\/p>\n<a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-facebook nolightbox\" data-provider=\"facebook\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Facebook\" href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Feventlogxp.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F264&#038;t=Filtering%20all%20the%20way&#038;s=100&#038;p&#091;url&#093;=https%3A%2F%2Feventlogxp.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F264&#038;p&#091;images&#093;&#091;0&#093;=https%3A%2F%2Feventlogxp.com%2Fblog%2Fwp-content%2Fuploads%2F2016%2F08%2Ffilter-all-the-way.jpg&#038;p&#091;title&#093;=Filtering%20all%20the%20way\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img alt=\"Facebook\" title=\"Share on Facebook\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none\" src=\"https:\/\/eventlogxp.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/facebook.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Feventlogxp.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F264&#038;text=Check%20this%20Event%20Log%20Explorer%20blog%20post\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none\" src=\"https:\/\/eventlogxp.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-reddit nolightbox\" data-provider=\"reddit\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Reddit\" href=\"https:\/\/www.reddit.com\/submit?url=https%3A%2F%2Feventlogxp.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F264&#038;title=Filtering%20all%20the%20way\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img alt=\"reddit\" title=\"Share on Reddit\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none\" src=\"https:\/\/eventlogxp.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/reddit.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-pinterest nolightbox\" data-provider=\"pinterest\" target=\"_blank\" rel=\"nofollow\" title=\"Pin it with Pinterest\" href=\"https:\/\/pinterest.com\/pin\/create\/button\/?url=https%3A%2F%2Feventlogxp.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F264&#038;media=https%3A%2F%2Feventlogxp.com%2Fblog%2Fwp-content%2Fuploads%2F2016%2F08%2Ffilter-all-the-way.jpg&#038;description=Filtering%20all%20the%20way\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img alt=\"pinterest\" title=\"Pin it with Pinterest\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none\" src=\"https:\/\/eventlogxp.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/pinterest.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=https%3A%2F%2Feventlogxp.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F264&#038;title=Filtering%20all%20the%20way\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none\" src=\"https:\/\/eventlogxp.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/linkedin.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=Filtering%20all%20the%20way&#038;body=Check%20this%20Event%20Log%20Explorer%20blog%20post:%20https%3A%2F%2Feventlogxp.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F264\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px\"><img alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none\" src=\"https:\/\/eventlogxp.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/mail.png\" \/><\/a>","protected":false},"excerpt":{"rendered":"<p>You probably read in the documentation that Event Log Explorer provides 5 ways to filter events. In this article, I will try to explain when you should use one or the other way of filtering. First, we can arrange filters on applying time: Pre-load filter. This filter applies to the event log before loading. Only the required events will be loaded. On-load filter. This filter\u2026 <span class=\"read-more\"><a href=\"https:\/\/eventlogxp.com\/blog\/filtering-all-the-way\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":270,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[34,35],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/posts\/264"}],"collection":[{"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/comments?post=264"}],"version-history":[{"count":1,"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/posts\/264\/revisions"}],"predecessor-version":[{"id":269,"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/posts\/264\/revisions\/269"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/media\/270"}],"wp:attachment":[{"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/media?parent=264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/categories?post=264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/tags?post=264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}