Access node logs from CLI/API


#1

How do I access a node’s deployment log from the CLI (or API)?

I want to search through the installation logs of a set of nodes without having to do it in the UI.


#2

As per https://docs.maas.io/2.5/en/installconfig-syslog node logs are sent via syslog, and aggregated on the rack controller and then region controller, if you can SSH to those machines, then you can use grep and friends to look through them.


#3

I figured out how to do it using node-results.

maas node-results read system_id=$SYSTEM_ID name=/tmp/install.log