Checks the deployment of Prevoty by analyzing the Prevoty Diagnostic log file.
This document describes how to check the deployment of Prevoty by analyzing the Prevoty Diagnostic log file.
The analysis is based on a certain set of messages that need to appear in the Prevoty Diagnostic log.
These messages are based on:
- The version of Prevoty being used. E.g.:
- 6.7
- The filter insertion method being used:
- Automatic: agent-based by means of the JVM arguments or
- Manual: manual change of web.xml
- The language being used:
- Java or
- .NET
In the case where the certain set of messages appear more than once in the Prevoty Diagnostic log file, the tool will analyze the latest set of messages.
- Get a copy of the tool PrevotyCheckLog.jar from the Prevoty Customer Success Portal here
- Copy PrevotyCheckLog.jar onto the server running Prevoty
- Get a copy of the Prevoty JVM arguments from the same server
- Get the value for -Dprevoty_log_config. E.g.:
/opt/Apache/Tomcat-8.5.5/Prevoty/prevoty_logging.json
- This is the Prevoty Logging Configuration file
- Open this Prevoty Logging Configuration file and get the value of default_log_directory. E.g.:
/opt/Apache/Tomcat-8.5.5/logs
- This is the directory where Prevoty will store the log files
- From this Prevoty log directory note down the name of the latest Prevoty Diagnostic log file and prepend it with the value for the default_log_directory. E.g.:
/opt/Apache/Tomcat-8.5.5/logs/prevoty.log
- This is the absolute path of the Prevoty Diagnostic log file, which we will analyze
- Log on to the server running Prevoty
- Open a terminal
- Go into the directory where you have copied PrevotyCheckLog.jar. E.g.:
cd /tmp
- Execute PrevotyCheckLog.jar with the following arguments
- The version of Prevoty being used. E.g.:
-v 3.6.7
- The type of Prevoty filter insertion (automatic or manual). E.g.:
-i manual
- The language you are using (java or .NET). E.g.:
-l java
- The Complete path of the Prevoty Diagnostic log file. E.g.:
-f /opt/Apache/Tomcat-8.5.5/logs/prevoty.log
- g.: java -jar ./PrevotyCheckLog.jar -v 3.6.7 -i manual -l /java -f /opt/Apache/Tomcat-8.5.5/logs/prevoty.log
- The tool will report two results
- A summary of the analysis. E.g.:
Prevoty Diagnostic Log Summary |
---|
Prevoty version: < 3.9.0
Prevoty filter insertion: Manual change web.xml
Prevoty language: Java
Prevoty diagnostic log file path: /Users/percy.rotteveel/Documents/Prevoty/Customers/Citi/Projects/170311-InView Client Web/issues/1127/Sep212018/prevoty.log
Prevoty deployment check: OK
- A detailed analysis. E.g.:
Prevoty Diagnostic Log Analysis |
---|
String 0: Found
Search string: com.prevoty.agent.Agent - Prevoty Agent: Premain Invoked
Occurrence(s): 33460
Last occurrence: Sep 21 2018 21:31:35 UTC [main] INFO com.prevoty.agent.Agent - Prevoty Agent: Premain Invoked
String 1: Found
Search string: com.prevoty.agent.Agent - Prevoty Version:
Occurrence(s): 33461
Last occurrence: Sep 21 2018 21:31:35 UTC [main] INFO com.prevoty.agent.Agent - Prevoty Version: 3.6.7 (f7d255a3)
String 2: Found
Search string: com.prevoty.commons.configuration.ApplicationConfiguration - Found application configuration from disk:
Occurrence(s): 33470
Last occurrence: Sep 21 2018 21:31:35 UTC [main] INFO com.prevoty.commons.configuration.ApplicationConfiguration - Found application configuration from disk: /apps/ivclweb/appconfigs/codebase/properties/prevoty/CPB_Prevoty.json
String 3: Found
Search string: com.prevoty.commons.configuration.ApplicationConfiguration - Successfully deserialized and loaded application configuration:
Occurrence(s): 33471
Last occurrence: Sep 21 2018 21:31:35 UTC [main] INFO com.prevoty.commons.configuration.ApplicationConfiguration - Successfully deserialized and loaded application configuration: /apps/ivclweb/appconfigs/codebase/properties/prevoty/CPB_Prevoty.json
String 4: Found
Search string: com.prevoty.agent.AgentRuntime - Installing CmdinjectionAgentRuntime
Occurrence(s): 33478
Last occurrence: Sep 21 2018 21:31:35 UTC [main] INFO com.prevoty.agent.AgentRuntime - Installing CmdinjectionAgentRuntime
String 5: Found
Search string: com.prevoty.agent.AgentRuntime - Installing PathTraversalAgentRuntime
Occurrence(s): 33484
Last occurrence: Sep 21 2018 21:31:35 UTC [main] INFO com.prevoty.agent.AgentRuntime - Installing PathTraversalAgentRuntime
String 6: Found
Search string: com.prevoty.agent.AgentRuntime - Installing QueryAgentRuntime
Occurrence(s): 33494
Last occurrence: Sep 21 2018 21:31:35 UTC [main] INFO com.prevoty.agent.AgentRuntime - Installing QueryAgentRuntime
String 7: Found
Search string: com.prevoty.servlet.ServletContextListener - Prevoty Servlet Context Listener handling context event
Occurrence(s): 87465
Last occurrence: Sep 21 2018 21:33:02 UTC [server.startup : 0] INFO com.prevoty.servlet.ServletContextListener - Prevoty Servlet Context Listener handling context event.\
- If there are one or more messages missing in the Prevoty Diagnostic log, that information can be used to further investigate what might be wrong with the Prevoty deployment. E.g.:
Prevoty Diagnostic Log Summary |
---|
Prevoty version: >= 3.9.0
Prevoty filter insertion: Agent-based
Prevoty language: Java
Prevoty diagnostic log file path: /Users/percy.rotteveel/Documents/Prevoty/Customers/Citi/Projects/161807-CVEP/Issues/1198/prevoty.log_20180924
Prevoty deployment check: ERROR
Prevoty Diagnostic Log Analysis |
---|
String 0: Found
Search string: com.prevoty.agent.Agent - Prevoty Agent: Premain Invoked
Occurrence(s): 25, 42, 421, 458
Last occurrence: Sep 24 2018 19:03:42 UTC [main] INFO com.prevoty.agent.Agent - Prevoty Agent: Premain Invoked
String 1: Found
Search string: com.prevoty.agent.Agent - Prevoty Version:
Occurrence(s): 26, 43, 422, 459
Last occurrence: Sep 24 2018 19:03:42 UTC [main] INFO com.prevoty.agent.Agent - Prevoty Version: 3.9.3 (b840d163)
String 2: Found
Search string: com.prevoty.commons.configuration.ApplicationConfiguration - Found application configuration from disk:
Occurrence(s): 32, 49, 428, 465
Last occurrence: Sep 24 2018 19:03:42 UTC [main] INFO com.prevoty.commons.configuration.ApplicationConfiguration - Found application configuration from disk: /opt/gportal/icg_portal/dev/rev-proxy-citivelocity/etc/Prevoty/prevoty-CVEP_RP_monitor.json
String 3: Found
Search string: com.prevoty.commons.configuration.ApplicationConfiguration - Successfully deserialized and loaded application configuration:
Occurrence(s): 33, 50, 429, 466
Last occurrence: Sep 24 2018 19:03:42 UTC [main] INFO com.prevoty.commons.configuration.ApplicationConfiguration - Successfully deserialized and loaded application configuration: /opt/gportal/icg_portal/dev/rev-proxy-citivelocity/etc/Prevoty/prevoty-CVEP_RP_monitor.json
String 4: Found
Search string: com.prevoty.agent.AgentRuntime - Installing CmdinjectionAgentRuntime
Occurrence(s): 38, 55, 434, 471
Last occurrence: Sep 24 2018 19:03:42 UTC [main] INFO com.prevoty.agent.AgentRuntime - Installing CmdinjectionAgentRuntime
String 5: Found
Search string: com.prevoty.agent.AgentRuntime - Installing PathTraversalAgentRuntime
Occurrence(s): 39, 56, 435, 472
Last occurrence: Sep 24 2018 19:03:42 UTC [main] INFO com.prevoty.agent.AgentRuntime - Installing PathTraversalAgentRuntime
String 6: Found
Search string: com.prevoty.agent.AgentRuntime - Installing QueryAgentRuntime
Occurrence(s): 40, 57, 436, 473
Last occurrence: Sep 24 2018 19:03:42 UTC [main] INFO com.prevoty.agent.AgentRuntime - Installing QueryAgentRuntime
String 7: Found
Search string: com.prevoty.agent.AgentRuntime - Installing ServletAPIAgentRuntime
Occurrence(s): 41, 58, 437, 474
Last occurrence: Sep 24 2018 19:03:42 UTC [main] INFO com.prevoty.agent.AgentRuntime - Installing ServletAPIAgentRuntime
String 8: Not found
Search string: com.prevoty.agent.Agent - Using RASP jar:
Occurrence(s): None
String 9: Not found
Search string: com.prevoty.agent.Agent - Agent version:
Occurrence(s): None
- In this case we are using Prevoty >= 3.9.0 with agent-based filter insertion where "Using RASP jar" and "Agent version" were not reported, it might mean the two additional JVM arguments were not set. E.g.:
-Dprevoty_agentrasp
-Dprevoty_raspjarpath=/opt/gportal/icg_portal/dev/rev-proxy-citivelocity/etc/Prevoty/prevoty-rasp-3.9.3.jar"
RackMultipart20210423-4-1g9xa53.docx September 30, 2018 Page 8 of 8