Can not load logs Papertrail
Asked Answered
T

0

9

I'm using Ubuntu 16.04. I want to show the rails logs on the service Papertrail. I do everything as indicated in the instruction:

sudo remote_syslog \ -p 34698 \ -d logs7.papertrailapp.com \ --pid-file=/var/run/remote_syslog.pid \ /home/admin/apps/project/backend/log/development.log

As a result, I have an error:

2018-08-28 04:09:26 CRITICAL remote_syslog.go:240 Failed to start server: No destination hostname specified

Tollefson answered 28/8, 2018 at 4:20 Comment(3)
Have you set up you papertrail.yml file? github.com/papertrail/papertrail-cli/blob/master/README.mdIndicant
Your command looks correct, but somehow the -d is not picked up. Maybe try with --dest-host or a configuration file github.com/papertrail/remote_syslog2/tree/v0.19#configuration instead.Marbleize
Give us an update on this. ARe you using a .yml config file?Indicant

© 2022 - 2024 — McMap. All rights reserved.