Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rfc5424 structured data parsing #5

Open
opichals opened this issue Feb 2, 2020 · 0 comments
Open

rfc5424 structured data parsing #5

opichals opened this issue Feb 2, 2020 · 0 comments

Comments

@opichals
Copy link

opichals commented Feb 2, 2020

By default the logger executable sends some RFC5424 structured data fields (see http://kerolasa.github.io/logger.html for details) which seem not to be recognized by the parser. Notice especially the 'messageandheader` property.

logger "test message from logger"

results in the following parser output

{ date: '2020-02-02T12:55:52.333Z',
  host: 'nuc',
  message:
   'tzKnown="1" isSynced="1" syncAccuracy="77000"] test message from logger',
  protocol: 'IPv4',
  originalMessage:
   '<13>1 2020-02-02T13:55:52.332998+01:00 nuc standa - - [timeQuality tzKnown="1" isSynced="1" syncAccuracy="77000"] test message from logger',
  pri: '<13>',
  prival: 13,
  facilityval: 1,
  levelval: 5,
  facility: 'user',
  level: 'notice',
  version: 1,
  type: 'RFC5424',
  ts: '2020-02-02T12:55:52.332Z',
  appName: 'standa',
  pid: '-',
  messageid: '-',
  structuredData: [],
  chain: [],
  fields: [],
  header:
   '<13>1 2020-02-02T13:55:52.332998+01:00 nuc standa - - [timeQuality ' }
@opichals opichals changed the title rfc5424 arguments parsing rfc5424 structured data parsing Feb 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant