Skip to content

Gelf listener dies when used at the same time as other inputs #58

@mijamo

Description

@mijamo

I have a weird issue. My gelf input was working just fine until recently, but since I added another input (from google pub/sub), it crashes after some time because of a SocketError. the timing for the failure seems to be always around 1 day.

The error thrown is the following : <SocketError: recvfrom: name or service not known> with a stacktrace pointing to

line, client = @udp.recvfrom(8192)

That error seems to completely crash Logstash, which is maybe a separate issue, as I would except the listener to just restart in such a situation.

If I remove the google_pubsub listener, gelf works again as expected (now running for 7 days without issue, but with pubsub it was consistently failing after 1 day 6 times in a row).

  • Version: Latest (3.0.6)
  • Operating System: Docker Logstash
  • Config File:
input {
  gelf {
    host => "::"
    type => "gelf"
  }

  google_pubsub {
    project_id => "my-project"
    topic => "my-topic"
    subscription => "logstash-sub"
    json_key_file => "/usr/share/logstash/google_pubsub/key.json"
  }
}
  • Steps to Reproduce:

    • Create a config with only gelf -> everything works
    • Create a config with gelf + another input -> Logstash crashes after 1 day

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions