start of log analysis tool