Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

RFC5424 messages have the "type" field supplied.

  • Loading branch information...
commit 15264378e82125d92052ae69a61482223079a823 1 parent 19c6b6e
@squeeks authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/glossy/parse.js
View
1  lib/glossy/parse.js
@@ -130,6 +130,7 @@ GlossyParser.prototype.parse = function(rawMessage, callback) {
if(segments[0].match(/^(<\d+>\d)$/)) {
segments.shift(); // Shift the prival off
var timeStamp = segments.shift();
+ parsedMessage.type = 'RFC5424';
parsedMessage.time = this.parseTimeStamp(timeStamp);
parsedMessage.host = this.decideValue(segments.shift());
parsedMessage.appName = this.decideValue(segments.shift());
Please sign in to comment.
Something went wrong with that request. Please try again.