The work of a enviroment var


(Akash Kumar Dutta) #1

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 ?


(Jochen) #2

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


(Akash Kumar Dutta) #3

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


(Jochen) #4

Which aspects are unclear?


(Akash Kumar Dutta) #5

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 ?


(Jochen) #6

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.


(Akash Kumar Dutta) #7

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


(Jochen) #8

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:


(Akash Kumar Dutta) #9

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 !


(Jochen) #10

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


(Akash Kumar Dutta) #11

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.


(system) #12

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