NEWAI chat: ask your fleet anything, in plain language. Chat with your fleet Read more →
How-to · Monitoring

How to see logs from remote Linux devices and robots, without logging into each one

On one device, SSH in and read the logs with journalctl, docker logs or tail. For many devices in the field, ship the logs to one place you can search, with a buffer for when devices are offline and limits for slow or metered links. PhysicalFleet's agent collects journald, Docker and ROS logs from every machine with no setup, masks passwords, tokens and keys on the device, lets you search them by group, severity and source in the browser, adds your own app's logs from its files or one line of Python, and opens a browser terminal when you need a live journalctl -f.

What you need

  • Linux devices such as Raspberry Pis, NVIDIA Jetsons, PCs or robots, logging the usual way: to the systemd journal, Docker, log files, or ROS /rosout.
  • An outbound internet connection from each device, even a slow or cellular one. Nothing has to reach the device from outside: no public IP, VPN or open port.
  • A PhysicalFleet account. Everyone in the organization can read logs. Owners and admins add app log files and open the terminal. Free for up to 3 machines.
  • Optional: a Python 3.7 or newer app, if you want its own log lines with the code location and trace, using the PhysicalFleet library that comes with the agent.

Ways to see logs from remote devices

There are three common ways, and most fleets use more than one.

WayHow it worksGood atWatch out for
SSH, then read the logs on the deviceLog in and run journalctl, docker logs or tail. A script can loop over many devicesNothing to set up. Every line, in full detailOne device at a time. The device must be reachable, which NAT, firewalls and cellular get in the way of. On many small boards the journal lives in memory and is gone after a reboot. Nothing to read while the device is off. Every laptop that runs the loop needs keys to every device
Ship logs to a central log serverA log shipper on each device tails the journal and log files and sends lines to a search store you run or rentSearch across the fleet, keep history, alert on patternsBandwidth: a chatty device can send hundreds of MB a day over cellular. Gaps while offline, unless the shipper buffers on disk. Server and storage costs grow with volume. Passwords in log lines leave the device unless you mask them first
Syslog forwardingrsyslog or systemd-journal-upload forwards each device's logs to a central serverBuilt into most distributionsUDP syslog drops lines and isn't encrypted; TCP with TLS takes setup. Lines written while the link is down are lost unless you set up a disk queue, or the journal still holds them when systemd-journal-upload catches up. Container output and app log files need extra rules. The server must be reachable from every site

For a few devices on your desk, SSH is enough. For a fleet in the field, ask four questions of any setup: can you search every device at once, what happens to lines written while a device is offline, how much data it uses on a SIM card, and do passwords in log lines leave the device.

The commands to read logs on one device

Whatever you use for the fleet, these are the commands you'll run on a single device, over SSH or in a browser terminal:

journalctl -u my-robot.service -f                    # follow one service live
journalctl -u my-robot.service --since "1 hour ago" -p warning
journalctl -p err -b                                 # errors since this boot
journalctl -k --since today                          # kernel: USB resets, under-voltage, OOM kills
docker logs --since 30m -f picker                    # one container
docker compose logs -f --tail 200 policy             # one Compose service
tail -F /var/log/picker/app.log                      # an app's own log file
ros2 topic echo /rosout                              # ROS 2 log messages (source your ROS setup first)

On many Raspberry Pi and other small-board images, the journal is kept in memory, so the lines from just before a crash or reboot are lost. To keep it on disk, with a size cap for an SD card, add a small journald setting and restart the journal. Storage=persistent works whether the image keeps the journal in memory by default or on purpose:

sudo mkdir -p /etc/systemd/journald.conf.d
printf '[Journal]\nStorage=persistent\nSystemMaxUse=200M\n' | sudo tee /etc/systemd/journald.conf.d/99-persistent.conf
sudo systemctl restart systemd-journald
journalctl -b -1 -p warning    # after the next reboot: warnings from the boot before

This works well for one device. The steps below do the same for a whole fleet with PhysicalFleet, and keep the terminal for when you need it.

Step 1: Install the agent: system logs arrive with no setup

In PhysicalFleet, open Fleet, press Add machine and run the one-line install command it shows on each device. The device is online in about 10 seconds. Add --group and --tags to the command so you can filter logs by group later. See Getting started.

From then on the agent collects, with nothing to configure:

  • The systemd journal: every service's output.
  • Docker containers: each container's output.
  • Syslog files, on machines without the systemd journal.
  • ROS /rosout, warnings and above, from ROS 1 and ROS 2, without installing anything in the workspace.
  • Events: from the kernel (USB devices connected, disconnected or reset, under-voltage, out-of-memory kills, filesystem errors), from services and containers (failed, recovered, crash-looping, restarted) and from ROS (a node lost, a topic gone silent).

Before anything leaves the device, the agent replaces passwords, tokens, API keys, authorization headers, JWTs, credentials in URLs, cloud keys, private keys and card numbers with ***. Repeated lines are folded into patterns with a count, so a chatty service doesn't use up your data. Warnings and errors are sent line by line, except that only the first few copies of the same warning are sent in full and the rest are counted.

Step 2: Search and filter logs across the fleet

Open Debugging › Logs. It has three tabs: System (every log line), Apps (your apps' own logs, steps 3 and 4) and Events. A machine's own page has the same three under its Logs tab.

  • Which machines: the fleet filter bar under the top bar narrows the page by Location, Group, Tags, Status and More (architecture, OS, agent version). It says N of M machines, stays set as you move between pages, and the page address carries it, so you can send a teammate the filtered view.
  • Search the text of the lines.
  • Time range: 15 min, 1 hour, 6 hours, 24 hours, 7 days, Everything your organization keeps, or Custom with a start and end date and time.
  • Severity: All, Info, Warning or Error.
  • Source: one service, container, file, app or ROS node (below).
  • Lines | Patterns: Patterns folds repeated lines into one row with a count (×1,234), so the rare line stands out.
  • Live shows new lines as they arrive, every 5 seconds, like tail -f for the fleet.
SourceWhere the line came from
<unit>, for example my-robot.serviceThe systemd journal
docker:<container>A Docker container
file:<path>A syslog or log file
app:<name>Your app's own logs
ros:<node>A ROS node's /rosout messages

Open a line to see its severity, time, machine, source and fields (file, logger, code location, function, thread), Open the trace when it was written inside a traced step, and Investigate this moment (step 5). The Events tab has the same controls, plus a kind filter.

To be told when a line shows up instead of searching for it, add a rule in Observability › Alerts › Rules with the condition is logged: a log line containing some text, a number of times in a window. See how to get an alert when a device goes offline for how rules and channels work.

Step 3: Add your app's log files

If your app writes its own log files instead of to the journal or Docker, the agent can tail them on every matching device:

  1. In Debugging › Logs › Apps, press Add new App and pick From its log files.
  2. Name the app, for example picker.
  3. Give a file or a pattern, one per line and up to 20, for example /var/log/picker/*.log. * matches any name.
  4. Choose the machines: Every machine, A group or Machines with tags.
  5. Optional, under More options: the Format (automatic reads JSON lines as fields) and Keep stack traces together.
  6. Press Start collecting. PhysicalFleet says what it set up, for example Collecting picker's logs on 3 machines.

New files that match a pattern are picked up within 30 seconds, so tomorrow's log file is read from its first line. A file that already exists is read from its end: lines written before you set it up aren't sent. JSON lines are read as fields (the message, the level, including numeric levels, the logger and up to 12 more fields), and multi-line stack traces from Python, Java and Go are joined into one entry.

System and credential paths can't be collected: /proc, /sys, /dev, /boot, /etc/ssh, /etc/shadow, .ssh, .aws, *.key, *.pem, *.env and similar. Symbolic links aren't followed, and fields named like secrets (password, api_token, secret) are sent as ***.

Owners and admins set up log files; everyone can read them. An organization can collect up to 50 apps. My Apps lists each app with its lines, errors and warnings; edit one to change its files or pause it.

Step 4: Send logs from your Python code

For a Python app, the PhysicalFleet library sends each logging record with its logger, code location and trace. It comes with the agent, so there is nothing to pip install on the device. Start the app with pf run, which puts the library on the path and gives the app a stable name:

pf run --name picker -- python3 app.py

Then, in the app:

import logging
import physicalfleet as pf

pf.capture_logs()                                    # every logging record, INFO and up

log = logging.getLogger("picker.grasp")
log.warning("slip detected", extra={"cup": 3})       # cup arrives as a field
try:
    grasp()
except Exception:
    log.exception("grasp failed")                    # the traceback stays with the line

pf.log("calibration done", severity="info", offset_mm=0.4)   # one line, without logging
  • pf.capture_logs(level="INFO", logger=None) attaches to the root logger, or to the one you name. Your own logging.basicConfig(...) still works when it runs afterwards.
  • logging.getLogger("picker").addHandler(pf.LogHandler()) sends only some loggers.
  • pf.log(message, severity, logger, exc_info, **fields) sends one line; exc_info=True attaches the current exception.

Each line carries the severity, logger, file:line, function, thread, your extra fields, the traceback and the trace id of the span it was written in, so Open the trace on a line jumps to the timed steps around it. The lines show in Debugging › Logs › Apps with source app:picker. Without a running agent, every call does nothing, never blocks and never raises.

The app's name comes from pf run --name, else a ROS 2 node's name from __node:=, else python -m pkg, else the script's file name. The same name on 50 machines groups their lines together.

Don't send the same lines twice. If the app runs as a systemd service or a container, its output already arrives through the journal or Docker: use that or the library for an app, not both. Apps in other languages can send log lines as JSON over UDP to the agent on the same device; the format is in the docs in the dashboard.

Step 5: Look at the logs around an incident

When something went wrong at 14:02, you want everything that happened on that device around 14:02, not one log stream.

  • From a line: open it and press Investigate this moment. That opens Debugging › Investigate › Timeline for that machine at that time.
  • The Timeline shows one machine around an incident or a moment: Metrics (every chart on one synced cursor, with warnings, errors, diagnoses and changes marked), Recordings, the Events and Logs of the window, What changed before (the 24 hours before) and the Issues open in it. Earlier, Later and zoom move the window.
  • Flight recordings: the agent keeps the last five minutes on the device: metrics every second, every log line (masked), events, ROS logs and a camera frame every two seconds. When a model gets stuck, a ROS node is lost, a topic goes silent, a process crashes or is killed for memory, a service crash-loops or a critical alert fires, it waits 30 seconds for the aftermath and saves one recording as an MCAP file, linked to the incident. Replay it on the Timeline or open it in any MCAP tool. A recording made offline uploads later. Save the last 5 minutes on the machine's Files tab saves one whenever you ask.
  • Crashes produce a crash bundle with the app's last lines, its service or container status and the system state, all masked.
  • Changes: the machine's change timeline lists packages installed or upgraded (with the command and the user, for apt), files under /etc added, changed or removed (paths only), reboots, kernel and OS changes, and releases. A diagnosis says when a problem started right after one, for example started 10 min after a change: ros-jazzy-rclcpp upgraded.

The lines from just before a crash are the ones SSH most often loses: the process restarted, the container was replaced, or the journal lived in memory. Here they were already sent, or kept in the recording.

Step 6: Set data limits for slow or metered links

Logs are often the biggest part of what a device sends. Two settings decide how much: the bandwidth level and an optional data budget. Set them for the whole fleet in Organization settings › Fleet › Machine defaults, or for one device on its Overview › Settings, in the Bandwidth box, which also shows what it is doing now (Running at Normal · 18 MB sent today). Owners and admins change them.

LevelLogs sentIdle data a day, about
Very lowErrors only1 MB
LowWarnings and up4 MB
Normal (default)Info and up25 MB
HighMore info lines80 MB
Very highDebug and up300 MB

Auto means Normal, or Low when the device's internet goes through a cellular modem. For a SIM plan, set a Data budget per month (MB): the agent measures everything it sends and steps down a level while it is spending ahead of the budget, then back up when it is well under. If the budget runs out, only the essentials go out (critical logs, error events and one telemetry point an hour) until the next month.

Offline: lines written while a device has no connection are buffered on disk and delivered in order when it is back. The Storage level decides how long that lasts: about a day offline at Normal (80 MB), a week or more at Very high (1 GB). If the buffer fills, the oldest data goes first and an event explains the gap. After a long outage the backlog is sent at a steady pace, so a whole site coming back at once doesn't swamp its network.

While you watch: when someone has the device open in the dashboard, its lines are sent within about two seconds, one by one instead of folded into patterns (a flood of the same line is still counted). The level still decides which severities are sent. And what a person asks for always works, whatever the level or budget: the terminal, commands, snapshots and recordings you request.

Step 7: Open a terminal for a live journalctl or tail

Sometimes you need the raw stream: debug lines, a program's whole output, or a command to run right after reading. Open a shell in the browser from Debugging › Remote (pick Terminal and the machine) or the Terminal button on the machine's page, and run the same commands as on your desk:

journalctl -u my-robot.service -f -n 100
docker logs -f --tail 100 picker
tail -F /var/log/picker/app.log
source /opt/ros/jazzy/setup.bash && ros2 topic echo /rosout   # every ROS log level
  • The terminal goes through PhysicalFleet's relay over the device's own outbound, encrypted connection, so it works behind NAT, firewalls and cellular, with no public IP, VPN or open port.
  • Owners and admins only, on online machines. Up to 4 terminals per machine at once; a terminal closes after 30 minutes idle. Switching to Ports or Cameras keeps it running.
  • Every terminal is audited: Organization settings › Audit Log shows who opened it, on which machine and when. What you type is not recorded.
  • What the terminal sends counts as data transfer, usually very little.
  • Turn it off for the organization in Organization settings › Fleet › Remote access (Remote terminal), for one machine with its Remote terminal switch, or for good by installing with --no-terminal.

Privacy, retention and cost

  • Masked on the device. Passwords, tokens, keys and the other common formats in step 1 are replaced with *** before a line leaves the machine. A secret in a format the agent doesn't recognize is not masked, so log it in a named field such as password= or token=, or not at all. Sensitive files can't be collected at all (step 3).
  • Who sees what. Everyone in the organization can read logs and events. Owners and admins choose which app files are collected, open terminals and set data limits.
  • How long it's kept. Without a card on file (the free plan), logs, traces and events are kept for 90 days, at no cost. With a card, everything is kept until an owner or admin picks a period in Organization settings › Fleet › Data retention: 7 days, 30 days, 6 months or 1 year. The first 30 days are free; what is kept beyond them counts as storage, $0.10 per 100 MB a month (free on the Free plan).
  • What it costs to send. Log bytes count as data transfer: $0.15 per 100 MB (free on the Free plan). App logs have their own row in Usage & Billing, under Usage by feature. At the default level a device sends about 25 MB a day when idle, everything included.

When something goes wrong

What you seeLikely causeWhat to do
A device sends only warnings and errorsIts bandwidth level is Low (Auto picks Low on cellular) or Very low, or it's over its data budgetRaise the level or the budget on its Overview › Settings. For a quick look without changing it, read the journal in the terminal
An info line shows once, with a countRepeated lines are folded into patterns to save dataOpen the device's page: while you watch, lines come one by one. For the full raw output, use journalctl or docker logs in the terminal
A line reading (more log lines a second than the agent analyses: counted, not grouped), with a countThe machine logs more lines a second than the agent analyses, so the rest are only countedLower that app's log level, or fix the loop that floods the log
Each app line arrives twiceIts output goes to the journal or Docker, and it also sends with the libraryUse one of them for that app, not both
A log file path is refusedIt's a system or credential path, or a symbolic linkWrite the app's logs to its own folder, such as /var/log/picker/, and give the real path
Older lines of a log file are missingA file that already exists is read from its end when collecting startsExpected: only new lines are sent. Read older ones in the terminal
A gap after a device was offline for daysThe offline buffer filled and the oldest data went first; an event on the device explains the gapRaise its Storage level. Very high keeps a week or more
Nothing arrives from pf.log or capture_logsThe app didn't start with pf run and the library isn't on its path, or no agent runs there, so the calls do nothingStart it with pf run --name <app> -- python3 app.py and check pf status on the device
No ROS info messages/rosout is collected from warnings upUse ros2 topic echo /rosout in the terminal for every level
The terminal won't openYou're not an owner or admin, the device is offline or quarantined, the remote terminal is off for the organization or the machine, or it was installed with --no-terminalThe page says which. Ask an owner, or turn the switch back on

For ROS 2 robots there's more than /rosout: topic rates, lost nodes and diagnostics. See how to monitor ROS 2 remotely.

Checklist
  • Agent on every device, with lines arriving in Debugging › Logs › System
  • Devices grouped and tagged, so you can filter logs by group
  • App log files added, or pf.capture_logs() in the Python app, not both
  • A bandwidth level and a monthly data budget for devices on cellular
  • A storage level big enough for the longest time a device is offline
  • A data retention period chosen in Organization settings
  • Terminal access limited to the people who need it
How PhysicalFleet helps

PhysicalFleet observability puts every device's logs in one place with no setup: the systemd journal (or syslog files), Docker and ROS /rosout, masked on the device and folded into patterns, searchable by group, severity and source, and live. Your apps' own logs come from their log files or one line of Python, with the code location and the trace. Any line opens the moment it was written on a timeline with metrics, events, changes and flight recordings, and a browser terminal is there for a live journalctl when you need one. Bandwidth levels, monthly data budgets and an on-disk buffer keep it working on cellular links and through outages.

See PhysicalFleet observability

Written for PhysicalFleet as of December 3, 2026.

FAQ

Logs on remote devices: common questions

Something else? Talk to our team.

How do I view logs on a remote Raspberry Pi?

SSH in and run journalctl -u followed by the service name and -f to follow a service, docker logs -f with the container name for a container, or tail -F on a log file. If the Pi is behind NAT or on cellular, or you have many of them, install an agent that sends its logs out, such as PhysicalFleet, and read them in your browser, with a browser terminal for live commands.

How do I see logs from many Linux devices in one place?

Send them to one place you can search: a log shipper and a central server you run, syslog forwarding, or a fleet platform. With PhysicalFleet, Debugging, Logs shows every device's journal, Docker, file and ROS logs together, filtered by group, tags, severity, source and text.

Why are my Raspberry Pi logs gone after a reboot?

On many small-board images the systemd journal is kept in memory. To keep it on disk, put Storage=persistent and a size cap such as SystemMaxUse=200M under [Journal] in a file in /etc/systemd/journald.conf.d/, then restart systemd-journald. With PhysicalFleet the lines are sent off the device as it runs, or kept on disk while it is offline, so a reboot doesn't wipe them.

How much data does sending logs use on a cellular connection?

It depends on how chatty the device is. An idle device on PhysicalFleet sends about 4 MB a day at the Low level, warnings and up, and about 25 MB at Normal, info and up, telemetry included, and folds repeated lines into patterns. Auto picks Low on a cellular modem, and a monthly data budget makes the agent step down before it runs over.

What happens to logs while a device is offline?

With SSH or plain syslog forwarding, lines written while the link is down are often lost. The PhysicalFleet agent buffers them on disk and sends them in order when the device reconnects: about a day offline at the Normal storage level, a week or more at Very high.

Are passwords and tokens in logs sent to PhysicalFleet?

Not in the formats the agent recognizes. It replaces passwords, tokens, API keys, authorization headers, JWTs, credentials in URLs, cloud keys, private keys and card numbers with *** on the device, before anything is sent. Fields named like secrets in JSON logs are masked too, and credential files can't be collected. A secret in an unusual format can slip through, so don't log secrets you can avoid logging.

Can I see ROS 2 logs remotely?

Yes. PhysicalFleet collects /rosout from ROS 1 and ROS 2 robots, warnings and above, with nothing installed in the workspace, and shows each node as its own source. For every level, run ros2 topic echo /rosout in the browser terminal.

How long are logs kept?

On the free plan, without a card, PhysicalFleet keeps logs, traces and events for 90 days at no cost. With a card everything is kept until you pick 7 days, 30 days, 6 months or 1 year in Organization settings, Fleet, Data retention; history past 30 days counts as storage.

From the lab bench. To the entire fleet.

Connect your first machine in minutes, develop it in the lab and run your whole fleet in production from one place.

Free for up to 3 machines · Then pay as you go