The Server Log
The Server log page shows the recent lines of the log of the server, newest first. Use it to learn why the server refused a change or why a list did not load. You need no shell on the machine. To open it, click “Server log” in the Monitor group of the sidebar.
Only an operator and an administrator see the page. A line can name an account, the address of a device and the path of a file. A viewer who opens the address gets the line “Only an operator or an administrator can read the server log.”, and the page reads nothing. A failed login names an account only where an account has that name, so an operator can learn from the lines which accounts exist.
The server keeps the lines in memory: the last 10,000 lines, or 4 MiB of them, since its last start. A restart of the server empties them. The page shows only these lines. The journal or the output of the container keeps the whole log on the machine.
From top to bottom, the page shows the time range, the level, the line about the log level, the lines and the pager. The poll bar is at the right end of the row of the level. On a narrow screen, such as a phone, it goes under the level.
Choose the time range
Section titled “Choose the time range”Above the level are four buttons: “Last 15 minutes”, “Last hour”, “Last 24 hours” and “Everything”. The page starts with “Everything”, which shows the newest lines that the server keeps. Click a button to show the lines of that time range. The button of the range that is open is shaded.
Choose the level
Section titled “Choose the level”“Level” is a list of the five levels of the log, from the most serious to the quietest: “Error”, “Warning”, “Info”, “Debug” and “Trace”. The page shows the lines of the level that you pick and of each more serious level. The text beside the list says which lines show, such as “Info and the more serious levels.”. The page starts with “Info”.
The server keeps only the lines that its log writes. The setting “Log level” of the This node page
sets them, unless the environment variable TADORU_LOG of the server sets them. If the log level
is “Info”, the list gives no more lines at “Debug” or “Trace”. The link “Log level on This node”
opens that setting.
The address of the page keeps the range and the level, for example /logs/?level=warn&range=1h.
A link or a bookmark to that address opens the same lines.
Read the lines
Section titled “Read the lines”The table has three columns:
- “Time”: the time of the line, in the time zone of your browser. For the last 15 minutes and the
last hour, it shows the time of day, such as
10:02:03. For the other ranges, it shows the month and the day too, such as11-12 10:02:03. Rest the pointer on the time to see the date and the time with milliseconds. The name of the column opens a short help. - “Level”: the level of the line. “Error” is red, and “Warning” is amber. Click the name of the column to see what each level means.
- “Line”: the line as the server wrote it, in the form of the setting “Log format”. It shows the time and the level again, as the log wrote them, which can be in UTC. A long line wraps in the cell.
A line of more than 600 characters, or of more than 5 lines, shows its start. To read all of it, click “Show the whole line” under it. “Show less” folds it again. A move to another page folds each line again.
On a phone, each line shows its time and its level on top, and the line under them. Tap the level of a line to see what it means.
The browser’s own find, such as Ctrl+F, searches the lines that show. A recent Chrome or Firefox searches the folded parts too, and a find in a folded part opens its line. In other browsers, such as an older Safari, unfold the line first. The page has no filter by text, and no filter by the part of the server that wrote a line.
Notes above the lines
Section titled “Notes above the lines”- “12 lines of the log never reached the recent lines since the server started. Standard output or the log file can still hold some of them.”: the server lost lines before they reached its memory, such as in a burst. The note is amber.
- “The log of the server stopped after a fault, so no new line comes until the server restarts.”: the part of the server that writes the log ended. The page still shows the lines that the server keeps. The note is red.
The notes show on each page, also on an older page, because each read of the new lines brings them up to date.
On the last page, a line under the lines says where the list ends. “No older lines. The oldest line that the server keeps is from 11-12 08:14:09.” says that the memory of the server ends the list. “No older lines in this time range.” says that the time range ends it.
The page shows one page of lines at a time, the newest 200 first. The pager under the lines moves through the pages:
- “Older” shows the next page, with older lines.
- “Newer” shows the page before, with newer lines. A page that you saw shows again at once.
- “Back to newest” goes back to the newest page, and reads it again.
On the newest page, “Newer” and “Back to newest” are gray, and you cannot click them. “Back to newest” is also gray while the newest page reads. On the last page, “Older” is gray. The pages have no numbers.
After each move, the focus goes to the lines of the new page. A screen reader then reads them.
To choose how many lines a page shows, pick 100, 200 or 500 in “Lines per page”. The page starts
with 200. A new count opens the newest page. The address of the page keeps the count, for example
/logs/?size=500. A new range or level also opens the newest page, and so does a reload.
The reads of the page
Section titled “The reads of the page”The page reads the server again every 15 seconds while the browser tab shows it. When the tab is hidden, the page stops reading. When you show the tab again, the page reads at once.
While you see the top of the newest page, each read shows the new lines on top. Further down, and on an older page, the lines do not move. A button above the lines then counts the new lines, such as “3 new lines. Show the newest”. Click it to go to the top of the newest page. The count stops at the size of a page. When more lines wait than that, the button says “More than 200 new lines. Show the newest”.
The poll bar counts down to the next read, for example “Next read in 12 s”. The ring around the arrows of the button at its left empties as the time goes. If a read takes more than a moment, the arrows turn, and the bar says “Reading”. Beside the countdown, the bar shows the time of the last read, for example “Read at 21:40:12”.
When the time of the last read changes, only the digits that changed roll up to their new digits. If your system asks for less motion, the new time shows at once.
- To stop the lines from changing while you read them, click “Pause”. The bar then says “Paused”, and the ring is empty. The pause ends after one of these: a click on “Resume”, another range, level or size, or a reload of the page.
- To start the reads again, click “Resume”. The page reads at once.
- To read at once, click the button with the arrows, “Read now”.
If a later read fails, the page keeps the last lines. The poll bar then says “The last read failed:” and names the problem. It counts down to the next try, for example “Next try in 12 s”.
When the server starts again
Section titled “When the server starts again”A restart of the server empties its lines. When the page finds a new start, it shows the newest page, with a line above the lines. The line says “The server started again, so the lines from before its start are gone.”
The line stays until you choose another range, level or size, or reload the page.
The page finds a new start in three cases:
- An older page that you open comes from the new run.
- A read of the new lines comes from the new run.
- A new read of the newest page, by a read at the top or by “Back to newest”, gives a newest line that is earlier in its run than the newest line that the page showed.
A new read of the newest page misses a new start in two cases. The new run has no line yet at the level that shows, such as at “Error”. Or the newest line of the new run at that level is already later in its run than the line that the page showed. Its lines then show as new lines.
When the page shows no line
Section titled “When the page shows no line”- “No lines of this level in this time range.”: no line matches. A quieter level, such as “Debug”, can show more lines, where the log writes them.
- “The server has no recent lines yet.”: the server keeps no line now, such as just after a start.
- “The server no longer keeps these lines.”: on an older page under “Everything”, the server dropped the lines of the page after you opened the page before it. Click “Back to newest”.
- “No older lines in this time range.”: on an older page under a range, the range now starts after the lines of the page, because the range moves with the clock. Click “Back to newest”.
When a read fails
Section titled “When a read fails”The page shows what went wrong, and “Try again”.
- “The server already runs two reads of its log. Try again in a moment.”: the server reads its lines for two other requests now. After one second, the page tries once more by itself. If the second try also fails, the page shows this text.
- “The server cannot give its recent lines now. Read its log on the machine, such as with journalctl.”: this server keeps no recent lines, or the connection cannot give a page. The words of the server follow.
- Any other problem shows the words of the server.