The short answer would be yes, the NRQL-based conditions can be configured to ignore specific scenarios and also you can create other conditions to alert you when those scenarios happen.
The only key point is that we need to identify the scenario.
I mean we need to identify a pattern of the transaction when the 404 was created by a bot.
So, in the transaction created for those requests that ended in 404s we need to see, an attribute that has a specific value when it is a legit 404 and when it is a bot 404. Does it make sense?
If you could send me the link to the transaction in your app that resulted in a 404 and was created by a bot and another that wasn’t I’d be happy to check.
*I’m supposing that your app is being monitored by any of the APM Agents from New Relic.
Also if this helped resolve the issue please consider selecting the Solution option below this post. Find more information here: How to Use the Official Solution Checkbox