winstonjs / winston-loggly

A Loggly transport for winston
http://github.com/indexzero/winston-loggly
MIT License
85 stars 111 forks source link

TZ missing #19

Closed odix2 closed 10 years ago

odix2 commented 10 years ago

Hi. I send logs with winston-loggly, but I see this notice on all my logs when I view my log lines in Loggly webpage.

message: Timestamp field extracted from Syslog header is missing TZ type: SyslogClockOrTimezoneWrong

Any idea on how to set this?

ibash commented 10 years ago

@odix2 Add a timestamp field to the log messages like: log.info('some message', {timestamp: (new Date()).toISOString()});

If you have a ton of log messages I suggest either making a wrapper around them that automatically adds this parameter. Or forking this to automatically add the timestamp.

indexzero commented 10 years ago

@ibash great answer!