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
Currently, dlt-daemon assigns the log level "Emergency" to all journal messages from auditd that lack a PRIORITY field.
This behavior originates from the current implementation of get_journal_msg(), which does not handle cases where the PRIORITY field is missing.
Since messages from auditd with SYSLOG_FACILITY=4 do not contain a PRIORITY field, dlt-daemon should determine the appropriate log level based on other fields such as _AUDIT_TYPE.
Possible Improvement
Modify get_journal_msg() to:
Check SYSLOG_FACILITY and _AUDIT_TYPE when PRIORITY is missing.
Use a fallback mechanism to infer a more accurate log level rather than defaulting to "Emergency".
e.g. If _AUDIT_TYPE is AVC, messages will be classified to "Error" and if not, messages will be classified to "INFO".
Would appreciate any thoughts or suggestions on how best to handle this!
The text was updated successfully, but these errors were encountered:
Unfortunately, the messages from systemd-logind have SYSLOG_FACILITY=4 field, PRIORITY field and no _AUDIT_TYPE field.
So, checking SYSLOG_FACILITY is 4 might not be enough as the condition.
But, since some message of SYSLOG_FACILITY like systemd-logind one has PRIOLITY field, I think checking if a message has _AUDIT_TYPE field is enough to prevent from the false-positive log level of auditd messages.
Environment
Issue
Currently, dlt-daemon assigns the log level "Emergency" to all journal messages from auditd that lack a PRIORITY field.
This behavior originates from the current implementation of get_journal_msg(), which does not handle cases where the PRIORITY field is missing.
Example message from auditd
Expected Behavior
Since messages from auditd with SYSLOG_FACILITY=4 do not contain a PRIORITY field, dlt-daemon should determine the appropriate log level based on other fields such as _AUDIT_TYPE.
Possible Improvement
AVC
, messages will be classified to "Error" and if not, messages will be classified to "INFO".Would appreciate any thoughts or suggestions on how best to handle this!
The text was updated successfully, but these errors were encountered: