I have Scribe Insight server which uses three private queues (scribedeadmessage, scribein and scriberetry). I know how to count number of messages in each queue with PowerShell, but I would like to count number of messages by message label in each queue with PowerShell.
Message structure from Scribe publisher looks like;
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<CustomerAddress
ScribePublishDate="2017-01-06T05:39:13.6212008+01:00"
ScribeLabel="CustomerAddress"
MessageLabel="CustomerAddress">
How can I count how many messages with ScribeLabel="CustomerAddress", "CustomerRelation", etc. are curently in scribein queue?
I hope you need to use XML objects here.
an Example code , say we have an XML named test.xml
above line of code will filter ParentTag only if ChildTwo equals 'Value1'
Hope this gives you a hint
Reagrds,
kvprasoon