cat to syslog

Ever wanted to submit the results of regular command-line tools to syslog? Logger lets you do that. Here is an example of logging CPU load and vmstat into to a centralized syslog server.

cat /proc/loadavg |logger -p -t "load-cpu"
vmstat |tail -n +3 |logger -p -t "load-vmstat"

I'm currently working at NerdWallet, a startup in San Francisco trying to bring clarity to all of life's financial decisions. We're hiring like crazy. Hit me up on Twitter, I would love to talk.

Follow @chase_seibert on Twitter