Log files. They're there for a reason -- to keep track of what goes on behind the velvet curtain of your operating system. When things go wrong, entries are added to those log files, so you can view ...
Stop piping grep into five other commands. It already handles most of that.