You can configure Squirro to collect data on the user's interactions with Squirro. The collected activity data provides insights on the overall usage of the system, for example, what dashboards were visited or what queries a user submitted. Squirro uses the recorded queries to improve the overall user experience by suggesting popular queries in typeahead or recommending similar queries when a user types into the search bar.
Configuration
Enable activity tracking in the Server Configuration (frontend.userapp.log-activity
).
The activity logs are then stored under /var/log/squirro/frontend/activity.$year-$month-$day.jsonl
Activity Tracking Project
Starting with version 3.4.5, Squirro allows for automatic creation of a Squirro Monitoring project.
The Squirro Monitoring project uses the Squirro Activity Log data loader plugin with a pre-configured Activity Log Enrichment pipeline to continuously load the activity data from the activity logs.
Automatic Creation
Self-service instances are shipped with a pre-configured monitoring project. On new deployments, Squirro creates the monitoring project named Squirro Monitoring upon first admin-user sign up (for each tenant).
You can configure the behaviour of the automatic monitoring project creation in the Server space under Configuration by setting the value of topic.monitoring.default-monitoring-project
to true
or false
(default is true
)
Any automatically created monitoring comes with the following:
A pre-configured
Squirro Activity Log
data sourceA custom index for the activity data with name
squirro_v9_activity_tracking_${tenant}
. The index is required to set up the popular queries suggestions.
Current limitations:
The monitoring project has no pre-configured dashboards. Have a look in the delivery repository for a template.
Manual Creation
On existing deployments, you can also manually create a monitoring project:
Create a new project
Add the Squirro Activity Log data loader plugin as data source
Click the SAVE button to set up the source as 1-click connector.
By setting up the source as 1-click connector, all necessary facets are automatically mapped correctly. If you need to map the facets manually, click the NEXT button (step 3 above). The relevant facets are listed in the facets.json
below.
For manually created monitoring projects, the Squirro Activity Log data loader plugin uses a custom index with name squirro_v9_${project_id}
. The index is required to set up the popular queries suggestions.