Linux command ‚journalctl‘ – export logs to a file output in old syslog format

0 0-23 * * * `journalctl –output=short -S yesterday > /var/log/syslog` && `scp /var/log/syslog root@192.168.1.171:/var/log/syslog.rpi-iot-jsho-pihole`

Leave a Reply

You must be logged in to post a comment.