Linux – add runinig .sh script output to syslog from cron

example command from cron:

/opt/netbox/netbox-backup.sh 2>&1 | /usr/bin/logger -t netbox-backup -p syslog.notice

-t: name in logs
-p: what log (syslog or cron)

2017-07-16T03:29:29+00:00 July 16th, 2017|Linux, Mac|