-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log parser not streaming from stderin #282
Comments
checking the error.log file I can see this.
But checking /var/log/apache2/matomo.log i just get the same old output above. |
Hi, I don't know Apache at all, so I can't help here. But just for your information: This section of the README was written 8 years ago, so it is not impossible that it won't work that way any more. If you find out more it would be great if you could create a PR that fixes it or if it turns out to not work at all, removes it. |
Running the above in the apache vhost using a php script manages to grab the stdin.
But adding some debug logging into the .py script shows nothing is being passed to python. My python skills aren't that strong so may need someone else to help with this as its a big requirement. |
Using the latest version supplied in this repository (which is different from the matomo application you download from the website) doesn't work at all
But does support my theory that the buffer is empty which is passed to python. |
similar issue here: the |
It's python3 migration issue: offset isn't applicable in "text-mode" i/o. Can be fixed with small patch:
|
@AdUser would you mind creating a small PR for that, so someone from the team can review and merge that? Thanks. |
It would seem running the below code from the documentation doesn't seem to pass anything into stderin.
This is placed in the Vhost
output is from the log file
But if I run this command via a cron from a file it works as expected and I see the log output is sending this information to my matomo instance.
/var/www/html/import_logs.py --debug --enable-http-errors --enable-http-redirects --enable-bots --url=http://XXXXX --output=/var/log/apache2/matomo.log --recorders=1 --recorder-max-payload-size=1 --token-auth=XXXXXXXXXX --idsite=3 --log-format-name=common_complete /var/log/apache2/site.log
The text was updated successfully, but these errors were encountered: