<<

NAME

matomo_to_scan_logs.pl - Converts Matomo API exports to NGINX style logs

DESCRIPTION

Matomo has an API to export individual visits with a list of the actions/events.

e.g. https://analytics.openfoodfacts.org/?module=API&method=Live.getLastVisitsDetails&idSite=2&period=month&date=2022-12-01&format=JSON&token_auth=[token]

This script filters scan events to convert them to NGINX style logs that can be used as input to scanbot.pl

Usage:

./matomo_to_scan_logs.pl [list of JSON files]

<<