Skip to content
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

import_logs.py does not work in apache 2.4 in pipe mode #6805

Closed
karlsoon opened this issue Dec 4, 2014 · 3 comments
Closed

import_logs.py does not work in apache 2.4 in pipe mode #6805

karlsoon opened this issue Dec 4, 2014 · 3 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. duplicate For issues that already existed in our issue tracker and were reported previously.

Comments

@karlsoon
Copy link

karlsoon commented Dec 4, 2014

Hi!
Script does not record lines.
This is example of output:
212 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
No any errors in log with -d.
How i can help you to find the problem?
I tried 2.9.1 and master version.

@mattab
Copy link
Member

mattab commented Dec 7, 2014

Hi @karlsoon can you please paste full output of script?

@karlsoon
Copy link
Author

karlsoon commented Dec 8, 2014

This is my log format:
LogFormat "%v %a %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" PiwikLogFormat

This is my configuration to log directly:
CustomLog "||/etc/apache2/scripts/import_logs.py --debug --url=http://piwik.local --idsite=1 --token-auth=_HIDDEN_ --enable-static --enable-bots --enable-http-errors --enable-http-redirects --output=/var/log/piwik/logs.log --log-format-name=common_complete --show-progress -" PiwikLogFormat

This is the /var/log/piwik/logs.log
2014-12-08 00:16:04,993: [DEBUG] Accepted hostnames: all
2014-12-08 00:16:04,993: [DEBUG] Piwik URL is: http://piwik.local
2014-12-08 00:16:04,993: [DEBUG] Authentication token token_auth is: _HIDDEN_
2014-12-08 00:16:04,993: [DEBUG] Resolver: static
0 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
2014-12-08 00:16:07,925: [DEBUG] Launched recorder
Parsing log (stdin)...
0 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
50 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
50 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
50 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)

@mattab mattab added the Bug For errors / faults / flaws / inconsistencies etc. label Jan 6, 2015
@mattab mattab added this to the Short term milestone Jan 6, 2015
@mattab
Copy link
Member

mattab commented Mar 12, 2015

Issue was moved to the new repository for Piwik Log Analytics: https://github.com/piwik/piwik-log-analytics/issues

refs #7163

@mattab mattab closed this as completed Mar 12, 2015
@mattab mattab added the duplicate For issues that already existed in our issue tracker and were reported previously. label Mar 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. duplicate For issues that already existed in our issue tracker and were reported previously.
Projects
None yet
Development

No branches or pull requests

2 participants