How to use log analysis?

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 ?

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)

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

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

Yes that’s what I mean

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