Snap maas logs location

Hi @r00ta /@troyanov /all I cant find where snap.maas.pebble.* logs are stored in snap based maas. If there is a proper location for the logs I can use that path for collecting logs in some other tool. As of now I can only see logs in journalctl -u snap.maas.pebble* -f
There are no logs in /var/snap/maas/common/log

Hi @akashram611

Starting from MAAS 3.5 for snap versions we are using journald for logging.
If you are using something like Grafana Alloy to collect logs to a central place, there is an option to do it via:
https://grafana.com/docs/alloy/latest/reference/components/loki/loki.source.journal/

Is there any way to collect logs in elk kind of tool

I don’t know exactly what kind of setup you have. If you use filebeat to ingest, then it can read journald https://www.elastic.co/docs/reference/beats/filebeat/filebeat-input-journald

Thanks @troyanov is adding snap.maas.pebble.service is enough?

Yes, in a snap packed MAAS pebble is the main entry point and it manages all the services. Reading the journal of snap.maas.pebble.service is enough