Version 1 (modified by jazz, 7 years ago) (diff) |
---|
2018-05-24
jq
- 同事寫了個有趣的 jq 範例,可以把 epoch 時間戳記的欄位用 jq 轉成 ISO 格式~
kafkacat -q -b kafka1 -t ${topic} | jq -c '. | select ( ( now - .epoch) > 60) | [.receiveServer, (.epoch|todateiso8601)]'
Version 1 (modified by jazz, 7 years ago) (diff) |
---|
kafkacat -q -b kafka1 -t ${topic} | jq -c '. | select ( ( now - .epoch) > 60) | [.receiveServer, (.epoch|todateiso8601)]'