An application that controls the log import process in Matomo
7.3K
This application is part of a new SciELO Usage Countage Solution.
You have to set up all the environmental variables (in the .env file), such as:
COLLECTION=collection_acronym
DIRS_USAGE_LOGS=/app/usage-logs/
LOG_FILE_DATABASE_STRING=mysql://user:pass@localhost:3306/database
LOGGING_LEVEL=DEBUG
Update control_log_file table
Execute the file update_available_logs using a docker run proccess.
docker run --rm --env-file .env -v {HOST_DIR_LOGS}:/app/usage-logs -v {HOST_DIR_DATA}:/app/data scielo-matomo-manager update_available_logs
Load available logs
Execute the file load_logs using a docker run proccess.
docker run --rm --env-file .env -v {HOST_DIR_LOGS}:/app/usage-logs -v {HOST_DIR_DATA}:/app/data scielo-matomo-manager load_logs
There are three tables in a schema database called control. These tables are responsible for controlling the data flow during the importing of logs, as follows: (a) control_log_file, (b) control_log_file_summary, and (c) control_date_status.
Content type
Image
Digest
sha256:d88d03568…
Size
41.4 MB
Last updated
6 months ago
docker pull scieloorg/scielo-matomo-manager