Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

What is the correct way to setup Papertrail #336

Closed
grandmore opened this issue Jun 20, 2016 · 5 comments
Closed

What is the correct way to setup Papertrail #336

grandmore opened this issue Jun 20, 2016 · 5 comments

Comments

@grandmore
Copy link

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.

@bacongobbler
Copy link
Member

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 helmc edit workflow-v2.0.0, then reinstall the platform with those changes.

@grandmore
Copy link
Author

I have loaded the .helmc workspace files for workflow-v2.0.0

Do you mean edit the deis-logger-fluentd-daemon.yaml file in the .helmc workspace

I can see the vars in that file but since there accessing the environment variables directly $(DEIS_LOGGER_SERVICE_HOST) for example, why do I need to modify the yam files and reinstall?

        - name: SYSLOG_HOST_1
          value: $(DEIS_LOGGER_SERVICE_HOST)
        - name: SYSLOG_PORT_1
          value: $(DEIS_LOGGER_SERVICE_PORT_TRANSPORT)
        - name: SYSLOG_HOST_2
          value: $(DEIS_MONITOR_STDOUT_SERVICE_HOST)
        - name: SYSLOG_PORT_2
          value: $(DEIS_MONITOR_STDOUT_SERVICE_PORT_TRANSPORT)

Thanks for your help.

@bacongobbler
Copy link
Member

bacongobbler commented Jun 20, 2016

Do you mean edit the deis-logger-fluentd-daemon.yaml file in the .helmc workspace

Correct!

why do I need to modify the yaml files and reinstall?

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.

@grandmore
Copy link
Author

Thanks for the feedback I will attempt to get it working, and let you know how I get on.

Cheers.

@bacongobbler
Copy link
Member

Closing due to inactivity, but please re-open if you feel like you need more help getting set up. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant