Start free trial
Menu

A new API endpoint returns the player's system logs

GET /api/v2/system/logs returns entries from the player's system journal, filtered by service, container or time, so you can check what a player was doing without signing in to it.

AnthiasNew

You can now read a player's system logs over the API instead of over SSH. GET /api/v2/system/logs returns entries from the system journal, Anthias's own containers included, and takes the same credentials as the rest of the API.

It takes these query parameters:

  • count: how many entries, 500 by default and 2,000 at most.
  • unit: a systemd unit, such as docker.service.
  • container: a container name, such as anthias-celery.
  • since and until: a time in the format journalctl takes, such as -1h.

The response lists the entries oldest first, each with its time, priority, unit, container name and message, and says whether the list was cut short and whether the journal survives a reboot. Values that look like secrets, such as Wi-Fi passphrases and tokens, are redacted.

On Raspberry Pi OS the journal is kept in memory by default, so the logs start at the last boot. On Raspberry Pi OS and Debian, the endpoint needs the host agent from this release; run the installer again if it answers that anthias-host-agent isn't running or is out of date. On balena, it reads the journal through balena.

Put Screenly on your screens

Book a demo and we will walk you and your IT team through it, or start a free trial on a screen you already have.

Popular

We use cookies to learn how people use this site and which campaigns bring them here. If you reject them, we count visits without cookies. Either way, you can change your choice at any time with Cookie settings in the footer. Privacy Policy