ConnectALL allows you to monitor the server logs in the ConnectALL server. The log files display the list of events and activities related to your automations and help you in monitoring and managing them.
Viewing the Logs
To open the Monitor Logs screen,
- Click the cogwheel icon on the right side of the navigation bar.
- Click the Logs option from the drop-down list. The Logs screen is displayed.
- Select the Log Type. (Depending on the option you choose, the Log File Path will display the respective file.)
- Select the Log file Path – If you have selected Tomcat under Log File Type, you can either select ConnecAll.log or ConnectAll_Audit.log file (the audit log file is explained in detail in the 'Viewing Audit Logs' section).
- Click Play to display the logs. (Or) if you want to enable the Advanced Configuration options, it is explained further below.
Based on the log file name you select, the server logs will be displayed. The filename patterns defined in the ConnectAll.properties file is based on regular expressions. A default configuration is given below:
The Advanced Configuration allows you to modify and override the property configuration from the UI. The changes in the Advanced Configuration are session scoped. Further, it allows you to provide the File Name Filter Pattern in a regx pattern.
To enable the Advanced Configuration:
- Click the filter icon.
- Select the Number of Log Files: from the drop-down list. By default, 10 is displayed.
- Enter the File Name Filter Pattern: and click the checkmark.
- Click Play to display the logs.
Viewing Audit Logs
ConnectALL logs the admin activities separately in the ConnectAll_Audit.log file. It is provided as a separate file and is available under the ConnectALL Log file type. The Audit log file records the following activities:
- Creating automation
- Modifying automation
- Enable automation
- Disable automation
- Delete automation
- Clone automation
- User Management activities (Users tab and Groups tab).
To access the ConnectAll_Audit log file:
- Select ConnectALL in the Log File Type drop-down list.
- Select 'ConnectAll_Audit.log' from the Log file path drop-down list.
- Select INFO from the adjacent drop-down list.
- Click Play.
The log file will be displayed.
Accessing User Activity Information
There may be scenarios where you have ConnectALL running in many servers accessed by many users. In such situations, it is possible to track all user activities. ConnectALL allows you to configure and activate a user activity tracking mechanism that would provide all the user activity information. (i.e) It is possible to see the screens accessed by users, by doing the following configuration in the Apache Tomcat logs.
- Place the connectallvalve.jar in the Apache Tomcat system library.
- Navigate to the 'conf' directory in the tomcat location and open the server.xml.
- Search for the element <host> and the sub-element <valve>. In the 'valve' element, you can use the pattern value separated by space. The values for the pattern attributes are made up of literal text strings combined with pattern identifiers prefixed by the '%' character to cause replacement by the corresponding variable value from the current request and response. The pattern codes provided below are supported.
- In the same "valve" element (below), replace the existing class name as "com.connectall.custom.valve.ConnectAllLogAccessValve".
- Go to the ConnectAll.properties file. Set the property as ca.user.track.handle=true which will be loaded into ConnectALL code. By default this will be 'false'.
- Restart the Tomcat server.