How to use log analysis?


#1

I have a Drupal 8 site in production on a server and Matomo is installed on a second server.

Can I analyze the log of my site in production from another server ?

How to create an automatic log import ?


(Fabian Dellwing) #2

Yes you can. But you need some advanced mechanism to transfer the log files from one server to another server. The easiest solution would be an NFS share, the “best” solution imho is a password less rsync.

The rundown is:

  1. Transfer the file from the production server to the Matomo server (somewhat complex)
  2. Import the logfile (as usual)

#3

OK, thanks. Will Matomo be able to recognize the new log logs already imported ?


(Fabian Dellwing) #4

You mean if it will skip lines that it already imported earlier?


#5

Yes that’s what I mean


#6

yes, can Matomo detect the import of the same period? And is it possible to import automatic logs (without having to enter a command)?