Skip to content

Instantly share code, notes, and snippets.

@ssaadh
Last active April 22, 2020 12:37
Show Gist options
  • Save ssaadh/9632ef2fbe3e4f7f5bbcbe5bd441a917 to your computer and use it in GitHub Desktop.
Save ssaadh/9632ef2fbe3e4f7f5bbcbe5bd441a917 to your computer and use it in GitHub Desktop.
Install Papertrail App's remote_syslog2[0] on macOS for a specific NodeJS project. [0] https://github.com/papertrail/remote_syslog2
cd ~/tmp-moi
wget https://github.com/papertrail/remote_syslog2/releases/download/v0.20/remote_syslog_darwin_amd64.tar.gz
tar -xvzf remote_syslog_darwin_amd64.tar.gz
cd ./remote_syslog
## OG
# sudo cp ./remote_syslog /usr/local/bin
# sudo cp example_config.yml /etc/log_files.yml
# sudo vim /etc/log_files.yml
cp ./remote_syslog ~/.local/bin
cp example_config.yml ~/.local/etc/log_files.yml
sudo ln -s ~/.local/etc/log_files.yml /etc
vim ~/.local/etc/log_files.yml
# config example for this project:
# files:
# - /Users/makeanothertelephonecall/Dropbox/Learning/portfolio/proj-gh/proj-g_collab-sockets/projg.log
# destination:
# host: logs4.papertrailapp.com
# port: 33501
# protocol: tls
# example running
# remote_syslog --pid-file=/Users/makeanothertelephonecall/tmp-moi/remote_syslog.pid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment