Closed dannielmags closed 3 years ago
Your graylog server is accessible at http://0.0.0.0:12201/gelf
without being logged in to graylog?
Try sending a message from a terminal:
curl -X POST -H 'Content-Type: application/json' -d '{ "version": "1.1", "host": "example.org", "short_message": "A short message", "level": 5, "_some_info": "foo" }' 0.0.0.0:12201/gelf
Go to your graylog instance, and check if your configured http input has received the message.
It should look like this (if that's not the case, you have misconfigured graylog, and i cannot help you with that):
Thanks for the help @hedii :D we just solve the problem, The gelf is not working with LaravelSail. We just tried it using a clean project pulling from a composer, and it works smoothly. :D Thank you
I'm still unable to send logs to Graylog with my Setup, please help :'(
logging.php
Controller to send Log
Thanks in advance :D