# Debugging with Live Logs

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:

* An existing [Fleet](https://docs.chassy.io/user-guides/fleet-user-guide)
* A [connected machine](https://docs.chassy.io/user-guides/fleet-user-guide/enrolling-machines) with an application deployed

{% hint style="info" %}
To learn how to deploy an application, follow our [deploy-an-artifact](https://docs.chassy.io/tutorials/deploy-an-artifact "mention")tutorial.
{% endhint %}

## 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.

<figure><img src="https://2391222196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbwi13HaBqeFSGqsnJ8aD%2Fuploads%2FaqJd6zEEXiRpqaxVVWxC%2FFleet.jpeg?alt=media&#x26;token=78aa6c1b-154b-4f85-adbe-6b65d327dfc6" alt="The Fleet panel of Chassy Console shows the fleets and machines enrolled into your Chassy workspace."><figcaption></figcaption></figure>

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

<figure><img src="https://2391222196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbwi13HaBqeFSGqsnJ8aD%2Fuploads%2FLGhNSRzJJJhoncVqc63k%2FMachines.jpeg?alt=media&#x26;token=bd594ef7-9afc-480a-a319-b987cb34fd08" alt="The Machines tab on the Fleet panel has search, sort, and filter options to help you find the device."><figcaption></figcaption></figure>

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.*

<figure><img src="https://2391222196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbwi13HaBqeFSGqsnJ8aD%2Fuploads%2FeKBgzB8xFqbS3yUVdosg%2FFleet%20machine.jpeg?alt=media&#x26;token=98901922-817a-46f1-afba-e7c3c2f6a18e" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Can't find the *Live Logs* option? Check that the machine is currently online, and that there is an active deployment
{% endhint %}

## Searching through *Live Logs*

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

<figure><img src="https://2391222196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbwi13HaBqeFSGqsnJ8aD%2Fuploads%2Ffc4bisJMyVq4myVM63ha%2Flivelogs.jpeg?alt=media&#x26;token=61aeadb7-602b-48a9-bcf7-1777a6d35c1f" alt="The Live Logs shows in realtime what is printed out from your device&#x27;s application."><figcaption></figcaption></figure>

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.
