diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 60ceff9a1ff..6bbc77f3036 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -102,6 +102,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - system/socket: Fix process name and arg truncation for long names, paths and args lists. {issue}24667[24667] {pull}29410[29410] - system/socket: Fix startup errors on newer 5.x kernels due to missing _do_fork function. {issue}29607[29607] {pull}29744[29744] - libbeat/processors/add_process_metadata: Fix memory leak in process cache. {issue}24890[24890] {pull}29717[29717] +- auditd: Add error.message to events when processing fails. {pull}30009[30009] *Filebeat* diff --git a/auditbeat/module/auditd/audit_linux.go b/auditbeat/module/auditd/audit_linux.go index 03d705187f7..82ae7d61128 100644 --- a/auditbeat/module/auditd/audit_linux.go +++ b/auditbeat/module/auditd/audit_linux.go @@ -512,7 +512,7 @@ func buildMetricbeatEvent(msgs []*auparse.AuditMessage, config Config) mb.Event auditEvent, err := aucoalesce.CoalesceMessages(msgs) if err != nil { // Add messages on error so that it's possible to debug the problem. - out := mb.Event{RootFields: common.MapStr{}} + out := mb.Event{RootFields: common.MapStr{}, Error: err} addEventOriginal(msgs, out.RootFields) return out }