Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5706

Trying to use log method failing

$
0
0

@matmike wrote:

I’ve been searching for two days and cannot solve this.

# ./import_logs.py --url=https://log.domain.com /var/log/httpd/ssl_access_log
Traceback (most recent call last):
  File "./import_logs.py", line 2621, in <module>
    config = Configuration()
  File "./import_logs.py", line 993, in __init__
    self._parse_args(self._create_parser())
  File "./import_logs.py", line 964, in _parse_args
    if not self.options.matomo_url:
AttributeError: Values instance has no attribute 'matomo_url'

The url is configured but I’ve not found much information on anything else that needs to be configured, especially the second one, API.

        '--url', dest='https://log.domain.com/',
        '--api-url', dest='matomo_api_url',

I have two domains set in Motomo from the gui and now am trying to import the logs from the command line which I’ll set up as a cron job. I am not able to use the java method so need this but cannot get it to work.

Any help would be very welcome and I’m happy to share what ever else you need if I have not already.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5706

Trending Articles