QPR ProcessAnalyzer Logs
QPR ProcessAnalyzer writes log of all operations it's performing. The logs can be used for monitoring, auditing, troubleshooting and many other purposes. The main types of logs are task log, script log and server log. The task log and reports based on it can be used routinely to monitor the system usage and collect statistics. The script logs are collected for each script that are running. The server log is not needed normally, but if there are exceptional situations, such as malfunctioning of the system, the server log is very helpful in understanding what has happened.
Task Log
All user requests are recorded as tasks, such as login, logout, modifying data, running queries etc. The Task Log can be browsed in the UI by opening the System Reports in the navigation menu (available only for system administrators). There are two task reports available: Running tasks (all tasks currently being executed) and Recent tasks (list of recent tasks in the order of start time). There are also summary level reports available for, e.g. which models have been used, when the system have been used, and who has used the system.
Executing tasks can be stopped by the administrator both in the Running tasks and Recent tasks reports by selecting the task(s) and in the right click context menu select End tasks.
Task log have for example the following use cases:
- To see the most active and idle times of the system to plan the optimal time for system updates and maintenance
- In case of performance issues, how much load the is in the system in different times
- How active the usage of the system is and how many users are using the system
- Which content and models are browsed by the users in the system
Task Log Settings
The following settings are available for the task log (in the Analyze tab):
- Start time from and Start time to: Choose the time range in which to show the task log. By default, the latest 6 months it shown.
- Maximum Text Length: Defines the maximum number of characters shown in the 'Additional Data' column.
- Only logins: Show only log entries of successful authentications by users.
- Maximum rows: Maximum number of rows shown by the log (default max. 1000).
The following columns can be selected for the task log (in the Columns tab):
- Task type: Type of the task, e.g. run expression, run script, etc.
- User: Login name of the user performing the task.
- User Id: User id performing the task.
- Model: Model name for which the task was performed.
- Model Id: Model id in which the task was performed.
- Start Time: Start time of the task.
- End Time: Endi time of the task. This field is empty if the task is still in progress.
- Duration: Duration of the task in seconds. Shown only if the task has completed.
- Task end called: Whether an administrator has requested to stop this task (note that the task may still be in progress).
- Additional Data: Shows parameters related to this task.
- Task Id: Id of the task.
- Session Id: User session id that made the task.
Script Log
The script log is collected for each script and separate log is stored for each run of the script.
Server Log
The server log contains all operations performed by the QPR ProcessAnalyzer server in great detail. The server log is stored to the locataion defined by the LogFilePath setting in the web.config file. Note also the server log settings in the web.config file.
For example, the following kind of log entries for security auditing purposes can be found in the server log:
- When specifying non-existing username, the following log entry is made: User is not found: XYZ
- When specifying wrong password for an existing user, the following log entry is made: User password is invalid: XYZ
- When trying to log in with an inactivated account, the following log entry is made: User account is invalid: XYZ