Sometimes its useful to view the log output of a particular container. You can quickly view logs for any container within Kalm through the log button:
In this guide you will:
- Create an application component that continously logs output
- View the container logs within Kalm
Example Container Setup
Let's create a container that logs output every second. Create a new application, then add a single Component named logviewer with the image set to busybox.
In the Command input box, enter the following command, which outputs a timestamp every second:
Click Deploy Component to instantiate the component container.
After your component is successfully deployed, click the Log Icon:
You should see the Log View:
While it's helpful to view logs for a single container individually as shown above, often you may want to view aggregated logs for multiple containers for specific time periods. For more on setting up a more robust logging system through Kalm, head to our Logging System section.