Skip to content

Events

Events are messages, kept on the host with the fleet’s history: when they happened, which machine, a source, a severity (debug, info, warning, error, critical), a title and a message. The dashboard’s Events page lists them all, with filters and search.

The Events page: errors from a Linux machine’s journal, with filters for machine, severity, type, source and date

On by default. Each machine sends the errors from its own logs:

  • Linux: journald, priority error and worse

  • Windows: the System and Application event logs, Error and Critical

  • macOS: only the processes you choose, because the rest of macOS logs about 100,000 errors an hour. For Time Machine, for example:

    Terminal window
    mm-core os-events add backupd

mm-core os-events off turns them off on that machine.

Any program on a machine can send an event, without sudo:

Terminal window
mm-core send --source backup --severity error --title "Backup failed" "Disk full on /mnt/backup"

With no message, each line piped in is one event:

Terminal window
tail -f /var/log/myapp.log | mm-core send --source myapp

Programs that log to syslog can send to mm-core. Off by default; it listens on 127.0.0.1 only, so only programs on that machine can use it:

Terminal window
mm-core syslog on # UDP and TCP on 127.0.0.1:5514
mm-core syslog port 5515 # another port

On the Events page, select events and press Delete. Or from a host, everything that matches:

Terminal window
mm-core events delete --machine nas --at-most warning --older-than 30

It shows how many match and asks first, unless you add --yes.

Each source is rate limited, so a program stuck in a loop can’t flood the host. While an agent can’t reach its host, it keeps the last 200 events and sends them when it can.