Hey Guys,
I have just set up Graylog using a docker container following the Graylog docs, I am able to get the dashboard up and running and I have created a GELF UDP input, I have also opened the ports for the input in my server.
But for some reason the logs are not coming in the dashboard, there are also no errors in the node.js process.
Can anyone help me figure out what I am doing wrong
var graylog2 = require(“graylog2”);
var logger = new graylog2.graylog({
servers: [
{ ‘host’: ‘35.xxx.xxx.xx’, port: 12201 }],
hostname: ‘customer_server’, // the name of this host
// (optional, default: os.hostname())
facility: ‘Node.js’, // the facility for these log messages
// (optional, default: “Node.js”)
bufferSize: 1350
});
logger.log(‘Server Started’);
logger.on(“error”, function (error) {
console.error(“Error while trying to write to graylog2:”, error);
});