How can I enable persistent logs on already deployed devices automatically?

this will be handled via o/configstate: core config handler for persistent journal by stolowski · Pull Request #8414 · canonical/snapd · GitHub

if you can not wait until ths landed you could perhaps try something like:

and simply “remote-log to localhost” as a short term interim solution.