You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know we can log additional fields, using a parameter in the functions: function (short_message, full_message, additionalFields, timestamp)
But I'd like to set an additional field at the initial configuration:
var logger = new graylog2.graylog({
servers: [
{ 'host': '127.0.0.1', port: 12201 },
{ 'host': '127.0.0.2', port: 12201 }
],
hostname: 'server.name', // the name of this host
// (optional, default: os.hostname())
facility: 'Node.js', // the facility for these log messages
// (optional, default: "Node.js")
bufferSize: 1350 // max UDP packet size, should never exceed the
// MTU of your system (optional, default: 1400)
///////////////additional field
"_additionalField": "content"
});
Is it possible?
The text was updated successfully, but these errors were encountered:
I know we can log additional fields, using a parameter in the functions:
function (short_message, full_message, additionalFields, timestamp)
But I'd like to set an additional field at the initial configuration:
Is it possible?
The text was updated successfully, but these errors were encountered: