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

gelf input accepts connection from localhost but not from ip #16

Open
suyograo opened this issue Aug 3, 2015 · 1 comment
Open

gelf input accepts connection from localhost but not from ip #16

suyograo opened this issue Aug 3, 2015 · 1 comment

Comments

@suyograo
Copy link
Contributor

suyograo commented Aug 3, 2015

From elastic/logstash#3666

Logstash Input Configuration

input {
  gelf {}
}

Telnet Test

[root@localhost ~]# telnet localhost 12201
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
[root@localhost ~]# telnet 192.168.1.149 12201
Trying 192.168.1.149...
telnet: connect to address 192.168.1.149: Connection refused
@dlcampbell888
Copy link

Er, nevermind. Telnet is TCP, the gelf input is UDP. You can test like this:

echo -e '{"version": "1.1","host":"example.org","short_message":"Short message","full_message":"Backtrace here\n\nmore stuff","level":1,"_user_id":9001,"_some_info":"foo","_some_env_var":"bar"}\0' | nc -v -u 12201

I had to put -Djava.net.preferIPv4Stack=true in the java opts to get it to bind to an IPv4 port.

But even still, the GELF input is not working very well for me. I think there are some bugs in the current version. It would be really nice to have it because we want to use the GELF appender for jboss logs.

sfuhrm pushed a commit to sfuhrm/logstash-input-gelf that referenced this issue Feb 3, 2020
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