I am newbie to snaps and I need /var/log/syslog files from Ubuntu core 22 for my project hence I came across this post and trying to setup the remote logging. Currently, I am unable to view logs on receiver.
Details -
I have setup the remote logging on my system Ubuntu core - 22 and receiver on another system which is Ubuntu desktop 22.
Logs -
UC 22 -
shriyak@ubuntu:~$ sudo snap logs logsync-james.upload
2024-02-15T12:54:41Z systemd[1]: Stopping Service for snap application logsync-james.upload…
2024-02-15T12:54:41Z systemd[1]: snap.logsync-james.upload.service: Deactivated successfully.
2024-02-15T12:54:41Z systemd[1]: Stopped Service for snap application logsync-james.upload.
2024-02-15T12:54:41Z systemd[1]: snap.logsync-james.upload.service: Consumed 1.638s CPU time.
2024-02-15T12:54:41Z systemd[1]: Started Service for snap application logsync-james.upload.
2024-02-15T13:13:52Z systemd[1]: Stopping Service for snap application logsync-james.upload…
2024-02-15T13:13:52Z logsync-james.upload[4176]: Received SIGTERM from PID 1 (systemd).
2024-02-15T13:13:52Z systemd[1]: snap.logsync-james.upload.service: Deactivated successfully.
2024-02-15T13:13:52Z systemd[1]: Stopped Service for snap application logsync-james.upload.
2024-02-15T13:13:52Z systemd[1]: Started Service for snap application logsync-james.upload.
Receiver -
test@test-ThinkCentre-M92p:~$ sudo snap logs logsync-receiver.remote
2024-02-15T18:11:12+05:30 systemd[1]: Started Service for snap application logsync-receiver.remote.
test@test-ThinkCentre-M92p:~$ sudo journalctl -f -D /var/snap/logsync-receiver/current/
No journal files were found.