Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top