...
Enable activity tracking in the Server Configuration (frontend.userapp.log-activity
).
...
The activity logs are then by default stored under /var/log/squirro/frontend/$hostname/activity.$year-$month-$day.jsonl
.
The path can be changed in the common.ini
file by adjusting the path
config in the activity
section:
Code Block |
---|
[activity]
path = /var/log/squirro/frontend/ |
Activity Tracking Project
...
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.
Expand | |||||
---|---|---|---|---|---|
| |||||
|
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.
Activity Dataloader Plugin
The data loader plugin reads by default the path with activity files from the common.ini
config.
If you would like to provide a custom path where your activity files are stored, you can specify the Activity path
option in the advanced options.
...
Running data loader on multi-node instances and storing files in the EFS
The Squirro Activity Log data loader plugin works both on multi-node instances and with activity files placed in the EFS. It takes care of loading proper data by resolving the hostname folder where the activity files are stored.
The plugin gathers the activity files from the root level of the activity path and then check for files inside the folder with corresponding hostname. If it finds a folder with the same hostname as the hostname that it is running on, it also searches for files inside this folder.
So assuming the data loader runs on the instance with the hostname: hostname-1
, it will gather the following files:
/var/log/squirro/frontend/activity.2022-01-01.jsonl
/var/log/squirro/frontend/hostname-1/activity.2022-01-02.jsonl
But won't gather the file below:
/var/log/squirro/frontend/hostname-2/activity.2022-01-03.jsonl