Fetch all failed activities in a namespace within a specific time period?

Is there a way to get all failed activities in a temporal namespace in a given time period. The only current way that I thought of is to look through the event history of every workflow to check for activity failures.