Matomo Deployment

Is it possible to deploy Matomo in separate server from your dedicated web server? Secondly, how does one use the log analytics script for importing server web logs in the instance the Matomo installation is in a different server.