Skip to content

Commit 39306ec

Browse files
committed
filter
1 parent ac52358 commit 39306ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cloudwatch-logs.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import sqs from "./sqs.js";
77
let counter = 0
88
const lines = []
99

10-
const regExp = /"fixTime":"(2025-09-22T18[^"]*)"/
10+
const regExp = /"fixTime":"(2025-09-22T17[^"]*)"/
1111
async function processLines () {
1212
for (const jsonStr of lines) {
1313
try {
1414
const match = jsonStr.match(regExp)
15-
if (match) {
15+
if (match && match[1] > '2025-09-22T17:55') {
1616
await rabbit.send(jsonStr, 'E', 'P', 'eb-node-express-positions')
1717
console.log(counter++, match[1])
1818
}

0 commit comments

Comments
 (0)