Forum Discussion

JensDeveloper's avatar
JensDeveloper
Contributor II
4 years ago
Solved

Map Key value pairs function

Hi, I’m having it very difficult to fill the value of a key/value pair wit another value. I Have an object that consists of a list of strings that are each unique. but with each string inside the...
  • akidave's avatar
    8 years ago

    The logs which are written to by the JCC are automatically rotated as required. The log settings are configurable in the Snaplex properties.

    jcc_output.log is the stdout of the JCC process, not much output goes to the stdout usually and it is not automatically rotated. To enable log rotation for the stdout, ensure logrotate is configured on the machine and then create the file /etc/logrotate.d/jcc with the contents

    /opt/snaplogic/run/log/jcc_output.log /opt/snaplogic/run/log/monitor.log {
        copytruncate
        compress
        size 100M
        rotate 10
        notifempty
    }
    

    To verify the logrotate configuration, run

    sudo logrotate -vf /etc/logrotate.d/jcc

    If the existing log is large, the first rotation can be slow because of the file copy required. To manually truncate the log file before enabling logrotate, do

    sudo truncate -s 0 /opt/snaplogic/run/log/jcc_output.log