You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Graylog seems connected (I can see this connection in its UI) and I can successfully send messages to it using netcat.
Unfortunately logstash-to-graylog messaging does not work, it seems that graylog declines my messages.
There is my log output from logstash:
Please, check the difference: :event=>{"short_message"=>["", "Hello, world!"] vs :event=>{"short_message"=>"Hello, world!"
It looks like "short_message" option doesnt work as expected and adds array instead of string which is invalid/unexpected format for gelf/graylog.
Btw, "short_message" is the required field for gelf (please check gelf docs) but there are no information about it in logstash-gelf docs here or here.
I suggest to make this field required.
The text was updated successfully, but these errors were encountered:
+1 Any progress here? I just encountered the same issue.
The short_message field is not set correctly, thus making the GELF output not working as expected.
If you need any more details to fix, please let me know.
Hi guys!
Im using logstash with logstash-output-gelf plugin via docker, there is my docker-compose config:
And Im trying to send my logs to graylog using the following config:
Graylog seems connected (I can see this connection in its UI) and I can successfully send messages to it using netcat.
Unfortunately logstash-to-graylog messaging does not work, it seems that graylog declines my messages.
There is my log output from logstash:
And If I modify my logstash config with:
Then it successfully works, graylog receives and shows me all my messages. Logstash debug output is following in this case:
Please, check the difference:
:event=>{"short_message"=>["", "Hello, world!"]
vs:event=>{"short_message"=>"Hello, world!"
It looks like "short_message" option doesnt work as expected and adds array instead of string which is invalid/unexpected format for gelf/graylog.
Btw, "short_message" is the required field for gelf (please check gelf docs) but there are no information about it in logstash-gelf docs here or here.
I suggest to make this field required.
The text was updated successfully, but these errors were encountered: