-
Notifications
You must be signed in to change notification settings - Fork 4
Log Data Visualization Analysis
-
This sub-module visualizes the event log data with two visualization charts:
-
Bar Chart: This chart represents the total count of each operation in the database. X axis represents the triggering count for each operation and Y axis represents the name of each operation.
-
Line Graph: This graph represents the monthly trigger count of each operation. X axis represents each month, along with the year, starting from date corresponding to the timestamp of the first entry in the database. Y axis represents the triggering count for each operation for that corresponding month.
-
-
This module makes use of the d3.js module of Drupal. This caters various libraries and predefined functions for the development of various SVG data visualization techniques with minimal overhead.
-
There are two dependencies for the log_data_visualization_analysis module:
-
Event Log Module: (Github link to this module: https://github.com/fresearchgroup/drupal-logger )
-
D3 Module: (Drupal link to this module: https://www.drupal.org/project/d3 )
-
-
A new sub-module named log_data_visualization_analysis is added. The .module file implements the desired action using hook api functions namely, hook_menu and hook_permission.
-
Details about this functions can be found at:
-
hook_menu: To register paths to configuration page and the page used for the representation of visualizations. It also associates callback functions to the corresponding registered pages. https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_menu/7.x
-
hook_permission: To enable an administrator to provide privileges to different users. https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_permission/7.x
-
-
Besides the above hook api functions, some user defined functions in the sub-module are:
-
log_data_visualization_analysis_admin_form: This function creates a ‘Go to Visualizations’ button for redirecting to the visualizations page.
-
log_data_visualization_analysis_select: This function is called when the ‘Go to Visualizations’ button is clicked and it redirects the user to the visualizations page.
-
log_data_visualization_analysis_linegraph: This function creates a line graph for representing the monthly trigger count of each operation. Firstly, it retrieves the distinct operations from the database, then calculates their count for a particular month and finally converts that data to the desired format for calling the d3_draw() function from d3 module.
-
log_data_visualization_analysis_bar: This function creates a bar chart for representing the total count of each operation in the database. Firstly, it retrieves the distinct operations from the database, then calculates their total count in the database and finally converts that data to the desired format for calling the d3_draw() function from d3 module.
-
- Ability to log to a file instead of a database
- Backup event_log database content
- Clear log messages button
- Notify Illegal access to authorized user
- Log Data to Cloud (Experimental)