Modifying the Log Level
If the Data Collector logs do not provide enough troubleshooting information, you can modify the log level to display messages at another severity level.
By default, Data Collector
logs messages at the INFO severity level. You can configure the following log
levels:
- TRACE
- DEBUG
- INFO (Default)
- WARN
- ERROR
- FATAL
- Click .
-
Click Log Config.
Data Collector displays the contents of the log configuration file,
$SDC_CONF/sdc-log4j.properties
. -
Change the default value of INFO for the following line in the file:
log4j.logger.com.streamsets=INFO
For example, to set the log level to DEBUG, modify the line as follows:
log4j.logger.com.streamsets=DEBUG
-
Click Save.
The changes that you make to the log level take effect immediately - you do not need to restart Data Collector. You can also change the log file by directly editing the log configuration file,
$SDC_CONF/sdc-log4j.properties
.Note: For a Cloudera Manager installation, use Cloudera Manger to modify the log level. In Cloudera Manager, select the StreamSets service, then click Configuration. Click , and then modify the value of the Data Collector Logging Threshold property.
When you’ve finished troubleshooting, set the log level back to INFO to avoid having verbose log files.