ServerAvatarDocs
Servers

Logs

Read the log files of a server, search them, follow new lines as they arrive and download a log.

The server's logs show what the web server, the database, PHP, the system and your cron jobs write down. Open Logs in the server's sidebar (under Server). Central reads the logs from the server itself. You can read and download them here, but not clear them.

  1. Open Logs in the server's sidebar. The first log that can be read opens.

    The Logs page with the list of log sources on the left and the lines of one log

The list of log sources is grouped: Web server, Database, Cache, System, Security, Background services, PHP, Cron jobs, Workers and Other. Which sources you see depends on what is installed on the server. A source can say empty (nothing written yet) or no access ("Can't be read"). If the server has no log sources the page says "No log sources found on this server."

Read a log

  1. Select a log in the list, or choose it in Log source on a small screen.
  2. Choose how many lines to show: Last 100 lines, Last 500 lines (the default), Last 1000 lines or Last 5000 lines. The page says "Showing the last n lines".
  3. To show only some lines, use Show: All, Errors or Warnings+. For a web server access log the choices are All, 5xx only and 4xx and 5xx.
  4. Use the Newest first button to turn the order around (it then reads Oldest first), and Wrap lines to wrap long lines instead of scrolling sideways.
  5. Select Refresh to read the log again. The page also says "This log is empty." or "This log is empty. Nothing has been written to it yet." when there is nothing to show.

Search in a log

  1. Type in the Filter lines… box above the log. Press Enter, or wait a moment: the search starts as you type.
  2. Only the lines that contain the text are shown. The search is not case-sensitive. When nothing matches the page says "No lines match your search."
  3. Select Clear search (the × in the box) to see all lines again.

The search looks at the newest part of a large file. If the file is bigger, the page says "The search only looked at the newest part of the file." Search text can be up to 200 characters.

Follow new lines

On logs that can be followed, turn on Live to add new lines as the server writes them: "Following new lines". It pauses while you filter or search ("Paused while filtering") and stops if the log cannot be read ("Live stopped: the log couldn't be read."). Select Resume to start it again. If one read fails Central says "The last read failed, trying again…".

Copy or download a log

  • Copy shown lines (Copy) copies the lines on screen to the clipboard.
  • Download (Download shown lines) offers two choices:
    • Whole log file downloads the full file from the server as a .log file ("The full file from the server, as a .log file."). Central prepares a one-time link that works for 60 seconds ("Preparing the download…").
    • Lines shown (n) downloads what is on the screen as a text file.

If a log is empty the page says "This log is empty, so there's nothing to download." Some logs are not offered as a file: "ServerAvatar doesn't offer this log as a file. Download the lines shown instead."

Limits

  • Lines shown: 1 to 5000 in a read (the page offers 100, 500, 1000 and 5000; the default is 500).
  • Search text: up to 200 characters.
  • Downloading the whole file is limited to 6 downloads a minute for each user.
  • The link to download a whole file works once and for 60 seconds.

Who can do this

  • Reading, searching, following and downloading a log needs View on Logs (server.logs). There is no Manage action: logs cannot be changed or cleared from Central.

Common errors

  • The download couldn't be started. Try again. If you started many downloads in a minute, wait a minute.
  • Can't be read. The server does not give access to this log.
  • No log sources found on this server. The server did not list any logs.

On this page