Last active
April 22, 2020 12:37
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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