Skip to content

Logs

Overview

IFM nodes produce structured logs and metrics that can be observed through the IFM Dashboard or via the observability interface. This section covers how to access, read, and troubleshoot node logs.

Log Sources

Node Logs

IFM nodes write logs to their data directory. The main log file contains:

  • Startup and shutdown events
  • Peer connection events (connect, disconnect, reconnect)
  • Frequency tuning events (tune, leave)
  • Packet send/receive counts
  • Error conditions and warnings

Rendezvous Logs

Rendezvous nodes have their own log output, visible when running with verbose mode or checking the systemd/journal logs.

Accessing Logs

Via Dashboard

The IFM Dashboard provides a web interface to observe node logs in real-time. See docs/architecture/observability.md for the architectural boundary between nodes and dashboard.

Via Command Line

bash
# View node logs
ifm logs --node <node-id>

# View rendezvous logs
ifm-rendezvous logs

# Follow live log output
ifm logs --follow --node <node-id>

Via Environment Variables

Log level can be controlled via IFM_LOG_LEVEL environment variable:

  • trace - all events
  • debug - detailed debugging
  • info - standard operations (default)
  • warn - warnings only
  • error - errors only

Troubleshooting Common Log Messages

Log MessageMeaningAction
Peer connected from <addr>New peer joined the meshNormal operation
Peer disconnected from <addr>Peer left the meshNormal operation
Failed to tune <frequency>Frequency not available or access deniedCheck frequency type and access keys
Packet send failedNetwork issue or transport errorCheck connectivity, NAT, firewall
Jitter buffer overflowNetwork instability, too much varianceConsider increasing jitter buffer size

Released under the MIT License.