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

Can't import access logs from stdin #6200

Closed
multiformeingegno opened this issue Sep 12, 2014 · 1 comment
Closed

Can't import access logs from stdin #6200

multiformeingegno opened this issue Sep 12, 2014 · 1 comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.

Comments

@multiformeingegno
Copy link

What am I doing wrong? :(

grep -Ev "(wp-login.php|wp-cron.php|wp-admin|xmlrpc.php|?custom-css|/feed/)" /
var/www/blablabla/access.log > - | python /var/www/default/piw
ik/misc/log-analytics/import_logs.py --url=http://blablabla/piwik/ - --idsite=8 --enable-bots --enab
le-static --recorder-max-payload-size=300

I get:

Parsing log (stdin)...

Logs import summary
-------------------

    0 requests imported successfully
    0 requests were downloads
    0 requests ignored:
        0 invalid log lines
        0 requests done by bots, search engines, ...
        0 HTTP errors
        0 HTTP redirects
        0 requests to static resources (css, js, ...)
        0 requests did not match any known site
        0 requests did not match any requested hostname

When I just do the grep like this, it works:

grep -Ev "(wp-login.php|wp-cron.php|wp-admin|xmlrpc.php|?custom-css|/feed/)" /
var/www/blablabla/access.log
@multiformeingegno
Copy link
Author

Stupid me, this works:

grep -Ev "(wp-login.php|wp-cron.php|wp-admin|xmlrpc.php|?custom-css|/feed/)" /
var/www/blablabla/access.log | python /var/www/default/piw
ik/misc/log-analytics/import_logs.py --url=http://blablabla/piwik/ - --idsite=8 --enable-bots --enab
le-static --recorder-max-payload-size=300

@mattab mattab added the worksforme The issue cannot be reproduced and things work as intended. label Sep 12, 2014
@mattab mattab added the Bug For errors / faults / flaws / inconsistencies etc. label Sep 20, 2014
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. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

2 participants