'I need to monitor a missing log in newrelic

I have a set of logs coming into NewRelic. An expected logs flow is "MassageA" (indicating a sync had started) followed by a "MassageB" (indicating a sync had finished). I need to monitor a situation where I receive two "MassageA"s one after the other (Without a MasssageB) in between them. Any idea on how can I achieve that?

Thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source