How to mail system logs in ws02

In Windows Server 2008 (WS02), you can configure the system logs to be mailed to a specific email address using the Windows Server 2008 built-in feature called "Windows Server 2008 Event Forwarding" or "WEF". Here are the steps:

Prerequisites:

  1. Ensure that the Windows Server 2008 machine has the "Windows Server 2008 Event Forwarding" feature installed. You can check this by going to the "Add or Remove Features" wizard in the "Control Panel" and searching for "Event Forwarding".
  2. Ensure that the machine has a valid email account set up on it. You can do this by going to the "Control Panel" > "Mail" and setting up a new email account.

Step-by-Step Instructions:

  1. Open the "Event Viewer" on the Windows Server 2008 machine. You can do this by going to the "Start" menu > "Administrative Tools" > "Event Viewer".
  2. In the "Event Viewer", navigate to the "Windows Logs" section and select the log you want to forward (e.g. "System", "Application", etc.).
  3. Right-click on the log and select "Properties".
  4. In the "Properties" window, click on the "Forward" tab.
  5. Check the box next to "Enable forwarding" and enter the email address you want to forward the logs to.
  6. You can also specify the frequency of the log forwarding by selecting the "Forward every" option and choosing the desired interval (e.g. every 15 minutes).
  7. Click "OK" to save the changes.

Additional Configuration:

  1. To configure the email account used for log forwarding, go to the "Control Panel" > "Mail" and select the email account you set up earlier.
  2. In the "Mail" window, click on the "Accounts" tab and select the email account you want to use for log forwarding.
  3. Click on the "Properties" button next to the email account and select the "Advanced" tab.
  4. In the "Advanced" tab, click on the "Send" button next to the "Outgoing mail server" field and enter the email server settings (e.g. SMTP server, port, etc.).

Troubleshooting:

  1. If you encounter issues with log forwarding, check the event logs for errors related to the email account or the forwarding process.
  2. Verify that the email account is set up correctly and that the email server settings are correct.
  3. Check the Windows Server 2008 machine's firewall settings to ensure that the email port (e.g. 25) is allowed.

By following these steps, you should be able to configure the system logs on your Windows Server 2008 machine to be mailed to a specific email address.