Hallo,
ich versuche mich das erste mal mit der Log-File Analyse von Matomo, erhalte aber den Fehler:
Fatal error: the selected log format doesn’t include the hostname: you must specify the Matomo site ID with the --idsite argument
Bei meiner Anwendung handelt es sich um eine Multidomain-Seite. Die Logs aller Domains stehen in einer Log-Datei. Jeder Eintrag steht dort in folgender Form:
Danke für die Idee! Ich hab das gleiche gerade für IONOS nachgestellt und teile kurz den String: python3 import_logs.py --url=https://analytics.example.com --add-sites-new-hosts --log-format-regex='(?P<ip>\S+) \S+ \S+ \[(?P<date>.*?) (?P<timezone>.*?)\] \"\S+ (?P<path>.*?) \S+\" (?P<status>\S+) (?P<length>\S+) (?P<host>\S+) \S+ \"(?P<user_agent>.*?)\"' /logs/access.log