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

fixing regex of pid/procid field for conformance to RFC5424 spec #2049

Closed
wants to merge 1 commit into from

Conversation

mdalley
Copy link
Contributor

@mdalley mdalley commented Jul 2, 2018

Per RFC5424, the field for PROCID is either a NILVALUE (-) or ASCII field from 1 to 128 characters.
https://tools.ietf.org/html/rfc5424#section-6

Valid RFC5424 formatted log using alphanumeric PROCID value of 'proc1':
<16>1 2013-02-28T12:00:00.003Z 192.168.0.1 fluentd proc1 ID24224 [exampleSDID@20224 iut="3" eventSource="Application" eventID="11211"] Hi, from Fluentd!

The regex in this PR commit will properly match the example above.

Also changed the match field name from pid to procid in the REGEX to line up with RFC5424.

@repeatedly
Copy link
Member

Don't change capture name because it breaks existing users, e.g. schema mismatch.

@repeatedly repeatedly self-assigned this Jul 3, 2018
@repeatedly repeatedly added the enhancement Feature request or improve operations label Jul 3, 2018
@mdalley
Copy link
Contributor Author

mdalley commented Jul 3, 2018

Good point. I will resubmit PR to include just the pattern match change and leave the match name 'pid' unchanged.

@mdalley
Copy link
Contributor Author

mdalley commented Jul 3, 2018

Replaced by #2051

@mdalley mdalley closed this Jul 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request or improve operations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants