Analyzing logs to detect hackers