Debugging with Live Logs

By the end of this tutorial you'll know how to access your machine's Live Logs on Chassy, helping you debug efficiently.

Troubleshooting is key for deployed applications. This tutorial shows how to use Chassy's Live Logs to diagnose and resolve issues by accessing, navigating, and interpreting the interface to find root causes.

Prerequisites

Before we start this tutorial, you will need:

To learn how to deploy an application, follow our Deploy an Artifacttutorial.

Accessing the machine

Now that everything is set up, we can find the specific machine that is running the application.

  1. Go to the Fleet section of Chassy Console.

  2. Find the Fleet that the machine belongs to.

  3. Select the machine by clicking on its green box.

The Fleet panel of Chassy Console shows the fleets and machines enrolled into your Chassy workspace.

You can also click on the Machines tab and search, sort, and filter through all enrolled machines.

The Machines tab on the Fleet panel has search, sort, and filter options to help you find the device.

Once you find the machine, click on it to open up the side panel with details. If it is currently online, you'll find the option to open Live Logs.

Searching through Live Logs

The Live Logs page shows everything that is being printed from the deployed application, split between the channels stdout and stderr.

The Live Logs shows in realtime what is printed out from your device's application.

You can use the search bar to quickly parse through the lines, as well as toggle word-wrap for better readability.

If you have multiple applications running on the machine, use the dropdown to select the application whose logs you want to view.

Troubleshooting

Why can't I find the Live Logs button?

Live Logs will only appear if the machine is online, has an operating system running the Chassy agent, and currently has an active application deployed.

The Chassy agent is only available on Linux, Windows, and NixOS.

How do I know which machine I deployed to?

To find the machine, go to the Machine tab on your Fleet panel. You'll be able to see all active deployments on each machine, and can also filter the list by the application deployed.

Why does it say I'm disconnected?

There is a 10 minute limit imposed to avoid streaming data indefinitely. Simply click on the Connect button on the top right, and you'll be able to read all logs.

Conclusion

In this tutorial, we've walked through the process of accessing and utilizing Chassy's Live Logs feature. You now know how to view stdout and stderr, filter information, and troubleshoot issues to diagnose and resolve problems in your deployed applications. This tool offers valuable real-time insight, helping you maintain healthy and reliable deployments.

Last updated