由于节点运行时会有许多无用的数据,如何从数据中快速查询increment的情况,可以使用以下命令:

journalctl -u ceremonyclient.service --no-hostname -g "increment" -r -n 10

可以得到最近的10条结果:

Oct 29 16:28:50 node-2.0.2.3-linux-amd64[3202062]: {"level":"info","ts":1730215730.400704,"caller":"data/pre_midnight_proof_worker.go:199","msg":"publishing proof batch","increment":966XXX}
Oct 29 16:24:03 node-2.0.2.3-linux-amd64[3202062]: {"level":"info","ts":1730215443.8220692,"caller":"data/pre_midnight_proof_worker.go:199","msg":"publishing proof batch","increment":966XXX}
Oct 29 16:23:25 node-2.0.2.3-linux-amd64[3202062]: {"level":"info","ts":1730215405.427468,"caller":"data/pre_midnight_proof_worker.go:199","msg":"publishing proof batch","increment":967XXX}
Oct 29 16:21:13 node-2.0.2.3-linux-amd64[3202062]: {"level":"info","ts":1730215273.0764163,"caller":"data/pre_midnight_proof_worker.go:199","msg":"publishing proof batch","increment":967XXX
Oct 29 16:20:49 node-2.0.2.3-linux-amd64[3202062]: {"level":"info","ts":1730215249.9562988,"caller":"data/pre_midnight_proof_worker.go:199","msg":"publishing proof batch","increment":967XXX}
Oct 29 16:19:08 node-2.0.2.3-linux-amd64[3202062]: {"level":"info","ts":1730215148.0010495,"caller":"data/pre_midnight_proof_worker.go:199","msg":"publishing proof batch","increment":967XXX}
Oct 29 16:17:05 node-2.0.2.3-linux-amd64[3202062]: {"level":"info","ts":1730215025.6726663,"caller":"data/pre_midnight_proof_worker.go:199","msg":"publishing proof batch","increment":967XXX}
Oct 29 15:18:20 node-2.0.2.3-linux-amd64[3202062]: {"level":"info","ts":1730211500.7741916,"caller":"data/pre_midnight_proof_worker.go:199","msg":"publishing proof batch","increment":967XXX}
Oct 29 15:16:10 node-2.0.2.3-linux-amd64[3202062]: {"level":"info","ts":1730211370.7972996,"caller":"data/pre_midnight_proof_worker.go:199","msg":"publishing proof batch","increment":967XXX}
Oct 29 15:15:27 node-2.0.2.3-linux-amd64[3202062]: {"level":"info","ts":1730211327.0813804,"caller":"data/pre_midnight_proof_worker.go:199","msg":"publishing proof batch","increment":967XXX}

如果需要得到更多的结果,直接修改n 10,比如需要20条结果,改为n 20即可。

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注