The Key could be in the configuration (security risk)
Or it could be part of the message to log
messageLogged:
"${myPassword}$This is the message to encrypt"
Message after layout
"[level] logger ${myPassword}$This is the message to encrypt"
The appender will take out the password and the rest of the message, and then encrypt the whole message with the password provided.
If the message does not include a password, it will be retrieved from the configuration.
Message to encrypt:
Encrypt appender To encrypt the data with DB2 functions. http://pic.dhe.ibm.com/infocenter/db2luw/v10r5/topic/com.ibm.db2.luw.sql.ref.doc/doc/r0004211.html
The Key could be in the configuration (security risk) Or it could be part of the message to log messageLogged:
Message after layout
The appender will take out the password and the rest of the message, and then encrypt the whole message with the password provided. If the message does not include a password, it will be retrieved from the configuration. Message to encrypt: