Skip to content

Instantly share code, notes, and snippets.

@yunpengn
Last active March 15, 2020 05:13
Show Gist options
  • Save yunpengn/bccb1dd45efeec2aa6da041745032aba to your computer and use it in GitHub Desktop.
Save yunpengn/bccb1dd45efeec2aa6da041745032aba to your computer and use it in GitHub Desktop.
Instructions for setting up Papertrail client on Linux

Follow the steps below:

  • Download the latest remote_syslog2 client.
  • Unzip the file by tar -xvzf remote_syslog_linux_amd64.tar.gz.
  • Modify the configuration inside example_config.yml. It should be ideally something similar as:
files:
  - path: app.log
    tag: app_name
destination:
  host: logs.papertrailapp.com
  port: 50500
  protocol: tls
exclude_patterns:
  - don't log on me
  • Start the client by ./remote_syslog -c config.yml --pid-file=remote_syslog.pid --debug-log-cfg=remote_syslog.log --log="<root>=INFO"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment