Changed chmod of log and data dirs
Added logrotation for analysis log files