4 ms·
I wrote something similar that will send stdin to Google Stackdriver Logging. https://github.com/thesandlord/logpipe https://github.com/thesandlord/logpipe
by thesandlord 9y ago
I wrote something similar that will send stdin to Google Stackdriver Logging.
https://github.com/thesandlord/logpipe https://github.com/thesandlord/logpipe
- troydavis 9y agoIn 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/ 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
- thesandlord 9y agoYeah 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 https://youtu.be/c5ufcpTGIJM