Logs and history
Read an application's logs, and roll back a deployment.
On this page
The Logs tab of an application streams its container output as it is written. It opens on the latest line and follows new ones; scroll up to stop following, and Jump to latest to go back.
For a compose stack, each container also has its own log view, reached from Stack containers in the Overview tab.
Logs are shown with the colours programs give them, including the backgrounds that ASCII art and banners are drawn with. Two switches at the top of every log view turn them off when they are hard to read on your theme:
- Colors: the colour of the text.
- Backgrounds: the colour behind it.
The choice applies to every log view and is remembered by your browser.
Quasar keeps a copy of every application’s output. To search it, click Search history in the Logs tab, or open Logs in the navigation.
- Filter by application, or search all of them.
- Narrow to the last hour, 24 h or 7 days.
- Errors only keeps the lines that report a failure:
error,exception,fatal,panic,traceback,failed… - Results come 100 lines at a time, newest first, with what the search found highlighted. The number of matching lines is shown above them. Use the pager under the list, or type a page number into the current page’s box.
The search box finds words, using an index, so it stays fast with millions of lines. Click ? in the box for a reminder.
| You type | Quasar finds lines with |
|---|---|
refused timeout |
both words |
refus |
a word starting with it: refused, refusing |
"connection refused" |
these words, in this order |
refused OR timeout |
either word |
-healthcheck |
not this word |
Case and accents don’t matter. Punctuation splits words: user_id=42 finds user_id=42 and user id 42.
To find a piece of a word, or text exactly as typed (efuse inside refused, 50%), tick Exact text. That search reads every line, so it is slower on a large history.
Hover a line and click Context to see what its application wrote just before and just after it, with the line highlighted. Earlier and Later load more; Open in the application’s logs goes to its Logs tab.
Each application has its own colour on this page, so lines from different applications are easy to tell apart. Change it in the application’s Settings tab → Log colour; it only affects the Logs page.
The copy keeps the last 7 days by default, and at most 50,000 lines per application. Change how many days in Settings → Logs & audit, where Delete all logs also empties it at once. A shorter window takes effect as soon as it is saved.
The History tab lists every deployment: date, source (manual, webhook, API…), image, duration and result. Hover a failed deployment to see why it failed.
Click Rollback on a successful deployment to go back to it:
- for a single container, Quasar runs the image that deployment built or pulled;
- for a compose stack, Quasar runs the compose file that deployment used. The environment is left as it is.
For Git builds, the last 4 built images are kept for rollbacks.