Import Nginx Access Logs to matomo

Hello,

I am currently trying. Getting Matomo to work. I would like to collect the visitor statistics via Nginx Accessfile from my WordPress blog. I promise myself more accurate visitor statistics.

I habe folgendes in den HTTP block in der Nginx konfiguration (Nginx.conf) geschrieben.

           '"ip": "$remote_addr",'
           '"host": "$host",'
           '"path": "$request_uri",'
           '"status": "$status",'
           '"referrer": "$http_referer",'
           '"user_agent": "$http_user_agent",'
           '"length": $bytes_sent,'
           '"generation_time_milli": $request_time,'
           '"date": "$time_iso8601"}';```

Und folgendes in den Crontab

logtail /var/log/nginx/domain.tld-access.log | python /var/www/matomo/misc/log-analytics/import_logs.py --url=https://matomo.domain.tld --idsite=1 --log-format-name=nginx_json --enable-http-redirects --enable-static --enable-http-errors --recorders=4 --token-auth=<auth-key> -


Es wird aber kaum etwas aufgezeichnet. Mit Goaccess habe ich wesentlich mehr Zugriffe die aufgezeichnet werden. Es geht um die gleiche Webseite. 

Könnte auch das Wordpress Plugin nutzen aber die Zugriffszahlen sind so gering, das kann nicht stimmen. 

Wie nutzt man am besten die Serverlogs?

Gruß

Lars