It look to be the same goal than Unable to import logs with import_logs.py script but not the same issue :
I’ve followed the rsyslog part of this :
and after some folder manual creation and the change of /var/cache/nginx/access.socket
by /dev/log
in nginx.conf
and 10-matomo.conf
if i uncomment the debug line local0.* /var/tmp/nginx.tmp;matomo
, log apear in /var/tmp/nginx.tmp
If i try to import them with matomo.sh
it show me the script run, but import nothing.
If i try to run import_logs.py
itself, it work.
So i suspect there is something not working in /usr/local/matomo/matomo.sh
cat /var/tmp/nginx.tmp | ./misc/log-analytics/import_logs.py --url=***** --token-auth=****** --enable-http-errors --enable-http-redirects --enable-static --enable-bots --recorders=4 --log-format-name=nginx_json -
found nothing to import but :
./misc/log-analytics/import_logs.py --url=***** --token-auth=****** --enable-http-errors --enable-http-redirects --enable-static --enable-bots --recorders=4 --log-format-name=nginx_json /var/tmp/nginx.tmp
work
Is there some documentation to fix in README.md about rsyslog /usr/local/matomo/matomo.sh
syntax :
echo "${@}" | /***MY_MATOMO_FOLDER***/misc/log-analytics/import_logs.py
or is it something to fix in misc/log-analytics/import_logs.py
?
or anything else i’ve not spotted ?
PS : i’ve posted this on github 10 days ago but this forum is perhapse a better place for this ?
2 posts - 1 participant