fix log file in case of ambari agent