Loading TOC...


   config as element(configuration),
   passphrase as String
) as element(configuration)


MarkLogic supports encrypting the logs with a secondary encryption passphrase, this function can be used to set the passphrase. Note that log encryption must be enabled for this passphrase to be used.

config A configuration specification, typically as returned from one of the Admin module functions.
passphrase A passphrase to use when encrypting the logs


const admin = require('/MarkLogic/admin.xqy');
const config = admin.getConfiguration();

admin.clusterSetKeystoreLogsEncryptionPassphrase(config, passphrase);

// Returns the new configuration element -- use admin.saveConfiguration to save
// the changes to the configuration or pass the configuration to other Admin API
// functions to make other changes.

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.