Collecting logs from website

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