Skip to content

Commit 60ba1cf

Browse files
joshdoverAndersonQ
andauthored
Fix fleet.migration.total log key overlap (#1951)
Co-authored-by: Anderson Queiroz <anderson.queiroz@elastic.co>
1 parent b2f3e20 commit 60ba1cf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.next.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
- Update apikey.cache_hit log field name to match convention. {pull}1900[1900]
1515
- LoadServerLimits will not overwrite specified limits when loading default/agent number specified values. {issue}1841[1841] {pull}1912[1912]
1616
- Use seperate rate limiters for internal and external API listeners. {issue}1859[1859] {pull}1904[1904]
17+
- Fix fleet.migration.total log key overlap {pull}1951[1951]
1718

1819
==== New Features
1920

internal/pkg/dl/migration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ func applyMigration(ctx context.Context, name string, index string, bulker bulk.
123123
Str("fleet.migration.name", name).
124124
Int("fleet.migration.es.took", resp.Took).
125125
Bool("fleet.migration.es.timed_out", resp.TimedOut).
126-
Int("fleet.migration.total", resp.Total).
127126
Int("fleet.migration.updated", resp.Updated).
128127
Int("fleet.migration.deleted", resp.Deleted).
129128
Int("fleet.migration.batches", resp.Batches).
@@ -132,6 +131,7 @@ func applyMigration(ctx context.Context, name string, index string, bulker bulk.
132131
Int("fleet.migration.retries.bulk", resp.Retries.Bulk).
133132
Int("fleet.migration.retries.search", resp.Retries.Search).
134133
Dur("fleet.migration.total.duration", time.Since(start)).
134+
Int("fleet.migration.total.count", resp.Total).
135135
Msgf("migration %s done", name)
136136

137137
for _, fail := range resp.Failures {

0 commit comments

Comments
 (0)