After i import logs data is not shown

Hello,

Brand new user of Matomo here :slight_smile:

I wanted to explore posibility of use of Matomo for our company needs so before we btry and buy some of needed features that Matamoto offers i installed brand new installation and then did some testing with basic stuff.

It is dedicated VPS server, CentOS 7 and rest of the data is:

System Summary

Matomo version: 5.2.2
MySQL version: 8.4.4
PHP version: 8.3.8

I also set up Log Analytics and python3 because that is very interested to us to be able to analyse raw log files from Apache/Nginx and IIS.

I have tested first website with wordpress plugin tracking and it is working perfectly. Next i tested LogAnalyse with IIS and Apache logs. Yes they are seperate websites in Matomo.

The problem is that i analyse data with folowing command:

python /opt/matomo-import-logs/import_logs.py --url=ht.tps://serverhostname/ --idsite=4 --token-auth=tokencreated --recorders=4 --enable-http-errors --enable-http-redirects --enable-static --enable-bots /opt/matomo-import-logs/logfiles/fc/*

I get finishing report of import:

Logs import summary

5188232 requests imported successfully
44403 requests were downloads
0 requests ignored:
    0 HTTP errors
    0 HTTP redirects
    0 invalid log lines
    0 filtered log lines
    0 requests did not match any known site
    0 requests did not match any --hostname
    0 requests done by bots, search engines...
    0 requests to static resources (css, js, images, ico, ttf...)
    0 requests to file downloads did not match any --download-extensions

Website import summary

5188232 requests imported to 1 sites
    1 sites already existed
    0 sites were created:

0 distinct hostnames did not match any existing site:

Performance summary

Total time: 2030 seconds
Requests imported per second: 2554.94 requests per second

Processing your log data

In order for your logs to be processed by Matomo, you may need to run the following command:
 ./console core:archive --force-all-websites --url='ht.tps://serverhostname/'

And wheh i start processing:

su apache -s /bin/bash -c “/usr/bin/php /var/www/html/matomo/console core:archive --force-all-websites --url=ht.tps://serverhostname/”

I get end response:

INFO [2025-03-09 10:36:59] 23728 ---------------------------
INFO [2025-03-09 10:36:59] 23728 INIT
INFO [2025-03-09 10:36:59] 23728 Running Matomo 5.2.2 as Super User
INFO [2025-03-09 10:36:59] 23728 ---------------------------
INFO [2025-03-09 10:36:59] 23728 NOTES
INFO [2025-03-09 10:36:59] 23728 - If you execute this script at least once per hour (or more often) in a crontab, you may disable ‘Browser trigger archiving’ in Matomo UI > Settings > General Settings.
INFO [2025-03-09 10:36:59] 23728 See the doc at: https://matomo.org/docs/setup-auto-archiving/
INFO [2025-03-09 10:36:59] 23728 - Async process archiving supported, using CliMulti.
INFO [2025-03-09 10:36:59] 23728 - Reports for today will be processed at most every 900 seconds. You can change this value in Matomo UI > Settings > General Settings.
INFO [2025-03-09 10:36:59] 23728 - Archiving was last executed without error 1 hours 13 min ago.
INFO [2025-03-09 10:36:59] 23728 - Will process all 4 websites
INFO [2025-03-09 10:36:59] 23728 ---------------------------
INFO [2025-03-09 10:36:59] 23728 START
INFO [2025-03-09 10:36:59] 23728 Starting Matomo reports archiving…
INFO [2025-03-09 10:36:59] 23728 1 out of 3 archivers running currently
INFO [2025-03-09 10:36:59] 23728 Start processing archives for site 1.
INFO [2025-03-09 10:36:59] 23728 Will invalidate archived reports for today in site ID = 1’s timezone (2025-03-09 00:00:00).
INFO [2025-03-09 10:36:59] 23728 Will invalidate archived reports for yesterday in site ID = 1’s timezone (2025-03-08 00:00:00).
INFO [2025-03-09 10:37:01] 23728 Archived website id 1, period = day, date = 2025-03-09, segment = ‘’, 2 visits found. Time elapsed: 2.506s
INFO [2025-03-09 10:37:03] 23728 Archived website id 1, period = week, date = 2025-03-03, segment = ‘’, 3 visits found. Time elapsed: 1.461s
INFO [2025-03-09 10:37:04] 23728 Archived website id 1, period = month, date = 2025-03-01, segment = ‘’, 3 visits found. Time elapsed: 1.113s
INFO [2025-03-09 10:37:05] 23728 Archived website id 1, period = year, date = 2025-01-01, segment = ‘’, 3 visits found. Time elapsed: 0.976s
INFO [2025-03-09 10:37:05] 23728 Finished archiving for site 1, 4 API requests, Time elapsed: 6.513s [1 / 4 done]
INFO [2025-03-09 10:37:05] 23728 Start processing archives for site 2.
INFO [2025-03-09 10:37:05] 23728 Finished archiving for site 2, 0 API requests, Time elapsed: 0.017s [2 / 4 done]
INFO [2025-03-09 10:37:05] 23728 Start processing archives for site 3.
INFO [2025-03-09 10:37:05] 23728 Finished archiving for site 3, 0 API requests, Time elapsed: 0.006s [3 / 4 done]
INFO [2025-03-09 10:37:05] 23728 Start processing archives for site 4.
INFO [2025-03-09 10:37:05] 23728 Finished archiving for site 4, 0 API requests, Time elapsed: 0.006s [4 / 4 done]
INFO [2025-03-09 10:37:05] 23728 Done archiving!
INFO [2025-03-09 10:37:05] 23728 ---------------------------
INFO [2025-03-09 10:37:05] 23728 SUMMARY
INFO [2025-03-09 10:37:05] 23728 Processed 4 archives.
INFO [2025-03-09 10:37:05] 23728 Total API requests: 4
INFO [2025-03-09 10:37:05] 23728 done: 4 req, 6610 ms, no error
INFO [2025-03-09 10:37:05] 23728 Time elapsed: 6.610s
INFO [2025-03-09 10:37:05] 23728 ---------------------------
INFO [2025-03-09 10:37:05] 23728 SCHEDULED TASKS
INFO [2025-03-09 10:37:06] 23728 Starting Scheduled tasks…
INFO [2025-03-09 10:37:06] 23728 Scheduler: executing task Piwik\Plugins\CustomJsTracker\Tasks.updateTracker…
INFO [2025-03-09 10:37:06] 23728 Scheduler: finished. Time elapsed: 0.027s
INFO [2025-03-09 10:37:06] 23728 Scheduler: executing task Piwik\Plugins\PrivacyManager\Tasks.deleteLogData…
INFO [2025-03-09 10:37:06] 23728 Scheduler: finished. Time elapsed: 0.000s
INFO [2025-03-09 10:37:06] 23728 Scheduler: executing task Piwik\Plugins\PrivacyManager\Tasks.anonymizePastData…
INFO [2025-03-09 10:37:06] 23728 Scheduler: finished. Time elapsed: 0.001s
INFO [2025-03-09 10:37:06] 23728 done
INFO [2025-03-09 10:37:06] 23728 ---------------------------

(dot in ht.tps is there deliberately because forum dont alow posting links)

But if i go to dashboard to that site, nothing is shown. Both sites (IIS log and apache log) same situation, no errors but also no data/reports. In apache logs there are no errors. In Matomo also no errors. Going in circles here :slight_smile:

So for sure i did something wrong or i missed some steps, so if anyone can help me i would appreciate it :slight_smile:

Thank you all in advance!

Figured it out. Great support and forum acctivity :smiley:

Hi, I have a similar issue where I have ingested Matomo data into databricks but for some reason am not seeing campaign data on databricks though i can see it on matomo web. My summary of imports show that all logs have been imported from matomo, so i am not sure why campaign is missing. What did you do to resolve your issue?