Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logstash Gelf Output TCP connected only on times #36

Open
phoppe93 opened this issue Apr 3, 2019 · 1 comment
Open

Logstash Gelf Output TCP connected only on times #36

phoppe93 opened this issue Apr 3, 2019 · 1 comment

Comments

@phoppe93
Copy link

phoppe93 commented Apr 3, 2019

Dear Logstash Team.

i have an issue on Kubernetes with logstash and graylog.

The logstash only connected via tcp one times to graylog.

Here a snipped how i connect to different graylogs inside a cluster

output {
if ([rand_int]) {
if( [rand_int] == 0 ) {
gelf {
id => "output.gelf.0"
codec => "plain"
protocol => "TCP"
host => "graylog.logging.svc.cluster.local"
port => 12201
sender => "%{source_host}"
ignore_metadata => ["@timestamp", "@Version", "severity", "host", "source_host", "short_message"]
}
} else if( [rand_int] == 1 ) {
gelf {
id => "output.gelf.1"
codec => "plain"
protocol => "TCP"
host => "graylog.logging.svc.cluster.local"
port => 12201
sender => "%{source_host}"
ignore_metadata => ["@timestamp", "@Version", "severity", "host", "source_host", "short_message"]
}

Second Issue:

The graylog container are scalable on cpu usage.

After the scale up and one more graylog container is available the logstash not try to connect to the new container.

I have to restart the logstash container.

Is it possible to to have the option to reconnect at an interval and look for new graylog containers ?

Thanks

@arutad
Copy link

arutad commented Oct 3, 2019

Could you not just put a load balancer in front of your graylog containers?

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

No branches or pull requests

2 participants