Logs are important, you can push your logs to Logz.io as described here: https://community.platform.sh/t/how-to-forward-platform-sh-logs-to-logz-io/197
But what if you just want to visualize the Access Logs to have an overview of the visits? And what if you could do that from within your terminal and/or in your browser?
Introducing GoAccess.io! This tool is really handy and perfect to do that with no hassle.
Install the GoAccess locally. https://goaccess.io/download
It is available most of the Linux distribution, *BSD, even Slackware! Via Brew, or via Sources.
Thanks to the
platform log access --tail | goaccess --log-format=COMBINED -
You will visualize in your terminal, or you can visualize it in your browser
platform log access --tail | goaccess --log-format=COMBINED -o report.html --real-time-html -
And then just open the
Bonus that’s realtime if you pass the option
If you want to have the full log, you can also download the full
platform ssh --all # to see the SSH_URL scp SSH_URL:/var/log/access.log . goaccess access.log --log-format=COMBINED -o report.html
Enjoy fancy Access Log visualization!