Skip to content

Commit d91f759

Browse files
authored
Don't send bulk structure, if empty (#18747) (#18951)
1 parent fda17cb commit d91f759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metricbeat/module/elasticsearch/index/data_xpack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ type indexStats struct {
6565
IndexTimeInMillis int `json:"index_time_in_millis"`
6666
ThrottleTimeInMillis int `json:"throttle_time_in_millis"`
6767
} `json:"indexing"`
68-
Bulk bulkStats `json:"bulk"`
68+
Bulk *bulkStats `json:"bulk,omitempty"`
6969
Merges struct {
7070
TotalSizeInBytes int `json:"total_size_in_bytes"`
7171
} `json:"merges"`

0 commit comments

Comments
 (0)