-
Notifications
You must be signed in to change notification settings - Fork 181
What is the correct way to setup Papertrail #336
Comments
Hey @grandmore, that documentation is referring to the logger, not to applications. In order to set up log forwarding to paper trail you will have to add those environment variables into the logger using |
I have loaded the .helmc workspace files for Do you mean edit the I can see the vars in that file but since there accessing the environment variables directly
Thanks for your help. |
Correct!
fluentd ships logs to the logger by default. These are two separate components: one is for collecting and shipping (fluentd) and one is for storage and access (logger). If you want to ship logs to papertrail instead of the logger, you need to tell fluentd where to ship them. The current logic in the chart is a bit of hocus-pocus where kubernetes will interpret those envvars at runtime, when the pod has DEIS_LOGGER_SERVICE_HOST and DEIS_LOGGER_SERVICE_PORT in the environment thanks to the deis-logger service. |
Thanks for the feedback I will attempt to get it working, and let you know how I get on. Cheers. |
Closing due to inactivity, but please re-open if you feel like you need more help getting set up. Thanks! |
I have tried many approaches as written in the docs but I cannot get it to function.
I have set some env variables as described in the docs:
deis config:set SYSLOG_HOST_1=logs.papertrailapp.com SYSLOG_PORT_1=xxxxx
What is the right approach, do you have any step by step instructions to make this simple?
Thanks.
The text was updated successfully, but these errors were encountered: