Skip to content

Commit

Permalink
Heartbeat: add datastream fields to synthetics (#26774)
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshshanmugam authored Jul 8, 2021
1 parent 1754f54 commit 70a639f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions heartbeat/monitors/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ func newCommonPublishConfigs(info beat.Info, cfg *common.Config) (pipetool.Confi
fields := clientCfg.Processing.Fields.Clone()
fields.Put("event.dataset", dataset)

if settings.DataStream != nil {
fields.Put("data_stream", settings.DataStream)
}

meta := clientCfg.Processing.Meta.Clone()
if settings.Pipeline != "" {
meta.Put("pipeline", settings.Pipeline)
Expand Down

0 comments on commit 70a639f

Please sign in to comment.