-1

How to do proper graylog 2.2.x cluster? Please Advice

I couldn't find any good solution for the graylog cluster or graylog load balance.

Shann
  • 311
  • 1
  • 2
  • 9

2 Answers2

0

The Graylog documentation has an extensive chapter on this: Multi-node Setup

joschi
  • 12,746
  • 4
  • 44
  • 50
  • Thanks and i think i have to go thru the document again. My concern was how to make graylog cluster/load balance in an efficient way. – Shann Apr 06 '17 at 01:49
0

Graylogs documentation will show you the direction but not that extensive especially if you are not an experienced admin. I am trying to use nginx as load balancer. I tried it with rsyslog and it worked really good but rsyslog was not the answer for my needs so I am trying to discover how to do it over nginx with filebeat.

So here is my nginx.conf :

stream{
upstream graylog_servers {
    server 8.2.1.1:8000;
    server 8.2.1.2:8000;
    server 8.2.1.3:8000;
}
 server {
 listen 8000;
proxy_pass graylog_servers;
}
}

This way my filebeats can send data to 8000 port and I have my load balancing