How to collect logs from a website

Can we collect the logs from any remote source or any web server ?
If yes how?