Accessing Log File Information
- Transformer log
- The Transformer log, $TRANSFORMER_LOG/transformer.log, provides information about the Transformer application, such as start-up messages, user logins, or pipeline display in the canvas. You can open the log file on the Transformer machine. You can also view and download log data with the Control Hub UI. When needed, you can also modify the level of detail included in the Transformer log.
- Spark driver log
- A Spark driver log provides information about how Spark runs, previews, and validates pipelines.
Transformer Log Format
Transformer uses the Apache Log4j library to write log data. Each log entry includes a timestamp and message along with additional information relevant for the message.
In Control Hub, log entries include the following information:
- Timestamp
- Pipeline
- Severity
- Message
- Category
- User
- Runner
- Thread
- Local pipelines
- Cluster pipelines run on Hadoop YARN in client deployment mode
The information included in the downloaded file is defined by the
appender.streamsets.layout.pattern
in the log configuration file,
$TRANSFORMER_CONF/transformer-log4j2.properties.
%X{s-entity}
- Local pipeline name and ID%X{s-runner}
- Runner ID%X{s-stage}
- Stage name%X{s-user}
- User who initiated the operation
Viewing the Transformer Log
You can view the Transformer log, $TRANSFORMER_LOG/transformer.log on the Transformer machine.
You can also view and download Transformer log data from Control Hub. When you download log data, you can select the file to download.
- In Control Hub, click .
- Click the Expand icon for the Transformer logs that you want to view.
- In the engine details, click View Engine Configuration, then click the Logs tab.
- To view earlier events, click Load Previous Logs.
-
To download the latest log file, click Download. To
download a specific log file, click .
The most recent information is in the file with the highest number.
-
To modify the log level, click Log Config.
For more information, see Modifying the Transformer Log Level.
- To refresh the page for the latest log entries, click Refresh.
Modifying the Transformer Log Level
If the Transformer log does not provide enough troubleshooting information, you can modify the log level to display messages at another severity level.
- TRACE
- DEBUG
- INFO (Default)
- WARN
- ERROR
- FATAL
$TRANSFORMER_CONF/transformer-log4j2.properties
.- To modify the log level through Control Hub, click .
- Click the Expand icon for the Transformer logs that you want to view.
- In the engine details, click View Engine Configuration, then click the Logs tab.
-
Click Log Config.
The contents of the log configuration file,
$TRANSFORMER_CONF/transformer-log4j2.properties
, displays. -
Change the default value of INFO for the following line in the file:
logger.l1.level=INFO
For example, to set the log level to DEBUG, modify the line as follows:
logger.l1.level=DEBUG
-
Click Save.
The changes that you make to the log level take effect immediately - you do not need to restart Transformer.
When you’ve finished troubleshooting, set the log level back to INFO to avoid having verbose log files.