Repeatedly syslog messages: Started snap.lxd.lxc.scope

Hello everyone,

I have some physical servers with LXD, running about 80 containers/VMs in each one. Some time ago I noticed a lot of repeated messages in syslog, in all servers. I already refreshed the snaps to last version, rebooted the servers and I keep seeing these messages:

Jan  9 23:30:07 localhost systemd[1]: Started snap.lxd.lxc.d29e0327-795e-4a2e-a39b-64a0cb28b3be.scope.
Jan  9 23:30:20 localhost systemd[1]: Started snap.lxd.lxc.5d92f9c2-515c-493a-a36d-35de3cd63829.scope.
Jan  9 23:30:32 localhost systemd[1]: Started snap.lxd.lxc.b52073c0-6f34-45bf-b516-0233aff37418.scope.
Jan  9 23:30:43 localhost systemd[1]: Started snap.lxd.lxc.83ba3d3a-ebff-4b54-b7f5-81bd840199a4.scope.
Jan  9 23:30:54 localhost systemd[1]: Started snap.lxd.lxc.5ccb7157-7efc-44a0-a407-8ec020c99b05.scope.
Jan  9 23:31:07 localhost systemd[1]: Started snap.lxd.lxc.22f02c01-1568-4af3-aa84-3b80ea1f4974.scope.
Jan  9 23:31:20 localhost systemd[1]: Started snap.lxd.lxc.f9025468-b928-4791-a6a9-9d9ce21a1c00.scope.
Jan  9 23:31:32 localhost systemd[1]: Started snap.lxd.lxc.5a62397d-8281-423c-a730-2c1811a358e4.scope.
Jan  9 23:31:43 localhost systemd[1]: Started snap.lxd.lxc.f6601e9a-4224-433c-88ff-fc1c9ea5cb58.scope.
Jan  9 23:31:55 localhost systemd[1]: Started snap.lxd.lxc.cdf66e84-0524-4df4-b6fc-0f1318c70a45.scope.
Jan  9 23:32:07 localhost systemd[1]: Started snap.lxd.lxc.083a3e35-e346-46e1-a832-fd0e507a95e2.scope.
Jan  9 23:32:21 localhost systemd[1]: Started snap.lxd.lxc.64803e97-f404-420d-8201-f22541e3c91c.scope.
Jan  9 23:32:32 localhost systemd[1]: Started snap.lxd.lxc.b1acdb68-151d-4e89-ad75-9c5c19e58238.scope.
Jan  9 23:32:44 localhost systemd[1]: Started snap.lxd.lxc.cdd4a2ec-13a1-4fcf-8265-40ebee6e834a.scope.
Jan  9 23:32:56 localhost systemd[1]: Started snap.lxd.lxc.abcf3f4c-b942-4f20-875b-6a8f6d168f5b.scope.

# cat /var/log/syslog | grep "Started snap" | wc -l
7381

Is this normal behavior or something that I should investigate further? I searched about this issue here and didn’t find anything, so I became concerned.

# snap list
Name    Version      Rev    Tracking       Publisher   Notes
core    16-2.57.6    14399  latest/stable  canonical✓  core
core20  20221212     1778   latest/stable  canonical✓  base
lxd     5.9-9879096  24175  latest/stable  canonical✓  -
snapd   2.58         17950  latest/stable  canonical✓  snapd

# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.5 LTS
Release:	20.04
Codename:	focal

# uname -r
5.4.0-135-generic

Thanks in advance!

It’s normal behavior. snapd creates a systemd scope for every lxc command run.
This can get quite spammy when running it from a script or in a loop though.

Thank you @stgraber for the fast reply! Yes, I have one script that keeps running some LXD commands (that explains all these syslog messages).