MAAS logging reference (snap/3.1/CLI)

MAAS has a robust logging capability, which presents several different views, including a number of node-specific log files and several syslogd-style text logs. Each of these logs provides different information, or at the very least, different views of the same information. MAAS gathers logging information about the various MAAS states and records both automated and user-driven actions.

Five questions you may have:

  1. What is the syslog logging path?
  2. How do I use a remote syslog server?
  3. What are commissioning logs?
  4. What are test logs?
  5. What are event logs?

The discussion of these logs and their contents can be very extensive, so each type of logging has its own documentation section, reachable from the left-hand menu – or from the list of questions above.

The syslog logging path

Syslog data is kept in /var/snap/maas/common/log/rsyslog/<machine-name><yyyy-mm-dd>/messages. Every machine known to MAAS will have corresponding syslogs.

Syslog data is kept in /var/log/maas/rsyslog/<machine-name><yyyy-mm-dd>/messages. Every machine known to MAAS will have corresponding syslogs.

Using a remote syslog server

To add a remote syslog server, click the Settings tab and then click the Network services tab. Scroll down to the Syslog section, where you can add a syslog URL or IP:

Click the Save button to save your changes.

To add or update a remote syslog server in your MAAS environment:

maas $PROFILE maas set-config name="remote_syslog" value="$SYSLOG_FQDN"

For example, to set your syslog server to 192.168.100.11:

maas $PROFILE maas set-config name="remote_syslog" value=192.168.100.11

If you clear the remote_syslog value, MAAS will revert to the default behaviour, which is to send all syslog information to all MAAS region controllers.

For example:

maas $PROFILE maas set-config name="remote_syslog" value=""

Note that MAAS controllers’ syslogs are not forwarded to the external syslog server – only machine syslog information is forwarded.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.