Hacker News new | ask | show | jobs
by thesandlord 3139 days ago
I wrote something similar that will send stdin to Google Stackdriver Logging.

https://github.com/thesandlord/logpipe

1 comments

In the same vein, pipe anything to `logger` to send it to the local syslogd (and if configured, to remote destinations).

For example, this uses datamash (https://www.gnu.org/software/datamash/) to sum column 2 of a CSV ("-t,"), then log the output:

    datamash -t, sum 2 < stuff.csv | logger
Yeah logger or fluentd are definitely better long term solutions. I wanted something that was no frills and minimal config for ad-hoc situations. Other's on my team found it useful so I open sourced it.

Bonus: In depth code review for this package: https://youtu.be/c5ufcpTGIJM