Skip to main content

Piwik PRO Server Log Analytics

Import your web server logs to Piwik PRO.

Requirements

  • Python 3.6+.
  • Piwik PRO >= 16+, all the versions, including Cloud, Core and On-Premises are supported

Getting started

  1. Download this git repository git clone git@github.com:PiwikPRO/log-analytics.git. The script uses only python standard library, so no external packages are required. Alternatively you can download our PyPi package - pip install piwik-pro-log-analytics.
  2. Generate Client ID and Client Secret for communication with Piwik PRO API - docs on how to do this can be found on developers.piwik.pro
  3. You are now ready to import your web server's access logs into Piwik PRO:
  • piwik_pro_log_analytics/import_logs.py --client-id <client-id> --client-secret <client-secret> --url=<my-organization>.piwik.pro /path/to/access.log
  • If you installed log analytics via pip, instead of piwik_pro_log_analytics/import_logs.py use piwik_pro_log_analytics
  • If the code fails, saying, that your log format doesn't contain hostname - you must decide what App you'd like to track to. You can find App ID in Piwik PRO UI> Administration> Sites & apps>. After that, use --idsite <app-id> flag to tell the importer which App you'd like to track to. How to find App ID

More usage instructions

More usage instructions can be found on developers.piwik.pro

License

Log-analytics is released under the GPLv3 or later. Please refer to LEGALNOTICE for copyright and trademark statements and LICENSE.txt for the full text of the GPLv3.

Release files for piwik-pro-log-analytics 5.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for piwik-pro-log-analytics 5.2.1
File Size Uploaded
piwik_pro_log_analytics-5.2.1.tar.gz 40.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for piwik-pro-log-analytics 5.2.1
File Interpreter ABI Platform
piwik_pro_log_analytics-5.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 81.9 kB

Release files / piwik_pro_log_analytics-5.2.1.tar.gz

Download URL piwik_pro_log_analytics-5.2.1.tar.gz
Size 40.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d9bfac1fa9f5a92c59ffb26d5b3d2290b1db03ca0b9e880d8152d13fb6e10573
BLAKE2b-256 checksum
How to use checksums
c369548321632406d32948b0daa6bdfe870e3ad96dbb6f35b21cded405bc36a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.10.12 Linux/6.2.0-1015-azure

Release files / piwik_pro_log_analytics-5.2.1-py3-none-any.whl

Download URL piwik_pro_log_analytics-5.2.1-py3-none-any.whl
Size 41.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed06ef8567f2b70b5c1634feaeafb5171b8d5707c484cf0509edbcbfb6d6c317
BLAKE2b-256 checksum
How to use checksums
775e4609a7bae7e6c1a1d5b37805460a9cf1b1e54bb5162f3638738974cad808
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.10.12 Linux/6.2.0-1015-azure

Release history Release notifications | RSS feed

This release

5.2.1 This release

2 release files

5.2.0

2 release files

5.1.0

2 release files

5.0.5

2 release files

5.0.4

2 release files

5.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page