{"id":2198,"date":"2014-02-11T15:08:56","date_gmt":"2014-02-11T15:08:56","guid":{"rendered":"http:\/\/www.mjtnet.com\/blog\/?p=2198"},"modified":"2014-02-11T15:10:02","modified_gmt":"2014-02-11T15:10:02","slug":"reading-from-system-event-logs","status":"publish","type":"post","link":"https:\/\/www.mjtnet.com\/blog\/2014\/02\/11\/reading-from-system-event-logs\/","title":{"rendered":"Reading from System Event Logs"},"content":{"rendered":"<p>Just been asked how to read from the system event log (what you see in Windows Event Viewer) using <a href=\"http:\/\/www.mjtnet.com\/\">Macro Scheduler<\/a>.<\/p>\n<p>As it happens there&#8217;s <a href=\"http:\/\/www.mjtnet.com\/usergroup\/event-log-monitor-t4256.html\">already an example of monitoring the event log<\/a> for specific event types and responding to them in the Scripts n Tips forum <a href=\"http:\/\/www.mjtnet.com\/usergroup\/event-log-monitor-t4256.html\">here<\/a>.<\/p>\n<p>So I&#8217;ve taken that code and modified it slightly to return a list of all entries for a given event code. \u00a0Here is the script:<\/p>\n<p><script src=\"https:\/\/snipt.net\/embed\/aeac4ace228f348e74d9adf7efea3f81\/\" type=\"text\/javascript\"><\/script><\/p>\n<p>Although I&#8217;ve added code to allow you to retrieve ALL events I would not advise it as that could take A. VERY. LONG. TIME.<\/p>\n<p>I&#8217;ve <a href=\"http:\/\/www.mjtnet.com\/usergroup\/extract-list-of-events-from-system-event-log-t8153.html\">added this example<\/a> into the Scripts n Tips forum. \u00a0<a href=\"http:\/\/www.mjtnet.com\/usergroup\/extract-list-of-events-from-system-event-log-t8153.html\">Here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just been asked how to read from the system event log (what you see in Windows Event Viewer) using Macro Scheduler. As it happens there&#8217;s already an example of monitoring the event log for specific event types and responding to them in the Scripts n Tips forum here. So I&#8217;ve taken that code and modified [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,6],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/2198"}],"collection":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/comments?post=2198"}],"version-history":[{"count":5,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/2198\/revisions"}],"predecessor-version":[{"id":2204,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/2198\/revisions\/2204"}],"wp:attachment":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/media?parent=2198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/categories?post=2198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/tags?post=2198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}