Skip to content

Commit

Permalink
fix: fix wrong hostname tag for logsamples
Browse files Browse the repository at this point in the history
  • Loading branch information
xzchaoo committed Sep 23, 2023
1 parent d4c3127 commit 46194c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/collectconfig/executor/consumer_log_sub_stat.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func (c *logStatSubConsumer) Emit(expectedTs int64) bool {
"maxCount": c.parent.task.Select.LogSamples.MaxCount,
"samples": []interface{}{
map[string]interface{}{
"hostname": tags[c.parent.getTargetHostname()],
"hostname": c.parent.getTargetHostname(),
"logs": v.LogSamples,
},
},
Expand Down

0 comments on commit 46194c8

Please sign in to comment.