Skip to content

Commit

Permalink
Merge pull request #1 from ideadapt/config
Browse files Browse the repository at this point in the history
Explain more explicitly the log file name config key.
  • Loading branch information
ganti authored Nov 29, 2021
2 parents d762f96 + b06a7f6 commit 6b148be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ MatomoPythonLogImporter checks if there is new data in the logfile, and only sub
2. Edit the paths in [`config.sh`](https://github.com/ganti/MatomoPythonLogImporter/blob/main/config.sh)

3. Edit [`config_matomo.config`](https://github.com/ganti/MatomoPythonLogImporter/blob/main/config_matomo.config)
The format should be `{website.log}={MatomoSiteID}` . It is possibile to connect multiple log files to one Matomo [Site ID](https://matomo.org/faq/general/faq_19212/)
The format should be `{logfilename}={MatomoSiteID}` . It is possibile to connect multiple log files to one Matomo [Site ID](https://matomo.org/faq/general/faq_19212/)

4. Set up a cronjob:
The following example runs the importer every 5 minutes
Expand Down
8 changes: 5 additions & 3 deletions config_matomo.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#Format: {website-foo.log}={matomo-siteid}
#website-foo.log=1
#website-bar.log=2
# Format: {logfilename}={MatomoSiteID}
# logfilename is the name of the access log file
# located in the ACCESSLOG_PATH directory
#domainx.log=1
#example.com=2

0 comments on commit 6b148be

Please sign in to comment.