Implement log filtering