Only count errors occurring in the last thirty days

- Do this in SQL, no client-side config for the user to choose their
  date range.