Skip to content

Commit

Permalink
Add timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisronline committed Feb 11, 2020
1 parent 403d34f commit 16b03e9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export function formatForNormalBulkEndpoint(payload, productionClusterUuid) {
return accum;
}

const { timestamp } = chunk[1];

accum.push({
index: {
_index: `.monitoring-kibana-${MONITORING_SYSTEM_API_VERSION}-${dateSuffix}`,
Expand All @@ -29,6 +31,7 @@ export function formatForNormalBulkEndpoint(payload, productionClusterUuid) {
accum.push({
[type]: chunk[1],
type,
timestamp,
cluster_uuid: productionClusterUuid,
});
return accum;
Expand Down

0 comments on commit 16b03e9

Please sign in to comment.