From fae5ed7d653081a2d9d864a065ca5f21b71c5dbd Mon Sep 17 00:00:00 2001 From: JesseBot Date: Sat, 18 Nov 2023 17:25:33 +0100 Subject: [PATCH] add json syntax highlighting for jq output --- Filer-Change-Data-Capture.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Filer-Change-Data-Capture.md b/Filer-Change-Data-Capture.md index 5f52058..57de8ca 100644 --- a/Filer-Change-Data-Capture.md +++ b/Filer-Change-Data-Capture.md @@ -4,9 +4,14 @@ Actually SeaweedFS can give you more! # Experience it first -You can continuously watch the SeaweedFS meta data changes. Let's also filter with `jq` and see only the new files created: -```console -$ weed filer.meta.tail -timeAgo=3h | jq .eventNotification.newEntry +You can continuously watch the SeaweedFS meta data changes. Let's also filter with `jq` and see only the new files created using this command: +```bash +weed filer.meta.tail -timeAgo=3h | jq .eventNotification.newEntry +``` + +which will return: + +```json { "name": "abc.png", "chunks": [ @@ -33,9 +38,7 @@ $ weed filer.meta.tail -timeAgo=3h | jq .eventNotification.newEntry "md5": "KEjYEZgpc//aNM+MhZnj9g==" } } - -... - +\\ the rest has been truncated for brevity ``` See the help: