I am newbie for graylog2. I installed graylog2 along with web interface. I am getting TCP syslogs into graylog server from other servers. But I am unable to send Rails logs into Graylog from other servers.
In graylog server im listening for GELF HTTP logs for port 12201 and all the required ports are open . But I am not getting any inputs into graylog server. I have configured the Rails logger as below:
#config/environments/staging.rb
config.lograge.enabled = true
config.lograge.log_format = :graylog2
config.logger = GELF::Logger.new("graylogserverexample.com",
12201, "WAN",{
:host => "hostname",
:facility => "railslog"})
Any help would be appreciated.
As far as I know the GELF::Logger is not sending data via HTTP, but as GELF/UDP.
If you open a GELF over UDP input on 12201 instead, everything should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With