HTTPS Log Analytics tool

Hi,

I have a Matomo On-Premise and I am using the Log Analytics tool to collect access to the WEB pages.

But, I need matomo to separate HTTP traffic from HTTPS traffic. Right now I can’t tell if it’s getting any HTTPS traffic.

I’ve done this, and it’s all right:

I use the following command to import the data from the logs:

python2 import_logs.py --url=https://matomo-address --idsite 2 file /var/log/apache2/access.log --token-auth=generated-key --recorders=4 --enable-http- errors --enable-http-redirects --enable-static --enable-bots

Hi,

I think the easiest way would be to separate the log file into two and log HTTP traffic separately from HTTPS traffic and then import them into e.g. two different sites in Matomo.

Completly off-topic, but why does your website have both HTTP traffic and HTTPS traffic? I would expect for nearly every website the former just being 301 redirects to the latter (and even those being really rare with HSTS).
Doesn’t serving the website both ways just mean that an attacker only needs to block the HTTPS site and the user will use the HTTP one which the attacker can then intercept making all security useless?

1 Like