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"