<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Getting event log contents by email on an event log trigger</title><link>http://blogs.technet.com/b/jhoward/archive/2010/06/16/getting-event-log-contents-by-email-on-an-event-log-trigger.aspx</link><description>This one was actually pretty simple to work out, but it did have me flummoxed to start with. Here’s the scenario, I wanted to get an email when an event log entry was triggered. But, I also wanted the contents of the event log entry. I’ve been meaning</description><dc:language>en-GB</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Getting event log contents by email on an event log trigger</title><link>http://blogs.technet.com/b/jhoward/archive/2010/06/16/getting-event-log-contents-by-email-on-an-event-log-trigger.aspx#3573408</link><pubDate>Fri, 17 May 2013 17:39:49 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3573408</guid><dc:creator>Jason</dc:creator><description>&lt;p&gt;I&amp;#39;m querying the :&lt;/p&gt;
&lt;p&gt;Microsoft-Windows-Small Business Server_Operational_Windows Small Business Server 2011 Standard&lt;/p&gt;
&lt;p&gt;Log for failures in the POP3 connector (event 212), but I can&amp;#39;t seem to fashion an alternative command to search through a Log that has a space in the name. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3573408" width="1" height="1"&gt;</description></item><item><title>re: Getting event log contents by email on an event log trigger</title><link>http://blogs.technet.com/b/jhoward/archive/2010/06/16/getting-event-log-contents-by-email-on-an-event-log-trigger.aspx#3572598</link><pubDate>Tue, 14 May 2013 15:13:30 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3572598</guid><dc:creator>Chinnu</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;How can we get the details of the error in an email.&lt;/p&gt;
&lt;p&gt;When I say attach task to the event and fill in the details , we do not get the details of the error message.&lt;/p&gt;
&lt;p&gt;We just get the text saying &amp;quot;text&amp;quot; ...How can we get the inner details of the error.&lt;/p&gt;
&lt;p&gt;I have an application and whenever an error is thrown in that application , an email should be triggered so that the inner details of the exception should also be triggered within the email. How can this be done..Do we need to run the batch file for getting the inner exception as well ?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3572598" width="1" height="1"&gt;</description></item><item><title>re: Getting event log contents by email on an event log trigger</title><link>http://blogs.technet.com/b/jhoward/archive/2010/06/16/getting-event-log-contents-by-email-on-an-event-log-trigger.aspx#3567071</link><pubDate>Tue, 16 Apr 2013 14:48:15 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3567071</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;I know these are old... but for others searching who may not have found the answers:&lt;/p&gt;
&lt;p&gt;@u2_boy&lt;/p&gt;
&lt;p&gt;try: &amp;nbsp;wevtutil qe Application &amp;quot;/q:*[System[(EventID=28673)]]&amp;quot; /f:text /rd:true /c:1&lt;/p&gt;
&lt;p&gt;I was having similar problems. &amp;nbsp;the answer I found (for server 2012) was to apply filter in the event viewer and then copy the query out of the XML tab for the command line. (but not the xml pieces)&lt;/p&gt;
&lt;p&gt;for example: &amp;nbsp;in my case I wanted to know the last deduplication result the xml line was:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;Select Path=&amp;quot;Microsoft-Windows-Deduplication/Operational&amp;quot;&amp;gt;*[System[(EventID=6153)]]&amp;lt;/Select&amp;gt;&lt;/p&gt;
&lt;p&gt;my command then became:&lt;/p&gt;
&lt;p&gt; &amp;nbsp;wevtutil qe Microsoft-Windows-Deduplication/Operational &amp;quot;/q:*[System[(EventID=6153)]]&amp;quot; /f:text /rd:true /c:1&lt;/p&gt;
&lt;p&gt;the query section appears to be case and spacing sensitive.&lt;/p&gt;
&lt;p&gt;@Max&lt;/p&gt;
&lt;p&gt;change your /rd:false to /rd:true &amp;nbsp;(true sorts by most recent events)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3567071" width="1" height="1"&gt;</description></item><item><title>re: Getting event log contents by email on an event log trigger</title><link>http://blogs.technet.com/b/jhoward/archive/2010/06/16/getting-event-log-contents-by-email-on-an-event-log-trigger.aspx#3564110</link><pubDate>Mon, 08 Apr 2013 14:45:27 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3564110</guid><dc:creator>lg</dc:creator><description>&lt;p&gt;figured it out.&lt;/p&gt;
&lt;p&gt;it was not running elevated&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3564110" width="1" height="1"&gt;</description></item><item><title>re: Getting event log contents by email on an event log trigger</title><link>http://blogs.technet.com/b/jhoward/archive/2010/06/16/getting-event-log-contents-by-email-on-an-event-log-trigger.aspx#3549051</link><pubDate>Tue, 29 Jan 2013 15:18:38 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3549051</guid><dc:creator>Max</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;this shows always an old event entry not the last event.&lt;/p&gt;
&lt;p&gt;wevtutil qe System &amp;quot;/q:*[System [(EventID=1116)]]&amp;quot; /f:text /rd:false /c:1 &amp;gt;C:\Temp\myfile.txt&lt;/p&gt;
&lt;p&gt;for example the event 1116 comes up more then one time a day i will send only the last event but i receive always an old event from yesterday or older&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3549051" width="1" height="1"&gt;</description></item><item><title>re: Getting event log contents by email on an event log trigger</title><link>http://blogs.technet.com/b/jhoward/archive/2010/06/16/getting-event-log-contents-by-email-on-an-event-log-trigger.aspx#3545075</link><pubDate>Thu, 10 Jan 2013 05:27:56 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3545075</guid><dc:creator>sluisejuice</dc:creator><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;Its relatively easy to make it a bit cleaner by creating a powershell (or vbscript) script to run wevtutil to create a file with the event info, then parse the file into an email&amp;#39;s body, and send it. No attachment required that way. And you would only need one action &amp;quot;start a program&amp;quot; that would call your script.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3545075" width="1" height="1"&gt;</description></item><item><title>re: Getting event log contents by email on an event log trigger</title><link>http://blogs.technet.com/b/jhoward/archive/2010/06/16/getting-event-log-contents-by-email-on-an-event-log-trigger.aspx#3540068</link><pubDate>Tue, 11 Dec 2012 11:38:45 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3540068</guid><dc:creator>Zeeshan Ibrahim</dc:creator><description>&lt;p&gt;dear i m also facing a prblm...i &amp;nbsp;m not receiving any email on any event. even i have configure that..what can be the reason?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3540068" width="1" height="1"&gt;</description></item><item><title>re: Getting event log contents by email on an event log trigger</title><link>http://blogs.technet.com/b/jhoward/archive/2010/06/16/getting-event-log-contents-by-email-on-an-event-log-trigger.aspx#3540060</link><pubDate>Tue, 11 Dec 2012 11:15:46 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3540060</guid><dc:creator>Zeeshan Ibrahim</dc:creator><description>&lt;p&gt;Exactly ,,,,that is what i needed..i just need this for event &amp;quot;4663&amp;quot;, i will try and will let u know if succeded.....Thanks buddy&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3540060" width="1" height="1"&gt;</description></item><item><title>re: Getting event log contents by email on an event log trigger</title><link>http://blogs.technet.com/b/jhoward/archive/2010/06/16/getting-event-log-contents-by-email-on-an-event-log-trigger.aspx#3529369</link><pubDate>Mon, 29 Oct 2012 15:10:56 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3529369</guid><dc:creator>Horinius</dc:creator><description>&lt;p&gt;I&amp;#39;m trying to make the server send me a mail on O/S reboot. &amp;nbsp;I tried to attach the task to &amp;quot;System, Event ID: 6005&amp;quot; but the mail is never sent. &amp;nbsp;I suppose that&amp;#39;s because network is not yet ready at the moment event 6005 is generated. &amp;nbsp;Is there any solution with this &amp;quot;event-attached task&amp;quot; trick? &amp;nbsp;Thanks in advance.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3529369" width="1" height="1"&gt;</description></item><item><title>re: Getting event log contents by email on an event log trigger</title><link>http://blogs.technet.com/b/jhoward/archive/2010/06/16/getting-event-log-contents-by-email-on-an-event-log-trigger.aspx#3527123</link><pubDate>Wed, 17 Oct 2012 10:19:50 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3527123</guid><dc:creator>T. Kennis</dc:creator><description>&lt;p&gt;Very nice solution.&lt;/p&gt;
&lt;p&gt;There is an alternative, if you don&amp;#39;t want an external program to collect the information.&lt;/p&gt;
&lt;p&gt;Export your scheduled task to XML, change the XML by querying the values you need, re-import your task and use the parameters as arguments for the action.&lt;/p&gt;
&lt;p&gt;more information: &lt;a rel="nofollow" target="_new" href="http://www.buit.org/2009/07/16/event-based-triggered-tasks/"&gt;www.buit.org/.../event-based-triggered-tasks&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3527123" width="1" height="1"&gt;</description></item></channel></rss>