For on-prem sites, customers may wish to parallel process using multiple proxies. For example:
An organization has six major data centers.
Each data center has dozens of servers.
A frequent scan of all server EventLogs is required to monitor for errors and warnings.
By deploying a proxy to each location, parallel processing can be performed.
This results in a challenge when using a single script to have all data merged into a single view:
How can each proxy know for which servers it's responsible?
This article describes an approach to solve this problem.
These instructions provide general guidance and should be modified to address specific organizational needs.
Prerequisite: Each server will belong to an OU that indicates the data center in which it is located.
- Create a script called "ServerOUs" that, for all servers in Active Directory, collects:
- The server name; and,
- Its respective data center OU.
- Install a proxy in each data center.
- Create a ConnectID for each proxy and for each ConnectId
- Create a variable called DataCenterOU
- Instead of being dependent on a custom OU that needs to be created up front, how about just using AD sites and focusing a proxy on the servers within that site? This could be the default behaviour so it just works without any configuration, but if the custom OU is there, that is the trigger to override the default behaviour.
- For the DataCenterOU value, list the OUs, comma separated, for which this proxy will be responsible
- Create a script to query the EventLogs that:
- Uses the data query feature to query the data from the "ServerOUs" script
- restrict the query to only the servers in the target OUs listed in the ConnectId variable "ServerOUs"
- This will retrieve the target list of servers
- Loop through the target list of servers and for each
- Collect the needed EventLog data
- Consider using PowerShell parallel processing
- To perform well in medium- to large-sized environments, we will absolutely need this.
- Data will be returned and merged automatically by Cloudbridge