We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
The text was updated successfully, but these errors were encountered:
Could you not just put a load balancer in front of your graylog containers?
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: