logging - How to send host and application information to Loggly through winston-loggly in Node.js -


i'm using winston-loggly module in node app in order send logging information loggly. logger instantiated so:

var logger = new(winston.logger)({   transports: [     new (winston.transports.console)({ level: 'debug' }),     new (winston.transports.loggly)({       inputtoken: {token},       subdomain: {subdomain},       tags: ['winston-nodejs', 'logtag'],       json:true,       level: 'debug'     })   ] });  

on loggly account can see logs have been sent. want create source groups can filter out host , tags, , far i've gotten work when tags specified fro source group. when tried adding ip specified in "clienthost" of log messages the"host" field of source group, group stopped displaying results.

i've looked through documentation see how send host , application information, couldn't find how through winston-loggly.

source groups support syslog.host right now. http.clienthost isn't supported there yet. might try using tag instead.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

c# - MSDN OneNote Api: Navigate to never before opened page without opening a OneNote Application Window -