Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 4243

Log analystic - apache pipe problem (3 replies)

$
0
0
Hi all

i tried to setup log analystics on my server.

my httpd.conf look like this :
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%v %h %l %u %t \"%r\" %>s %b" common
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" piwik

CustomLog "logs/access_log" combined
# Log to piwik as well
CustomLog "|/home/shomga/public_html/misc/log-analytics/import_logs.py --url=http://shomga.tk --add-sites-new-host --output=/home/shomga/public_html/piwik.log --enable-http-errors --enable-http-redirects --enable-static --enable-bots --force-lowercase-path --enable-http-redirects --enable-reverse-dns --config=/home/shomga/public_html/config/config.ini.php -" piwik

but nothing was imported to site.
i checked the output log and here is the error :

Traceback (most recent call last):
  File "/home/shomga/public_html/misc/log-analytics/import_logs.py", line 1758, in <module>
    config = Configuration()
  File "/home/shomga/public_html/misc/log-analytics/import_logs.py", line 571, in __init__
    self._parse_args(self._create_parser())
  File "/home/shomga/public_html/misc/log-analytics/import_logs.py", line 561, in _parse_args
    self.options.piwik_token_auth = self._get_token_auth()
  File "/home/shomga/public_html/misc/log-analytics/import_logs.py", line 652, in _get_token_auth
    credentials = open(filename, 'r').readline()
IOError: [Errno 2] No such file or directory: 'Content-type: text/html\r\n\r\n/home/shomga/public_html/tmp/cache/token.php'
this error repeated several times.
but the file exist in that directory. what is wrong with my setup.

regards

Viewing all articles
Browse latest Browse all 4243

Trending Articles