graylog2-server icon indicating copy to clipboard operation
graylog2-server copied to clipboard

GELF HTTP input enabled but not receiving messages

Open dograba opened this issue 9 years ago • 5 comments

I have enabled GELF HTTP input and applied the content bundle. The input is in the running state.

Then I used CURL to POST a test message and CURL does not throw any error. I tried stopping the input and then CURL POST and it throws the error as expected.

curl -H "Content-Type: application/json" -X POST -d '{"host":"mylocal box","message":"this is a test message","priority":"realy low"}' http://xx.xx.xx.xx:12201/gelf

I was expecting to search with a keyword on the dashboard to see those messages. That would have been great but the search does not come with any results. I used NOT in my search to exclude the sources I did not want to see to make sure that I narrow it down to the correct one.

I am using the VM provided by Graylog on Virtual Box to test and did not customise it. And running the curl command from an external windows machine.

How can I troubleshoot what is going wrong? and how to fix this issue?

dograba avatar Nov 01 '17 09:11 dograba

Please refer to http://docs.graylog.org/en/2.3/pages/gelf.html#sending-gelf-messages-via-tcp-using-curl for a working example of sending a GELF payload to a GELF HTTP input with cURL.

We are using GitHub issues for tracking bugs in Graylog itself, but this doesn't look like one. Please post this issue to our discussion forum or join the #graylog channel on freenode IRC.

Thank you!

joschi avatar Nov 02 '17 13:11 joschi

I seem to remember that if you don't put the "level" in the messages do not appear...

Steve

On Wed, Nov 1, 2017 at 11:30 AM, Baljeet Dogra [email protected] wrote:

I have enabled GELF HTTP input and applied the content bundle. The input is in the running state.

Then I used CURL to POST a test message and CURL does not throw any error. I tried stopping the input and then CURL POST and it throws the error as expected.

curl -H "Content-Type: application/json" -X POST -d '{"host":"mylocal box","message":"this is a test message","priority":"realy low"}' http://xx.xx.xx.xx:12201/gelf

I was expecting to search with a keyword on the dashboard to see those messages. That would have been great but the search does not come with any results. I used NOT in my search to exclude the sources I did not want to see to make sure that I narrow it down to the correct one.

I am using the VM provided by Graylog on Virtual Box to test and did not customise it. And running the curl command from an external windows machine.

How can I troubleshoot what is going wrong? and how to fix this issue?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Graylog2/graylog2-server/issues/4307, or mute the thread https://github.com/notifications/unsubscribe-auth/ALw_rA4pgJv3r-8QuMu-CZ4BanMVTbRCks5syDomgaJpZM4QN8lS .

-- Steve van der Merwe Blog : http://www.stevevandermerwe.co.za +27 84 978 3817

stevevandermerwe avatar Nov 02 '17 16:11 stevevandermerwe

Thanks Steve. Tried adding level to the message but still did not show. I also stopped all other inputs and just left the one I am testing. Curl still does not complain but still no message on gralog.

dograba avatar Nov 02 '17 16:11 dograba

Was this ever resolved @dograba ? curious cos I think I am getting a similar issue here

andela-sjames avatar Apr 20 '18 02:04 andela-sjames

@dograba @andela-sjames Please discuss this on our discussion forum or join the #graylog channel on freenode IRC.

joschi avatar Apr 20 '18 06:04 joschi