Skip to content

Commit

Permalink
Osquerybeat: Add event.module into the result data (#27261) (#27263)
Browse files Browse the repository at this point in the history
(cherry picked from commit 526f332)

Co-authored-by: Aleksandr Maus <[email protected]>
  • Loading branch information
mergify[bot] and aleksmaus authored Aug 5, 2021
1 parent 92e3312 commit 7d18dd4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions x-pack/osquerybeat/beater/osquerybeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const (
configurationRefreshIntervalSecs = 60

osqueryTimeout = 60 * time.Second

eventModule = "osquery_manager"
)

const (
Expand Down Expand Up @@ -441,6 +443,11 @@ func (bt *osquerybeat) publishEvents(index, actionID, responseID string, hits []
fields = common.MapStr{}
}

// Add event.module for ECS
fields["event"] = map[string]string{
"module": eventModule,
}

fields["type"] = bt.b.Info.Name
fields["action_id"] = actionID
fields["osquery"] = hit
Expand Down

0 comments on commit 7d18dd4

Please sign in to comment.