I want to create a scheduled task that will take a custom view I have created in Server 2008 Event Viewer and email all the events in a .xml format once a week (Monday morning). Bonus points if you can RAR or ZIP the .xml prior to sending it in the email.

I can do this manually by saving the custom view then compressing it and publishing it to a website for download. It would be much nicer to automate it and send via email. Having the file in a location in Inetpub for download is also very acceptable.

Here is my filter settings

<QueryList>
  <Query Id="0" Path="Application">
    <Select Path="Application">*[System[Provider[@Name='ASP.NET 2.0.50727.0' or @Name='ASP.NET 4.0.30319.0'] and (Level=1  or Level=2 or Level=3)]]</Select>
  </Query>
</QueryList>

Thank you for the advice.

link|improve this question

feedback

1 Answer

Windows Server 2008 allows you to create a scheduled task that is triggered when certain events are written to the event log:

enter image description here

The scheduled task can be configured to send an e-mail:

enter image description here

Granted, it will email when the event happens, rather than once a week. But that's the price you pay for using the built-in features of Windows.

link|improve this answer
Offensive, and not what I asked for..... I am familiar with sending on event emails using the task scheduler. This is not an acceptable solution. To get 100 emails about errors/Warnings a week, I may as well just look at the actual logs and save the resources.... There is nothing lazy about automation so I can focus on tasks that require actual thought. – Campo Mar 14 '11 at 15:42
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.