Skip to content

Commit

Permalink
Heartbeat: add datastream fields to synthetics
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshshanmugam committed Jul 7, 2021
1 parent 2af8ab9 commit 7d6d247
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 7d6d247

Please sign in to comment.