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.
Instructions
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
- 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
- Uses the data query feature to query the data from the "ServerOUs" script
- Data will be returned and merged automatically by Cloudbridge
Related articles