The work of a enviroment var

What does this env variable does, please elaborate, bookish can be found any where : rest_transport_uri . And how do I use it to set up a master-slave graylog cluster. Specifically what are the values in master and slaves ?

Please refer to the annotated configuration file and the documentation at http://docs.graylog.org/en/2.2/pages/configuration/multinode_setup.html.

@jochen I had already read those. Can you please elaborate a little on it in laymans term. Sorry for pestering.

Which aspects are unclear?

I mean suppose I have a master-slave architecture for graylog. I wanted to know what do I feed in this env varialbe for master pod and slave pod ?

See http://docs.graylog.org/en/2.2/pages/configuration/multinode_setup.html#graylog-multi-node.

It’s is_master = true for the primary node and is_master = false for the secondary nodes.

You mean rest_transport_uri will be the same for both the pods master and slave ?

No, rest_transport_uri has to be unique for each Graylog node and it has to be accessible by all other Graylog nodes in the cluster.

This is described in the annotated configuration file I’ve already linked to:

could you give an example to make things clear. Suppose I already have the env vars set for master and slave as :

          - name: GRAYLOG_WEB_ENDPOINT_URI
            value: "http://104.154.244.243:31300/api"
          - name: GRAYLOG_REST_LISTEN_URI
            value: "http://0.0.0.0:9000/api/"
          - name: GRAYLOG_WEB_LISTEN_URI
            value: "http://0.0.0.0:9000/"

What should I set my GRAYLOG_REST_TRANSPORT_URI to ? Thanks !

To the full address of the Graylog REST API of that particular Graylog node.

1 Like

I am totally confused as to how do I get exact address of the graylog node inside the stateful set in Kubernetes :pensive: any help appreciated.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.