Real Time Logs
The Mojo Stratus real time logs section let you tail logs directly in your browser.
To view the logs:
- Open the Stratus management panel for your environment
Select the log you want to view from the list. Some logs may not be available if their related service is off.
Using the real time logs
Once you have selected a log to view, you will see two areas. At the top is a box showing the log and the option to download the most recent log.
You can filter by simple terms or enter custom regex. Click the Filter button after changing the terms field to apply. And remember if you solve a problem with regex you might end up with two problems!
Output will stream in as traffic hits your site. Use the filters to your advantage to narrow requests for debugging.
Several Varnish utilities are available alongside the raw logs. All Stratus services within your environment are containerized and certain tools for debugging Varnish do work through SSH access. We have added the important ones for you. The commands only work if the Varnish service is enabled.
- Varnish Logs – shows output from the varnishlog command.
- Varnish Histogram – displays the histogram of hits and misses from the varnishhist command
- Varnish Cache Statistics – shows output from the varnishstat command
- Varnish Top – shows output from the varnishtop command
Magento 2 added built-in Varnish support for its Full Page Cache. But our support has seen a lot of issues with improper caching or the Full Page Cache not working at all due to 3rd party modules and themes. The live streaming utilities are perfect for confirming whether a page or asset is being cached in the Varnish service.