Logs

Learn how to view logs of an application in Andasy

The logs command allows you to watch or tail logs for an entire application or a specific machine within your Andasy deployment. This is useful for monitoring application health, debugging issues, and tracking events in real time. You can filter logs by time, level, and target, and choose between streaming or fetching the latest logs.

Usage

andasy logs [flags]

Aliases

  • logs
  • log

Flags

FlagDescription
-a, --app stringSpecify the target Andasy app.
-f, --from stringGet logs not older than this time. Formats: y, w, d, h, m, s (default: 1h).
-h, --helpShow help for the logs command.
-l, --level stringFilter logs by level: error, warn, info, debug (default: all).
-m, --machine stringSpecify the target machine app.
-t, --tailReturn only the current logs in the system (does not stream new logs).

Examples

Tail logs for an app

andasy logs --app my-app --tail

Watch error logs from the last 24 hours

andasy logs --level error --from 24h