Phatxausage
IS-IT--Management
Here is what I need to do.
[ol 1]
[li]There is a CSV file with 3 columns (Datasource, eventID, project Code, description)[/li]
[li]Get a time stamp from a text file[/li]
[li]Grab all application log events that is newer than the time stamp[/li]
[li]Replace the time stamp to current time[/li]
[li]For each event (with the event datasource and eventID), match the datasource and eventID against the CSV file. If a datasource and eventID are matched, write a new event with a pre-defined fixed datasource name and ID, along with the corresponding project code description into this new event description.[/li]
[/ol]
At the end system center operations manager will pick up this particular new event and generate an Alert, which associate a project code. End users/administrators can modify the CSV file themselves to enable specific event log monitoring by their own
I planned work this out using Powershell with Import-CSV and Get-EventLog. However the script has to work on 2003 servers without powershell and deploying PowerShell on them is not allowed.
As I am not really a scripting guys. I would like know at least some high level procedures to work this out.
Get the CSV into an array?
Get those event logs into another array?
standardize format?
Cross matching?
write back event log
really lost......
[ol 1]
[li]There is a CSV file with 3 columns (Datasource, eventID, project Code, description)[/li]
[li]Get a time stamp from a text file[/li]
[li]Grab all application log events that is newer than the time stamp[/li]
[li]Replace the time stamp to current time[/li]
[li]For each event (with the event datasource and eventID), match the datasource and eventID against the CSV file. If a datasource and eventID are matched, write a new event with a pre-defined fixed datasource name and ID, along with the corresponding project code description into this new event description.[/li]
[/ol]
At the end system center operations manager will pick up this particular new event and generate an Alert, which associate a project code. End users/administrators can modify the CSV file themselves to enable specific event log monitoring by their own
I planned work this out using Powershell with Import-CSV and Get-EventLog. However the script has to work on 2003 servers without powershell and deploying PowerShell on them is not allowed.
As I am not really a scripting guys. I would like know at least some high level procedures to work this out.
Get the CSV into an array?
Get those event logs into another array?
standardize format?
Cross matching?
write back event log
really lost......