Managing the Cloudera Manager Agent Logs

To help you troubleshoot problems, you can view the Cloudera Manager Agent logs. You can view the logs in the Logs page or in specific pages for the logs.

Viewing the Cloudera Manager Agent Logs

Use the procedure to view and search the logs from all Cloudera Manager agents managed by this instance of Cloudera Manager.

  1. In the left menu, click Diagnostics > Logs.
  2. Click Select Sources to display the log source list.
  3. Uncheck the All Sources checkbox.
  4. Click to the left of Cloudera Manager and select the Agent checkbox.
  5. Click Search.
You can also view the Cloudera Manager Agent log at /var/log/cloudera-scm-agent/cloudera-scm-agent.log on the Agent hosts.

Setting the Cloudera Manager Agent Log Location

By default. the Cloudera Manager Agent log is stored in /var/log/cloudera-scm-agent/. If there is not enough space in that directory, you can change the location of the log file.

  1. Set the log_file property in the Cloudera Manager Agent configuration file:
  2. Create log/cloudera-scm_agent directories and set the owner and group to cloudera-scm. For example, if the log is stored in /opt/log/cloudera-scm-agent, do the following:
    sudo su
    cd /opt
    mkdir log
    chown cloudera-scm:cloudera-scm log
    mkdir /opt/log/cloudera-scm-agent
    chown cloudera-scm:cloudera-scm log/cloudera-scm-agent
  3. Restart the Agent:
    sudo service cloudera-scm-agent restart