diff --git a/lib/nr-security-agent/lib/core/connections/websocket/response/startup-handshake-handler.js b/lib/nr-security-agent/lib/core/connections/websocket/response/startup-handshake-handler.js index 9c300b69..20ede33f 100644 --- a/lib/nr-security-agent/lib/core/connections/websocket/response/startup-handshake-handler.js +++ b/lib/nr-security-agent/lib/core/connections/websocket/response/startup-handshake-handler.js @@ -9,6 +9,7 @@ let logger = logs.getLogger(); const initLogger = logs.getInitLogger(); const LOG_MESSAGES = require('../../../sec-agent-constants').LOG_MESSAGES; const applicationInfoModule = require('../../../applicationinfo'); +const LogMessage = require('../../../LogMessage'); module.exports.handler = function handler(json) { try { @@ -17,6 +18,8 @@ module.exports.handler = function handler(json) { initLogger.info(LOG_MESSAGES.AGENT_INIT_WITH_PROP, JSON.stringify(startupConfig.config)); initLogger.info('Security Agent is now ACTIVE for', applicationInfoModule.getInstance().applicationUUID); + const logMessage = new LogMessage.logMessage("SEVERE", `Security Agent is ACTIVE for ${ applicationInfoModule.getInstance().applicationUUID}`, __filename, null); + require('../../../commonUtils').addLogEventtoBuffer(logMessage); } catch (error) { logger.error(LOG_MESSAGES.PARSING_EXP_WELCOME_MSG, error);