Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 37741ba

Browse files
committed
address pr comment
1 parent c1424e6 commit 37741ba

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • packages/bitdefender/data_stream/push_notifications/elasticsearch/ingest_pipeline

packages/bitdefender/data_stream/push_notifications/elasticsearch/ingest_pipeline/default.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,6 +1537,12 @@ processors:
15371537
}
15381538
return false;
15391539
}
1540+
// Prevent empty fields in correlated arrays from being removed.
1541+
// The first two cases should never happen, but are included
1542+
// defensively. The remediationActions elements may be validly
1543+
// empty.
1544+
ctx.bitdefender?.event?.filePath?.replaceAll(e -> e == "" ? "-" : e);
1545+
ctx.bitdefender?.event?.fileSizes?.replaceAll(e -> e == "" ? "-" : e);
15401546
ctx.bitdefender?.event?.remediationActions?.replaceAll(e -> e == "" ? "-" : e);
15411547
dropEmptyFields(ctx);
15421548

0 commit comments

Comments
 (0)