Skip to end of banner
Go to start of banner

Configuring a Snaplex Node to Use Custom Logging

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Developing custom Snaps might require changing the built-in logging configuration of the Snaplex node. Most configuration changes related to Log settings (such as the retention level or file size) can be done through the Update Snaplex properties dialog in SnapLogic Manager. If the log level for certain libraries needs to be changed, use the following procedure to customize the logging configuration.

Caution

SnapLogic does not recommend changing the log file names or locations. Doing so can break the functionality that allows the viewing of logs from the SnapLogic Dashboard.

To Configure a Snaplex Node, perform the following steps:

  1. Copy the configuration file to a location outside of the etc directory:

  2. To enable the custom logging configuration, add a configuration property in the global.properties file (or in the .slpropz configuration file from the Snaplex properties file):

  3. Apply the changes in the configuration file. For example, to disable logging for a Parquet library, add the following:

    You can make further configuration changes per your requirements.

     
  4. Apply these changes to all the nodes in the Snaplex, and restart the Java Component Container (JCC) processes. 

When the JCC starts up, the .sample files are written to the new location (these files are copies of what is packaged with the JCC). The -Dlog4j.configurationFile option is passed by the SL monitor to the JCC on startup and specifies the location of the configuration file. By default, the file packaged with the JCC is used.

Security policies prohibit reading logger property files from certain directory locations, like /opt/snaplogic/etc and /opt/snaplogic/run.

  • No labels