Added syslog fields for facility and message identifier #5021
+95
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
One line description of pull request
Adds syslog fields for facility, identifier, and raw message
Description:
This PR adds facility and identifier to syslog output events.
It also adds a raw message field, which includes the original unmodified syslog message for further inspection, in addition to the reconstructed message already produced in regular Plaso message output.Note: I looked into getting some fresh example rsyslog output with the identifier set by running an alpine podman image, but I found it a bit difficult to configure it to look correct. After
apk add rsyslog,apk add util-linux(forlogger), configuringmodule(load="builtin:omfile" Template="RSYSLOG_SyslogProtocol23Format"), and runningrsyslogd -n &andlogger --rfc5424 --msgid "123" "This is a test message", I got the interesting log line:Notes:
All contributions to Plaso undergo code review.
This makes sure that the code has appropriate test coverage and conforms to the
Plaso style guide.
One of the maintainers will examine your code, and may request changes. Check off the items below in
order, and then a maintainer will review your code.
Checklist: