{"id":569,"date":"2024-02-17T21:28:24","date_gmt":"2024-02-17T21:28:24","guid":{"rendered":"https:\/\/eventlogxp.com\/blog\/?p=569"},"modified":"2024-02-17T21:37:55","modified_gmt":"2024-02-17T21:37:55","slug":"extra-power-of-custom-columns","status":"publish","type":"post","link":"https:\/\/eventlogxp.com\/blog\/extra-power-of-custom-columns\/","title":{"rendered":"Extra power of custom columns"},"content":{"rendered":"<p>Approximately 10 years ago, we introduced custom columns in Event Log Explorer. This feature allows users to extract event details from the event description or event XML. Custom columns have significantly enhanced our customers&#8217; ability to get more information from events, and we have continuously improved it across different versions. Previously, Event Log Explorer treated custom column values as text, which sometimes was insufficient for in-depth analysis. For example, in my article about <a href=\"https:\/\/eventlogxp.com\/blog\/how-to-track-printer-usage-with-event-logs\/\">tracking printer usage<\/a>, it was impossible to sort events by the number of pages.<\/p>\n<p>Since version 5.5, Event Log Explorer allows users to specify the type of custom values.<\/p>\n<p>Let\u2019s take the same printer usage problem and solve it using this new power.<\/p>\n<ol>\n<li>Make sure that logging of Microsoft-Windows-PrintService\/Operational log is enabled on your print server and open it.<\/li>\n<li>Set filter to Event ID = 307<\/li>\n<li>Optionally hide unnecessary columns like Type, Event Id, Source, Category, User<\/li>\n<li>Set custom columns as follows:<br \/>\nColumn 1:<br \/>\nColumn title: Printer user<br \/>\nValue: {DATA[3]}<br \/>\nTreat value as : Text<br \/>\nColumn 2:<br \/>\nColumn title: Printer<br \/>\nValue: {DATA[5]}<br \/>\nTreat value as: Text<br \/>\nColumn 3:<br \/>\nColumn title: Pages<br \/>\nValue: {DATA[8]}<br \/>\nTreat value as: Integer<\/li>\n<\/ol>\n<p><a href=\"http:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2024\/02\/custcol_pages.png\" data-rel=\"lightbox-gallery-w8VDqEGS\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-570\" src=\"http:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2024\/02\/custcol_pages-300x140.png\" alt=\"\" width=\"300\" height=\"140\" srcset=\"https:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2024\/02\/custcol_pages-300x140.png 300w, https:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2024\/02\/custcol_pages.png 648w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>As seen, you only need to set &#8220;Treat value as&#8221; to Integer for the last custom column. This will display events like the previous versions displayed, but now the Pages column is shown as an integer column.<\/p>\n<p><a href=\"http:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2024\/02\/custom_column_events.png\" data-rel=\"lightbox-gallery-w8VDqEGS\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-572\" src=\"http:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2024\/02\/custom_column_events-300x132.png\" alt=\"\" width=\"300\" height=\"132\" srcset=\"https:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2024\/02\/custom_column_events-300x132.png 300w, https:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2024\/02\/custom_column_events-768x339.png 768w, https:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2024\/02\/custom_column_events-660x291.png 660w, https:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2024\/02\/custom_column_events.png 904w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>This means that you can now sort by this column from lowest to highest value (or vice versa), not just alphabetically. You can also filter by this value (e.g., greater than or less than).<\/p>\n<p>Furthermore, you can now create a summary table and calculate the total number of pages by every user. To do so, you will need to generate a new analytical report.<\/p>\n<p>Select <strong>Advanced-&gt;Analytical reports<\/strong> from the main menu.<\/p>\n<p>Then select Field List and move &#8220;Printer user&#8221; to the left area.<\/p>\n<p>Select Field List again and move Pages to the central area.<\/p>\n<p>Next, move Measures (1) into the top area.<\/p>\n<p>This will create a summary table that looks like this:<\/p>\n<p><a href=\"http:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2024\/02\/pages_summary_table-e1708203659923.png\" data-rel=\"lightbox-gallery-w8VDqEGS\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-571\" src=\"http:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2024\/02\/pages_summary_table-e1708203659923-300x206.png\" alt=\"\" width=\"300\" height=\"206\" srcset=\"https:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2024\/02\/pages_summary_table-e1708203659923-300x206.png 300w, https:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2024\/02\/pages_summary_table-e1708203659923.png 437w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Note that Event Log Explorer automatically calculates the sum of pages for each user because Sum is the default aggregative function for integer fields. However, you can change it to any other aggregative function if needed. For instance, if you want to get the average number of pages every user prints at once, expand Measures (1), right-click on Pages, select Properties, and in the Measure Editor dialog, change Sum to Average, then click OK.<\/p>\n<p>As you can see, custom columns now offer enhanced capabilities for analyzing Windows event logs.<\/p>\n<p><a href=\"https:\/\/eventlogxp.com\/download.php\">Get the latest version of Event Log Explorer<\/a> to leverage the full potential of custom columns right away!<\/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%2F569&#038;t=Extra%20power%20of%20custom%20columns&#038;s=100&#038;p&#091;url&#093;=https%3A%2F%2Feventlogxp.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F569&#038;p&#091;images&#093;&#091;0&#093;=https%3A%2F%2Feventlogxp.com%2Fblog%2Fwp-content%2Fuploads%2F2024%2F02%2Fcolumns.jpg&#038;p&#091;title&#093;=Extra%20power%20of%20custom%20columns\" 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%2F569&#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%2F569&#038;title=Extra%20power%20of%20custom%20columns\" 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%2F569&#038;media=https%3A%2F%2Feventlogxp.com%2Fblog%2Fwp-content%2Fuploads%2F2024%2F02%2Fcolumns.jpg&#038;description=Extra%20power%20of%20custom%20columns\" 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%2F569&#038;title=Extra%20power%20of%20custom%20columns\" 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=Extra%20power%20of%20custom%20columns&#038;body=Check%20this%20Event%20Log%20Explorer%20blog%20post:%20https%3A%2F%2Feventlogxp.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F569\" 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>Approximately 10 years ago, we introduced custom columns in Event Log Explorer. This feature allows users to extract event details from the event description or event XML. Custom columns have significantly enhanced our customers&#8217; ability to get more information from events, and we have continuously improved it across different versions. Previously, Event Log Explorer treated custom column values as text, which sometimes was insufficient for\u2026 <span class=\"read-more\"><a href=\"https:\/\/eventlogxp.com\/blog\/extra-power-of-custom-columns\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":574,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[41],"tags":[5,69,70],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/posts\/569"}],"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=569"}],"version-history":[{"count":2,"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/posts\/569\/revisions"}],"predecessor-version":[{"id":575,"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/posts\/569\/revisions\/575"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/media\/574"}],"wp:attachment":[{"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/media?parent=569"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/categories?post=569"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/tags?post=569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}