Need Help with a powershell script.
i have error in log file particular error. task search latest error , send mail email address in error, subject in error , body of email error self. here sample error. email id not same each error . keeps on changing, subject.
error 2013-08-12 10:37:04,258 5417ms messagedeadletterpipe onerror - dead letter notification, send alias = 'xxx@microsoft.com', subject = 'error occurred @ time of alarm event creation', error = 'system.collections.generic.keynotfoundexception: given key not present in dictionary.
@ system.collections.generic.dictionary`2.get_item(tkey key)
@ microsoft.mfx.monitoring.connectorservice.connectors.mage.almpipe.processdata(tuple`2 data) in c:\enlistments\msg\projects\monitoring\connectors\main\npcconnectorservice\connectors\mage\almpipe.cs:line 58
@ microsoft.mfx.monitoring.connectorservice.pipes.pipe`2.onnext(tsource value) in c:\enlistments\msg\projects\monitoring\connectors\main\npcconnectorservice\pipes\pipe.cs:line 63', original message = '<gfsincident>
<incomingevent>
<field name="incidentid" value="00000000-xxxx-1111-xxxx-000000000000" />
<field name="configurationitemname" value="azscom" />
<field name="description" value="event description: test alert" />
<field name="eventnumber" value="0" />
<field name="eventoccurred" value="07/04/2013" />
<field name="eventsource" value="auto-detected" />
<field name="eventtype" value="type" />
<field name="monitoringsourceinstancename" value="mage-npc" />
<!--<field name="configurationitemtype" value="monitoringresource"/>-->
<field name="eventoccurredcount" value="1" />
<field name="monitoringruledescription" value="aims rule #2" />
<field name="monitoringruleid" value="124" />
<field name="monitoringsourceeventid" value="3000" />
<field name="priority" value="low" />
<field name="severity" value="minor" />
<field name="applicationname" value="appex news" />
<field name="createmonitoredobjectinasset" value="false" />
</incomingevent>
<customeventproperties>
<property name="a" value="a" />
<property name="b" value="b" />
<property name="c" value="c" />
</customeventproperties>
</gfsincident>'
if find post has answered question, please mark answer. if find post helpful in anyway, please click vote helpful.
don't retire technet
Windows Server > Windows PowerShell
Comments
Post a Comment