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'm using winston-syslog to send logs to a Graylog server and I noticed that all entries on the Graylog server are missing the milliseconds information.
Is it expected or am I doing something wrong?
Thanks.
The text was updated successfully, but these errors were encountered:
By default, this library will send logs using the BSD (RFC 3164) format, which doesn't include milliseconds. You can use the better RFC 5424 format (which includes milliseconds) by setting type: '5424' in the transport options, e.g.
newwinston.transports.Syslog({type: '5424',
Unfortunately, this library uses another library called glossy to do the actual formatting, and glossy suffers from a couple different bugs related to the timestamp (#139).
Here's how I was able to work around those bugs:
Install a newer fork of glossy
npm install @myndzi/glossy
Import the fork of glossy
constglossy=require('@myndzi/glossy');
Pass the producer from the fork of glossy into the syslog transport via customProducer:
I also have other examples for Pino and Bunyan. Pino is probably the most promising of the three although not quite ready for production as of the time of this writing.
Hello.
I'm using winston-syslog to send logs to a Graylog server and I noticed that all entries on the Graylog server are missing the milliseconds information.
Is it expected or am I doing something wrong?
Thanks.
The text was updated successfully, but these errors were encountered: