8

I'm running into an issue when trying to use a custom log journal for storing forwarded events (via subscription) on a Windows 2008 R2 server, the custom log being described as not being a "valid destination log".

I'm currently setting up an architecture for centralizing Windows events using the built-in event forwarding and collection capabilities (via WS-management and wecutil).

One of my requirements is to be able to create several subscriptions on the collector machine and to store forwarded events in different log files. For that, I tested creating a custom log (called CustomLog). This log appears in the Event Viewer, under the "Applications and Services Logs" category.

However, I am not able to redirect forwarded events to this CustomLog. CustomLog does not appear in the list of possible destination when creating a subscription in the Event Viewer user interface.

To try what could be wrong, I left it with the default ForwardedEvents as destination and I tried to change it via Powershell. I ran the following command, which is supposed to set the destination log as CustomLog:

wecutil ss "Collect from both sources" /lf:CustomLog

It ran without error. Though, no events are logged into CustomLog, and when I go back to the GUI to create/modify subscriptions and I try to open the subscription I set, I get a pop-up stating the following:

The destination log defined in this subscription cannot be found in the list of valid destination logs on this computer. verify that this log exists on the computer and is valid as a destination for forwarded events. Note that classic logs, analytic and debug logs and the Security log cannot be used as destination.

Does anybody know what a "valid destination log" is and how I could turn my CustomLog into such a valid destination?

1

The following Microsoft blog details the steps for creating separate log files. In fact, you can create any number of log files. I just completed the steps and can confirm it works on Windows 10.

Creating Custom Windows Event Forwarding Logs

Taking things a step further, I found the following Microsoft blog helpful for setting up a tiered architecture.

DIY Client Monitoring – Setting up Tiered Event Forwarding

0

wecutil allows an XML file to be used to provide configuration information. You could try place CustomLog as a target destination.

See https://msdn.microsoft.com/en-us/library/windows/desktop/bb736545(v=vs.85).aspx

It contains a sample XML file that you can use

Please look also at https://social.technet.microsoft.com/Forums/windowsserver/en-US/5347c4fe-5163-4b16-ab69-9fd52694a7f4/event-forwarding-to-a-custom-log-on-event-collector-source-initiated?forum=winservergen

This suggests it may not be possible, but does offer the XML solution as an option, but without any confirmation of success.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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