Skip to content

Commit

Permalink
fix(fim/ebpf): make container id event field ecs-compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoutsovasilis committed Apr 5, 2024
1 parent 823694b commit 6b0bae8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion auditbeat/module/file_integrity/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ func buildMetricbeatEvent(e *Event, existedBefore bool) mb.Event {
}

if e.ContainerID != "" {
file["container.id"] = e.ContainerID
out.MetricSetFields.Put("container.id", e.ContainerID)
}

if len(e.Hashes) > 0 {
Expand Down
10 changes: 5 additions & 5 deletions auditbeat/module/file_integrity/event_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ func NewEventFromEbpfEvent(
) (Event, bool) {
var (
path, target, cgroupPath string
action Action
metadata Metadata
process Process
err error
errors = make([]error, 0)
action Action
metadata Metadata
process Process
err error
errors []error
)
switch ee.Type {
case ebpfevents.EventTypeFileCreate:
Expand Down

0 comments on commit 6b0bae8

Please sign in to comment.