Imagine you have a system that is experiencing intermittent failures. What steps would you take to diagnose the issue?